/* ============================================================
   page-contact.css — SELF-CONTAINED contact page styles
   Ported from design/20260527-services-mockups/assets/css/
     {tokens, utilities, components, page-contact}.css
   Mirrors the ne-home.css structure:
     1. Theme full-bleed integration (scoped to body.ne-contact-active)
     2. :root tokens (verbatim from tokens.css)
     3. Base resets + shared utilities/components
     4. Page-specific rules (verbatim from page-contact.css)
     5. Anti-spam honeypot + floating LINE button + submit-error
   ============================================================ */


/* ============================================================
   1. Theme full-bleed integration (scope to body.ne-contact-active)
   ============================================================ */
body.ne-contact-active .arden-main{padding-block:0;}
body.ne-contact-active .entry-content.wp-block-post-content{margin-top:0;width:100%;max-width:none;}
body.ne-contact-active .entry-content.wp-block-post-content>.ne-contact-page{width:100vw;max-width:none;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important;line-height:1.5;}


/* ============================================================
   2. :root tokens (verbatim from tokens.css)
   ============================================================ */
:root {
  /* ---------- Color (CIS p10 + DESIGN.md) ---------- */
  --color-primary:        #1B67B2;   /* CIS 主色 */
  --color-secondary:      #0F4A85;   /* hover / 加深 */
  --color-tertiary:       #1A96D5;   /* CIS p10 */
  --color-auxiliary:      #54C3F1;   /* CIS p10 */
  --color-neutral:        #F7FAFC;   /* bg light */
  --color-surface:        #FFFFFF;
  --color-on-surface:     #0F1B2D;   /* primary text */
  --color-muted:          #4A5567;   /* secondary text */
  --color-border:         #E5EEF7;
  --color-error:          #B3261E;
  --color-success:        #1F7A4D;
  --color-warning:        #B25C00;

  /* dark navy band (industries / hero gradient) */
  --color-navy-900:       #001f49;
  --color-navy-800:       #00376e;
  --color-navy-700:       #002a5c;
  --color-navy-500:       #00386f;

  /* LINE brand green (chat button) */
  --color-line:           #06C755;
  --color-line-deep:      #05A847;

  /* ---------- Home-baseline aliases (don't rename markup) ---------- */
  --color-primary-deep:   var(--color-secondary);
  --color-aux-1:          var(--color-tertiary);
  --color-aux-2:          var(--color-auxiliary);
  --color-bg:             var(--color-neutral);
  --color-text:           var(--color-on-surface);
  --color-text-muted:     var(--color-muted);

  /* ---------- Overlays / Shadows ---------- */
  --overlay-deep-blue:    rgba(15,74,133,0.55);
  --overlay-photo-bottom: linear-gradient(180deg, rgba(0,40,86,0) 0%, rgba(0,40,86,0.95) 100%);
  --shadow-card:          0 1px 3px rgba(27,103,178,0.06);
  --shadow-card-hover:    0 4px 12px rgba(27,103,178,0.10);
  --shadow-elevated:      0 12px 32px rgba(15,27,45,0.12);
  --shadow-line-btn:      0 4px 14px rgba(6,199,85,0.32);

  /* ---------- Radius ---------- */
  --radius-sm:            4px;
  --radius-md:            8px;
  --radius-lg:            12px;
  --radius-full:          9999px;
  --radius-button:        var(--radius-md);
  --radius-card:          var(--radius-lg);

  /* ---------- Spacing ---------- */
  --space-xs:             4px;
  --space-sm:             8px;
  --space-md:             16px;
  --space-lg:             24px;
  --space-xl:             40px;
  --space-2xl:            64px;
  --space-3xl:            96px;
  --gap-card:             24px;
  /* Site section rhythm, aligned with ne-home / ne-about / page-clients.
     NOTE: nothing on this page reads these two yet — the contact sections
     use their own fluid clamps below. Kept in sync so the baseline this
     file advertises is not stale. */
  --section-pad-y-desktop: 84px;
  --section-pad-y-mobile: 52px;
  --spacing-section:      clamp(60px, 8vw, 120px);

  /* ---------- Layout ---------- */
  --container-max:        1280px;
  --max-content:          var(--container-max);
  --container-pad-x:      clamp(20px, 4vw, 40px);
  --header-height:        80px;
  --line-btn-size-desktop: 60px;
  --line-btn-size-mobile:  56px;

  /* ---------- Typography ---------- */
  --font-stack:           "Noto Sans TC", "PingFang TC", "Heiti TC", "微軟正黑體", Arial, sans-serif;
  --font-sans:            var(--font-stack);
  --font-en:              "Inter", "Helvetica Neue", Arial, sans-serif;

  /* type scale — clamp() for fluid */
  --font-size-display:    clamp(40px, 5vw, 80px);
  --font-size-h1:         clamp(32px, 4vw, 48px);
  --font-size-h2:         clamp(26px, 3vw, 36px);
  --font-size-h3:         clamp(20px, 1.8vw, 24px);
  --font-size-h4:         18px;
  --font-size-body:       clamp(15px, 1.1vw, 17px);
  --font-size-small:      14px;
  --font-size-eyebrow:    13px;
  --font-size-caption:    12px;

  --line-height-tight:    1.15;
  --line-height-snug:     1.3;
  --line-height-normal:   1.65;
  --line-height-loose:    1.75;

  --letter-eyebrow:       0.08em;
  --letter-display:       -0.01em;

  /* ---------- Motion ---------- */
  --motion-fast:          150ms;
  --motion-base:          200ms;
  --motion-slow:          320ms;
  --motion-easing:        cubic-bezier(0.4, 0, 0.2, 1);
  --motion-bounce:        cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ---------- Z-index scale ---------- */
  --z-base:               0;
  --z-card-hover:         10;
  --z-fixed-button:       80;
  --z-header:             100;
  --z-modal:              200;

  /* ---------- Form ---------- */
  --form-input-border:    var(--color-border);
  --form-input-bg:        var(--color-surface);
  --form-input-radius:    var(--radius-md);
  --form-input-padding:   12px 14px;
  --form-label-color:     var(--color-on-surface);
  --form-helper-color:    var(--color-muted);
  --form-error-color:     var(--color-error);
}


/* ============================================================
   3. Base resets + shared utilities / components
      (ported from utilities.css + components.css; site-header /
       site-footer / contact-cta blocks intentionally omitted so
       the theme header/footer are not restyled)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-stack);
  font-size: 16px;
  color: var(--color-on-surface);
  background: var(--color-surface);
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--motion-base) var(--motion-easing);
}
a:hover { color: var(--color-secondary); }

h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; color: var(--color-on-surface); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Layout helpers ---------- */
.inner,
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad-x);
}

.section,
.section-pad {
  padding-block: var(--section-pad-y-desktop);
}
@media (max-width: 768px) {
  .section,
  .section-pad { padding-block: var(--section-pad-y-mobile); }
}

.section--tight { padding-block: 56px; }
.section--alt   { background: var(--color-neutral); }
.section--dark  {
  background: linear-gradient(110deg, var(--color-navy-900) 0%, var(--color-navy-800) 58%, var(--color-navy-900) 100%);
  color: #fff;
}

.row     { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.stack   { display: flex; flex-direction: column; gap: var(--space-md); }
.cluster { display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; }

.grid-2 { display: grid; gap: var(--gap-card); grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: var(--gap-card); grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: var(--gap-card); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Visibility / accessibility ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.hide-on-mobile { display: initial; }
.hide-on-desktop { display: none; }
@media (max-width: 768px) {
  .hide-on-mobile  { display: none; }
  .hide-on-desktop { display: initial; }
}

/* ---------- Text helpers ---------- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: var(--letter-eyebrow);
  font-weight: 600;
  font-size: var(--font-size-eyebrow);
  color: var(--color-primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: var(--font-size-h1);
  font-weight: 600;
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-display);
  color: var(--color-on-surface);
  margin: 0 0 16px;
  text-wrap: balance;
}
.section-subtitle {
  font-size: var(--font-size-body);
  line-height: var(--line-height-loose);
  color: var(--color-muted);
  margin: 0 0 48px;
  max-width: 720px;
  text-wrap: pretty;
}
.text-muted   { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.text-on-dark { color: #fff; }
.text-center  { text-align: center; }
.text-balance { text-wrap: balance; }
.text-pretty  { text-wrap: pretty; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  border-radius: var(--radius-button);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--motion-base) var(--motion-easing),
              color var(--motion-base) var(--motion-easing),
              border-color var(--motion-base) var(--motion-easing),
              transform var(--motion-base) var(--motion-easing),
              box-shadow var(--motion-base) var(--motion-easing);
  white-space: nowrap;
  min-height: 44px;
  padding: 12px 24px;
}
.btn:focus-visible { outline-offset: 4px; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15,74,133,0.18);
}

.btn-secondary {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-tertiary {
  background: transparent;
  color: var(--color-primary);
  border-color: transparent;
  padding-inline: 4px;
  min-height: 0;
}
.btn-tertiary::after {
  content: "→";
  display: inline-block;
  margin-left: 4px;
  transition: transform var(--motion-base) var(--motion-easing);
}
.btn-tertiary:hover { color: var(--color-secondary); }
.btn-tertiary:hover::after { transform: translateX(3px); }

.btn--block { display: flex; width: 100%; }

/* ============ Card ============ */
.card,
.card-standard {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--motion-base) var(--motion-easing),
              box-shadow var(--motion-base) var(--motion-easing),
              border-color var(--motion-base) var(--motion-easing);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover,
.card-standard:hover {
  transform: translateY(-2px);
  border-color: rgba(27,103,178,0.35);
  box-shadow: var(--shadow-card-hover);
}
.card__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--color-on-surface);
  line-height: 1.35;
}
.card__desc {
  font-size: 14.5px;
  color: var(--color-muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.card__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  margin-top: 6px;
}
.card__link:hover { color: var(--color-secondary); }

/* ============ Section head (matches home mockup) ============ */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head__text { flex: 1; min-width: 0; }
.section-head__text .section-subtitle { margin-bottom: 0; }
.section-head__decor {
  flex-shrink: 0;
  color: var(--color-auxiliary);
  align-self: flex-start;
  margin-top: 36px;
}
.chevron-decor { width: 120px; height: 40px; }
.section-head--centered { flex-direction: column; align-items: center; text-align: center; }
.section-head--centered .section-subtitle { margin-inline: auto; }
@media (max-width: 768px) {
  .section-head__decor { display: none; }
}

/* ============ Breadcrumb ============ */
.ne-breadcrumb {
  font-size: 13px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-block: 14px 0;
}
.ne-breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
}
.ne-breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.ne-breadcrumb li + li::before {
  content: "/";
  color: rgba(74,85,103,0.45);
  font-weight: 400;
}
.ne-breadcrumb a { color: var(--color-muted); }
.ne-breadcrumb a:hover { color: var(--color-primary); }
.ne-breadcrumb [aria-current="page"] { color: var(--color-on-surface); font-weight: 500; }
/* arden-base-theme's wordpress.css globally hides [aria-label="麵包屑"] breadcrumbs (body.page :where(...)); re-show ours so the contact hero matches the mockup. */
body.ne-contact-active .contact-hero .ne-breadcrumb { display: flex; }

/* arden-base-theme forces ~1.16 line-height on headings (h2/h3); the mockup lets these
   inherit body 1.65. Restore the mockup rhythm so vertical positions match on mobile. */
body.ne-contact-active .contact-form-wrap__title,
body.ne-contact-active .contact-info__title,
body.ne-contact-active .form-success__title,
body.ne-contact-active .service-hours__title { line-height: 1.65; }
body.ne-contact-active .contact-hero .eyebrow { line-height: 1.65; }

/* arden-base-theme's style.css sets `.inner { width: min(100% - clamp(32px,6vw,80px), --max-content) }`,
   which narrows our content column ~32px vs the mockup and changes CJK line wrapping (e.g. the consent
   line). The mockup `.inner` is width:auto (fills container) + padding-inline. Restore that here. */
body.ne-contact-active .ne-contact-page .inner { width: auto; }

/* ============ Eyebrow + section-head decor variants ============ */
.eyebrow--on-dark { color: var(--color-auxiliary); }
.section-title--on-dark { color: #fff; }
.section-subtitle--on-dark { color: rgba(255,255,255,0.88); }

/* ============ Icon utilities ============ */
.icon-inline { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; fill: currentColor; }
.icon-tile {
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(27,103,178,0.08);
  color: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}
.icon-tile svg { width: 28px; height: 28px; }
.icon-tile--square {
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(27,103,178,0.08) 0%, rgba(84,195,241,0.16) 100%);
}


/* ============================================================
   4. Page-specific rules (verbatim from page-contact.css)
   ============================================================ */

/* ============ S1 — Hero ============ */
.contact-hero {
  padding-block: clamp(36px, 5vw, 56px) clamp(40px, 6vw, 72px);
  background:
    radial-gradient(circle at 88% -10%, rgba(84,195,241,0.14) 0%, transparent 55%),
    radial-gradient(circle at 8% 100%, rgba(27,103,178,0.07) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-neutral) 0%, #fff 100%);
  border-bottom: 1px solid var(--color-border);
}
.contact-hero__inner {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  padding-top: 24px;
}
.contact-hero__title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 4px 0 18px;
  color: var(--color-on-surface);
  text-wrap: balance;
}
.contact-hero__subtitle {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.75;
  color: var(--color-muted);
  margin: 0 auto;
  max-width: 620px;
  text-wrap: pretty;
}
.contact-hero__phone {
  font-weight: 600;
  color: var(--color-primary);
  border-bottom: 1.5px solid rgba(27,103,178,0.3);
  padding-bottom: 1px;
  transition: color var(--motion-base), border-color var(--motion-base);
}
.contact-hero__phone:hover {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}


/* ============ S2 — Main 2-col grid ============ */
.contact-main {
  padding-block: clamp(48px, 6vw, 80px);
  background: #fff;
}
.contact-main__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) {
  .contact-main__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}


/* ---------- Form wrap ---------- */
.contact-form-wrap {
  min-width: 0;
}
.contact-form-wrap__header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.contact-form-wrap__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-on-surface);
  letter-spacing: -0.005em;
}
.contact-form-wrap__hint {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-muted);
  margin: 0;
}
.required-mark {
  color: var(--color-error);
  font-weight: 600;
  margin-left: 1px;
  font-size: 0.95em;
}


/* ---------- Form layout ---------- */
.consult-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; gap: 22px; }
}


/* ---------- Labels & helper / error text ---------- */
.field__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-on-surface);
  line-height: 1.4;
}
.field__helper {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-muted);
  margin-top: 4px;
  display: block;
}
.field__error {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-error);
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.field__error::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-error);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  margin-top: 1px;
}
.field__error[hidden] { display: none; }


/* ---------- Inputs / textarea / select ---------- */
.field__input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-on-surface);
  background: var(--form-input-bg);
  border: 1.5px solid var(--form-input-border);
  border-radius: var(--form-input-radius);
  padding: 12px 14px;
  transition:
    border-color var(--motion-base) var(--motion-easing),
    box-shadow var(--motion-base) var(--motion-easing),
    background var(--motion-base) var(--motion-easing);
  appearance: none;
  -webkit-appearance: none;
}
.field__input::placeholder {
  color: rgba(74,85,103,0.5);
}
.field__input:hover {
  border-color: rgba(27,103,178,0.45);
}
.field__input:focus,
.field__input:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,103,178,0.18);
  background: #fff;
}
.field__input[aria-invalid="true"] {
  border-color: var(--color-error);
}
.field__input[aria-invalid="true"]:focus {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(179,38,30,0.18);
}

.field__textarea {
  resize: vertical;
  min-height: 132px;
  line-height: 1.7;
}

/* select chevron — native select needs custom caret */
select.field__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231B67B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 8 11 13 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 40px;
  cursor: pointer;
}
select.field__input--multi {
  background-image: none;
  padding-right: 14px;
  cursor: default;
  min-height: 132px;
  font-size: 14.5px;
  line-height: 1.65;
}
select.field__input--multi option {
  padding: 7px 10px;
  border-radius: 4px;
}
select.field__input--multi option:checked {
  background: var(--color-primary) linear-gradient(0deg, var(--color-primary), var(--color-primary));
  color: #fff;
}


/* ---------- Consent checkbox (custom, native semantics) ---------- */
.field--consent {
  margin-top: 4px;
  padding: 16px 18px;
  background: rgba(27,103,178,0.04);
  border: 1px solid rgba(27,103,178,0.12);
  border-radius: var(--radius-md);
  gap: 8px;
}
.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  position: relative;
}
.consent-label__input {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.consent-label__box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--color-border);
  border-radius: 5px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition:
    border-color var(--motion-base) var(--motion-easing),
    background var(--motion-base) var(--motion-easing),
    box-shadow var(--motion-base) var(--motion-easing);
  position: relative;
}
.consent-label__box::after {
  content: "";
  width: 11px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
  transition: opacity var(--motion-fast) var(--motion-easing);
}
.consent-label__input:hover + .consent-label__box {
  border-color: var(--color-primary);
}
.consent-label__input:focus-visible + .consent-label__box {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,103,178,0.22);
}
.consent-label__input:checked + .consent-label__box {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.consent-label__input:checked + .consent-label__box::after {
  opacity: 1;
}
.consent-label__input[aria-invalid="true"] + .consent-label__box {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(179,38,30,0.15);
}
.consent-label__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-on-surface);
}
.field__error--consent {
  margin-left: 34px;
  margin-top: 2px;
}


/* ---------- Submit ---------- */
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.form-submit {
  min-width: 220px;
  font-size: 16px;
  padding: 14px 28px;
  letter-spacing: 0.02em;
}
.form-actions__note {
  font-size: 12.5px;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .form-submit {
    width: 100%;
    min-width: 0;
  }
  .form-actions__note {
    flex-basis: 100%;
    text-align: center;
  }
}


/* ---------- Success state ---------- */
.form-success {
  margin-top: 4px;
  padding: 32px 28px;
  background: linear-gradient(180deg, rgba(31,122,77,0.06) 0%, rgba(31,122,77,0.02) 100%);
  border: 1px solid rgba(31,122,77,0.22);
  border-radius: var(--radius-lg);
  text-align: center;
}
.form-success:focus { outline: none; }
.form-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-success);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.form-success__icon svg {
  width: 30px;
  height: 30px;
}
.form-success__title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-on-surface);
}
.form-success__body {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0;
}
.form-success__body a {
  font-weight: 600;
  color: var(--color-primary);
}


/* ============ Right column — contact info ============ */
.contact-info {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  /* sticky on desktop */
  position: sticky;
  top: calc(var(--header-height) + 24px);
}
@media (max-width: 960px) {
  .contact-info { position: static; }
}
.contact-info__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 18px;
  color: var(--color-on-surface);
  letter-spacing: -0.005em;
}
.contact-info__list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
}
.contact-info__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info__row:first-child { padding-top: 4px; }
.contact-info__row:last-child  { border-bottom: 0; padding-bottom: 4px; }

.contact-info__icon {
  width: 42px;
  height: 42px;
  background: rgba(27,103,178,0.08);
  color: var(--color-primary);
}
.contact-info__icon svg { width: 20px; height: 20px; }
.icon-tile--line {
  background: rgba(6,199,85,0.10);
  color: var(--color-line);
}
.icon-tile--line svg { width: 26px; height: 26px; }
.icon-tile--line .contact-line-icon {
  display: block;
  width: 26px;
  height: 26px;
  background: currentColor;
  mask: url("/wp-content/plugins/ne-cleaning-landing/assets/about/icons/line.svg") center / contain no-repeat;
  -webkit-mask: url("/wp-content/plugins/ne-cleaning-landing/assets/about/icons/line.svg") center / contain no-repeat;
}

.contact-info__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.contact-info__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.contact-info__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-on-surface);
  word-break: break-word;
  line-height: 1.5;
}
a.contact-info__value {
  color: var(--color-on-surface);
  transition: color var(--motion-base);
}
a.contact-info__value:hover { color: var(--color-primary); }


/* ---------- Service hours callout ---------- */
.service-hours {
  background: rgba(27,103,178,0.06);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  border: 1px solid rgba(27,103,178,0.10);
}
.service-hours__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.service-hours__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-hours__icon svg { width: 16px; height: 16px; }
.service-hours__title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: var(--color-on-surface);
  letter-spacing: 0.02em;
}
.service-hours__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.service-hours__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--color-on-surface);
  line-height: 1.5;
}
.service-hours__list li strong {
  font-weight: 600;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.service-hours__list .muted {
  color: var(--color-muted);
  font-size: 12.5px;
}


/* ============ S3 — Map ============ */
.contact-map {
  padding-block: clamp(8px, 1.5vw, 16px) clamp(40px, 5vw, 64px);
  background: #fff;
}
.contact-map__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  background: var(--color-neutral);
  line-height: 0;
}
.contact-map__frame iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}
@media (max-width: 768px) {
  .contact-map__frame iframe { height: 300px; }
}


/* ============ S4 — Promise cards ============ */
.contact-promise {
  /* Ceiling lowered 96px -> 84px to match the site section rhythm. Kept as a
     clamp rather than a flat token: the fluid ramp is deliberate here. */
  padding-block: clamp(52px, 7vw, 84px);
}
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .promise-grid { grid-template-columns: 1fr; gap: 18px; }
}
.promise-card {
  align-items: flex-start;
  text-align: left;
  padding: 32px 28px;
}
.promise-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
}
.promise-card__icon svg { width: 26px; height: 26px; }
.promise-card .card__title {
  font-size: 19px;
  line-height: 1.35;
}
.promise-card .card__desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--color-muted);
}


/* ============================================================
   5. Anti-spam honeypot + floating LINE button + submit error
   ============================================================ */

/* honeypot — visually hidden, kept in the layout flow off-screen */
.ne-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ============ LINE floating button (right-bottom fixed) ============ */
.ne-line-button {
  position: fixed;
  right: clamp(16px, 2.5vw, 28px);
  bottom: clamp(16px, 2.5vw, 28px);
  width: var(--line-btn-size-desktop);
  height: var(--line-btn-size-desktop);
  border-radius: 50%;
  background: var(--color-line);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-line-btn);
  z-index: var(--z-fixed-button);
  transition: transform var(--motion-base) var(--motion-easing),
              background var(--motion-base) var(--motion-easing),
              box-shadow var(--motion-base) var(--motion-easing);
}
.ne-line-button::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(6,199,85,0.18);
  z-index: -1;
  animation: ne-line-pulse 2.4s ease-out infinite;
}
.ne-line-button:hover {
  background: var(--color-line-deep);
  transform: translateY(-3px);
  color: #fff;
}
.ne-line-button__icon {
  width: 32px;
  height: 32px;
  display: block;
  background: currentColor;
  mask: url("/wp-content/plugins/ne-cleaning-landing/assets/about/icons/line.svg") center / contain no-repeat;
  -webkit-mask: url("/wp-content/plugins/ne-cleaning-landing/assets/about/icons/line.svg") center / contain no-repeat;
}
@media (max-width: 640px) {
  .ne-line-button { width: var(--line-btn-size-mobile); height: var(--line-btn-size-mobile); }
  .ne-line-button__icon { width: 28px; height: 28px; }
}
@keyframes ne-line-pulse {
  0%   { transform: scale(1);    opacity: 0.6; }
  70%  { transform: scale(1.6);  opacity: 0; }
  100% { transform: scale(1.6);  opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ne-line-button::before { animation: none; opacity: 0; }
}

/* ============ Form-level submit error ============ */
.consult-form__submit-error {
  color: var(--color-error);
  font-size: 13px;
  margin: 0;
}
.consult-form__submit-error[hidden] { display: none; }


/* ============================================================
   Fluent Forms parity — match the previous custom .consult-form look.
   Scope: .ne-fluent-form-host (contact page only). Maps FF .ff-el-*
   structure onto the same design tokens used by the old form.
   ============================================================ */

/* field rhythm (was .consult-form gap:22px) */
.ne-fluent-form-host .frm-fluent-form .ff-el-group { margin-bottom: 22px; }
.ne-fluent-form-host .frm-fluent-form .ff_submit_btn_wrapper { margin-bottom: 0; }

/* labels (was .field__label) */
.ne-fluent-form-host .frm-fluent-form .ff-el-input--label label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-on-surface);
  line-height: 1.4;
  margin-bottom: 6px;
  padding: 0;
}
/* required asterisk in brand error red */
.ne-fluent-form-host .frm-fluent-form .ff-el-is-required label:after { color: var(--color-error); }

/* drop the tooltip i-icon — help text now sits under the input */
.ne-fluent-form-host .frm-fluent-form .ff-el-tooltip { display: none; }

/* inputs / selects / textarea (was .field__input) */
.ne-fluent-form-host .frm-fluent-form .ff-el-form-control {
  width: 100%;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-on-surface);
  background: var(--form-input-bg);
  border: 1.5px solid var(--form-input-border);
  border-radius: var(--form-input-radius);
  padding: 12px 14px;
  box-shadow: none;
  transition: border-color var(--motion-base) var(--motion-easing),
              box-shadow var(--motion-base) var(--motion-easing),
              background var(--motion-base) var(--motion-easing);
}
.ne-fluent-form-host .frm-fluent-form textarea.ff-el-form-control {
  resize: vertical;
  min-height: 132px;
  line-height: 1.7;
}
.ne-fluent-form-host .frm-fluent-form .ff-el-form-control::placeholder { color: rgba(74,85,103,0.5); }
.ne-fluent-form-host .frm-fluent-form .ff-el-form-control:hover { border-color: rgba(27,103,178,0.45); }
.ne-fluent-form-host .frm-fluent-form .ff-el-form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,103,178,0.18);
  background: #fff;
}

/* help text under input (was .field__helper) */
.ne-fluent-form-host .frm-fluent-form .ff-el-help-message {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-muted);
  margin: 4px 0 0;
  padding: 0;
}

/* validation errors (was .field__error) */
.ne-fluent-form-host .frm-fluent-form .error.text-danger,
.ne-fluent-form-host .frm-fluent-form .ff-el-is-error .text-danger {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--color-error);
  margin-top: 4px;
}
.ne-fluent-form-host .frm-fluent-form .ff-el-is-error .ff-el-form-control { border-color: var(--color-error); }

/* 2-column phone / email row (was .field-row, 18px gap) */
.ne-fluent-form-host .frm-fluent-form .ff-el-group.ne-col { width: calc(50% - 9px); }
.ne-fluent-form-host .frm-fluent-form .ff-el-group.ne-col--left { float: left; }
.ne-fluent-form-host .frm-fluent-form .ff-el-group.ne-col--right { float: right; }
.ne-fluent-form-host .frm-fluent-form .ff-el-group:not(.ne-col) { clear: both; }

/* native select caret (space_scale) */
.ne-fluent-form-host .frm-fluent-form select.ff-el-form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231B67B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 8 11 13 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

/* multi-select dropdown (choices.js) — match input look */
.ne-fluent-form-host .frm-fluent-form .choices { margin-bottom: 0; }
.ne-fluent-form-host .frm-fluent-form .choices__inner {
  min-height: 48px;
  background: var(--form-input-bg);
  border: 1.5px solid var(--form-input-border);
  border-radius: var(--form-input-radius);
  padding: 7px 40px 7px 14px;
  font-size: 15px;
}
.ne-fluent-form-host .frm-fluent-form .choices.is-focused .choices__inner {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27,103,178,0.18);
}
.ne-fluent-form-host .frm-fluent-form .choices__list--multiple .choices__item {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* consent checkbox (was .consent-label) */
.ne-fluent-form-host .frm-fluent-form .ff-el-form-hide_label .ff-el-input--content { margin: 0; }
.ne-fluent-form-host .frm-fluent-form input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.ne-fluent-form-host .frm-fluent-form .ff-el-form-check { display: flex; align-items: flex-start; gap: 12px; }
.ne-fluent-form-host .frm-fluent-form .ff-el-form-check-label,
.ne-fluent-form-host .frm-fluent-form .ff-el-form-hide_label label {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-on-surface);
  font-weight: 400;
  margin: 0;
}

/* submit button (was .btn.btn-primary) */
.ne-fluent-form-host .frm-fluent-form .ff-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-button);
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  min-height: 44px;
  padding: 12px 24px;
  cursor: pointer;
  box-shadow: none;
  transition: background var(--motion-base) var(--motion-easing),
              border-color var(--motion-base) var(--motion-easing);
}
.ne-fluent-form-host .frm-fluent-form .ff-btn-submit:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

/* success confirmation (was .form-success) */
.ne-fluent-form-host .ff-message-success {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-on-surface);
  background: rgba(31,122,77,0.08);
  border: 1.5px solid var(--color-success);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

/* mobile: stack the phone / email row */
@media (max-width: 640px) {
  .ne-fluent-form-host .frm-fluent-form .ff-el-group.ne-col { float: none; width: 100%; }
}

/* Keep the shared site header owned by arden-base-theme. */
body.ne-contact-active .arden-site-header.ne-site-header a.ne-header-cta {
  display: inline-flex;
}

body.ne-contact-active .arden-site-header.ne-site-header .arden-mobile-menu .arden-mobile-menu__cta-link {
  display: inline-flex;
}

@media (max-width: 768px) {
  body.ne-contact-active .arden-site-header.ne-site-header a.ne-header-cta {
    display: none;
  }
}
