/* Contact form staging page — intentionally local to /public/contact/.
   Namespaced .contactform-* to avoid the global stylesheet's .contact-* rules. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/fredoka-variable-latin.woff2') format('woff2');
}

.contactform-stage,
.contactform-review,
.contactform-error-banner {
  --form-blue: #4660a9;
  --form-blue-dark: #234299;
  --form-orange: #e07919;
  --form-green: #a7ad6f;
  --form-ink: #17213b;
  --form-muted: #5c6475;
  --form-soft: #eef1f8;
  --form-error: #d71920;
  --form-heading-font: 'Fredoka', 'Roboto', sans-serif;
}

.contactform-stage {
  background: linear-gradient(180deg, #eef1f8 0, #fff 420px);
  color: var(--form-ink);
  padding: clamp(2rem, 5vw, 4.5rem) 1rem clamp(4rem, 8vw, 7rem);
}

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

.contactform-stage__shell { width: min(100%, 1080px); margin: 0 auto; }
.contactform-stage__intro { max-width: 820px; margin: 0 auto clamp(1.75rem, 4vw, 3rem); text-align: center; }
.contactform-stage__eyebrow { color: var(--form-orange); font-size: .9rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.contactform-stage__intro h1 { color: var(--form-blue); font-family: var(--form-heading-font); font-size: clamp(2.25rem, 6vw, 4.25rem); font-weight: 600; line-height: 1.06; margin: .4rem 0 .9rem; }
.contactform-stage__intro p { color: var(--form-muted); font-size: clamp(1rem, .88rem + .5vw, 1.25rem); line-height: 1.7; margin: 0 auto; }

.contactform-progress { background: #fff; border: 1px solid #dce2ef; border-radius: 999px; box-shadow: 0 8px 30px rgba(70,96,169,.1); margin: 0 auto 1.5rem; max-width: 760px; overflow: hidden; position: sticky; top: calc(130px + .75rem); z-index: 20; }
.contactform-progress__bar { background: linear-gradient(90deg, rgba(46,139,87,.38), rgba(88,190,120,.28)); box-shadow: inset -2px 0 0 #2e8b57; height: 100%; inset: 0 auto 0 0; position: absolute; transform-origin: left; transition: width .2s ease; width: 0; }
.contactform-progress__text { color: var(--form-muted); display: block; font-size: .85rem; font-weight: 600; padding: .75rem 1rem; position: relative; text-align: center; z-index: 1; }

.contactform-form { display: grid; gap: 1.5rem; }
.contactform-section { background: #fff; border: 1px solid #dce2ef; border-radius: 18px; box-shadow: 0 12px 34px rgba(34,54,108,.09); margin: 0; padding: clamp(1.25rem, 4vw, 2.5rem); }
.contactform-section[hidden], .contactform-field[hidden], .contactform-stage__thank-you[hidden] { display: none; }
.contactform-section__heading { align-items: flex-start; display: flex; gap: 1rem; margin-bottom: 1.65rem; }
.contactform-section__number { align-items: center; background: var(--form-blue); border-radius: 50%; color: #fff; display: inline-flex; flex: 0 0 2.35rem; font-weight: 700; height: 2.35rem; justify-content: center; }
.contactform-section__heading h2 { color: var(--form-blue); font-family: var(--form-heading-font); font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 600; line-height: 1.2; margin: 0; }
.contactform-section__heading p { color: var(--form-muted); font-size: .95rem; line-height: 1.55; margin: .35rem 0 0; }
.contactform-section--stay { border-top: 6px solid var(--form-green); }

.contactform-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contactform-field { min-width: 0; }
.contactform-field:is(fieldset) { border: 0; margin: 0; padding: 0; }
.contactform-field--full { grid-column: 1 / -1; }
.contactform-field :where(label:not(.contactform-choice), legend) { color: #111; display: block; font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 0 0 .5rem; }
.contactform-field--required > label::after,
.contactform-field--required > legend::after { color: var(--form-error); content: ' *'; }
.contactform-help { color: var(--form-muted); display: block; font-size: .88rem; line-height: 1.5; margin-top: .45rem; }

.contactform-field input[type='text'],
.contactform-field input[type='email'],
.contactform-field input[type='tel'],
.contactform-field input[type='date'],
.contactform-field select,
.contactform-field textarea {
  background: #fff;
  border: 3px solid var(--form-blue);
  border-radius: 9px;
  color: #111;
  font: inherit;
  font-size: 1rem;
  max-width: 100%;
  min-height: 50px;
  min-width: 0;
  padding: .7rem .85rem;
  width: 100%;
}
.contactform-field input[type='date'] { display: block; inline-size: 100%; max-inline-size: 100%; min-inline-size: 0; }
@supports (-webkit-touch-callout: none) {
  .contactform-field input[type='date'] { -webkit-appearance: none; appearance: none; inline-size: -webkit-fill-available; text-align: center; width: -webkit-fill-available; }
}
.contactform-field textarea { min-height: 125px; resize: vertical; }
.contactform-field input:focus,
.contactform-field select:focus,
.contactform-field textarea:focus { border-color: var(--form-orange); box-shadow: 0 0 0 4px rgba(224,121,25,.18); outline: 0; }
.contactform-field :is(input, select, textarea).field-error,
.contactform-choice-group.field-error { border-color: var(--form-error); box-shadow: 0 0 0 4px rgba(215,25,32,.22); }
.contactform-grid.field-error { border-radius: 12px; box-shadow: 0 0 0 4px rgba(215,25,32,.22); }

.contactform-choice-group { border: 1px solid #d5dbea; border-radius: 10px; display: grid; gap: .65rem; padding: .9rem 1rem; }
.contactform-choice-group--inline { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.contactform-choice { align-items: center; color: #1e2432; cursor: pointer; display: flex; font-size: 1rem; font-weight: 500; gap: .65rem; line-height: 1.4; margin: 0; }
.contactform-choice input { accent-color: var(--form-blue); flex: 0 0 auto; height: 1.2rem; margin: 0; width: 1.2rem; }

/* Display-only copy blocks (mailing/SMS instruction text + SMS disclosure). */
.contactform-note { background: var(--form-soft); border-left: 5px solid var(--form-blue); border-radius: 10px; color: #30384a; font-size: .95rem; line-height: 1.65; padding: 1rem 1.2rem; }
.contactform-note p { margin: 0; }
.contactform-note a { color: var(--form-blue-dark); font-weight: 700; }
.contactform-note--sms { border-left-color: var(--form-orange); font-size: .88rem; }

.contactform-error-banner { background: #f0000b; box-shadow: 0 5px 18px rgba(60,0,4,.28); color: #fff; inset: 0 0 auto; opacity: 1; padding: .75rem clamp(.75rem, 3vw, 2rem); position: fixed; transition: opacity .3s ease; z-index: 1300; }
.contactform-error-banner[hidden] { display: none; }
.contactform-error-banner.is-fading { opacity: 0; pointer-events: none; }
.contactform-error-banner__inner { align-items: center; display: flex; gap: 1rem; justify-content: space-between; margin: 0 auto; max-width: 1180px; }
.contactform-error-banner p { align-items: center; display: flex; font-size: clamp(1rem, 1.8vw, 1.35rem); font-weight: 600; gap: .75rem; line-height: 1.35; margin: 0; }
.contactform-error-banner__status { align-items: center; background: #fff; border-radius: 50%; color: var(--form-ink); display: inline-flex; flex: 0 0 2.4rem; font-size: 1.25rem; font-weight: 700; height: 2.4rem; justify-content: center; }
.contactform-error-banner__action { background: #fff; border: 0; border-radius: 8px; color: var(--form-ink); cursor: pointer; flex: 0 0 auto; font: inherit; font-size: 1rem; font-weight: 700; min-height: 46px; padding: .65rem 1.25rem; }
.contactform-error-banner.is-success { background: #bdf5c9; color: var(--form-ink); }
.contactform-error-banner.is-success .contactform-error-banner__status { background: #00bd55; color: #fff; }
.contactform-error-banner.is-success .contactform-error-banner__action { background: #00bd55; color: #fff; }

.contactform-actions { align-items: center; display: flex; flex-direction: column; gap: 1rem; justify-content: center; text-align: center; }
.contactform-actions p { color: var(--form-muted); font-size: .9rem; line-height: 1.5; margin: 0; max-width: 480px; }
.contactform-button { align-items: center; background: var(--form-blue-dark); border: 0; border-radius: 999px; color: #fff; cursor: pointer; display: inline-flex; font: inherit; font-size: 1rem; font-weight: 700; gap: .55rem; justify-content: center; min-height: 52px; padding: .8rem 1.5rem; transition: background .3s ease, box-shadow .3s ease; }
.contactform-button:hover { background: #1a337a; box-shadow: 0 0 0 2px rgba(224,121,25,.4), 0 0 16px 4px rgba(224,121,25,.45); }
.contactform-button:focus-visible, .contactform-error-banner__action:focus-visible { outline: 3px solid var(--form-orange); outline-offset: 3px; }
.contactform-button--secondary { background: #fff; border: 2px solid var(--form-blue); color: var(--form-blue); }
.contactform-button--secondary:hover { background: var(--form-soft); }
.contactform-button[disabled] { cursor: wait; opacity: .7; }

.contactform-review { align-items: center; background: rgba(12,22,47,.76); display: none; inset: 0; justify-content: center; padding: 1rem; position: fixed; z-index: 1200; }
.contactform-review.open { display: flex; }
.contactform-review__card { background: #fff; border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.3); max-height: min(90vh, 90dvh); max-width: 820px; overflow-y: auto; padding: clamp(1.25rem, 4vw, 2.25rem); width: 100%; }
.contactform-review__card h2 { color: var(--form-blue); font-family: var(--form-heading-font); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600; margin: 0 0 .4rem; }
.contactform-review__note { color: var(--form-muted); line-height: 1.6; margin: 0 0 1.25rem; }
.contactform-review__rows { border-top: 1px solid #dce2ef; margin: 0; }
.contactform-review__row { border-bottom: 1px solid #dce2ef; display: grid; gap: 1rem; grid-template-columns: minmax(140px, .8fr) 2fr; padding: .8rem 0; }
.contactform-review__row dt { color: var(--form-muted); font-size: .9rem; font-weight: 700; }
.contactform-review__row dd { color: #111; margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.contactform-review__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; margin-top: 1.5rem; }

.contactform-stage__thank-you { background: #fff; border: 1px solid #dce2ef; border-radius: 20px; box-shadow: 0 14px 42px rgba(34,54,108,.12); margin: 0 auto; max-width: 780px; padding: clamp(2rem, 6vw, 4rem); text-align: center; }
.contactform-stage__thank-icon { align-items: center; background: var(--form-green); border-radius: 50%; color: #fff; display: inline-flex; font-size: 2rem; height: 72px; justify-content: center; width: 72px; }
.contactform-stage__thank-you h2 { color: var(--form-blue); font-family: var(--form-heading-font); font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 600; margin: 1rem 0 .7rem; }
.contactform-stage__thank-you p { color: var(--form-muted); font-size: clamp(1rem, .9rem + .4vw, 1.18rem); line-height: 1.7; margin: 0 auto 1.4rem; max-width: 620px; }
.contactform-submit-frame { border: 0; height: 1px; left: -9999px; position: absolute; width: 1px; }
.jf-honeypot { height: 1px; left: -9999px; opacity: 0; position: absolute; width: 1px; }

@media (max-width: 700px) {
  .contactform-stage { padding-left: .75rem; padding-right: .75rem; }
  .contactform-grid { grid-template-columns: 1fr; }
  .contactform-field--full { grid-column: auto; }
  .contactform-section { border-radius: 14px; }
  .contactform-actions { align-items: stretch; flex-direction: column; }
  .contactform-actions p { flex-basis: auto; }
  .contactform-button { width: 100%; }
  .contactform-review__actions { flex-direction: column-reverse; }
  .contactform-review__row { gap: .25rem; grid-template-columns: 1fr; }
  .contactform-error-banner__inner { align-items: stretch; flex-direction: column; gap: .65rem; }
  .contactform-error-banner p { font-size: 1rem; }
  .contactform-error-banner__action { width: 100%; }
}

@media (max-width: 480px) {
  .contactform-progress { top: calc(72px + .5rem); }
  .contactform-section__heading { gap: .7rem; }
  .contactform-section__number { flex-basis: 2rem; height: 2rem; }
  .contactform-choice-group--inline { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .contactform-error-banner { transition: none; }
  .contactform-progress__bar { transition: none; }
}

/* ── Below-form: Visit SAVE (address / hours / map) — ported from live contact page ── */
.contactform-belowform {
  background: #fff;
  border: 1px solid #dce2ef;
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(34, 54, 108, .09);
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.contactform-belowform__title {
  color: var(--form-blue);
  font-family: var(--form-heading-font);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  text-align: center;
}
.contactform-belowform__cols {
  display: grid;
  gap: clamp(2rem, 6vw, 5rem);
  grid-template-columns: auto auto;
  justify-content: space-between;          /* blocks pushed toward the card edges... */
  padding-inline: clamp(1rem, 9vw, 100px);  /* ...leaving ~100px margins each side (was ~152) */
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}
.contactform-belowform__col h3 {
  color: var(--form-orange);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .13em;
  margin: 0 0 .5rem;
  text-transform: uppercase;
}
.contactform-belowform__col p {
  color: var(--form-muted);
  font-size: clamp(1rem, .9rem + .4vw, 1.15rem);
  line-height: 1.7;
  margin: 0 0 .5rem;
}
.contactform-belowform__col a { color: var(--form-blue); text-decoration: none; }
.contactform-belowform__col a:hover { text-decoration: underline; }
.contactform-belowform__appt { color: var(--form-blue); font-weight: 700; }
.contactform-belowform__map { border-radius: 14px; line-height: 0; overflow: hidden; }
.contactform-belowform__map iframe { border: 0; display: block; height: 450px; width: 100%; }

@media (max-width: 640px) {
  .contactform-belowform__cols { grid-template-columns: auto; justify-content: center; padding-inline: 0; gap: 1.5rem; } /* stack, centered as unit, text left */
  .contactform-belowform__map iframe { height: 340px; }
}

/* ── Map facade (click-to-load) + directions cards ───────────────────────── */
/* The real Google embed (~300 KiB of Maps JS) loads only when the preview is
   clicked; contact.js injects the iframe in place of this button. */
.cf-map-facade {
  display: block; width: 100%; margin: 0; padding: 0; border: 0;
  position: relative; cursor: pointer; line-height: 0;
  border-radius: 14px; overflow: hidden; background: var(--form-soft);
  -webkit-tap-highlight-color: transparent;
}
.cf-map-facade img { display: block; width: 100%; height: 450px; object-fit: cover; }
.cf-map-facade__overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px; line-height: 1;
  background: rgba(23, 33, 59, .30); transition: background .2s ease;
}
.cf-map-facade:hover .cf-map-facade__overlay,
.cf-map-facade:focus-visible .cf-map-facade__overlay { background: rgba(23, 33, 59, .42); }
.cf-map-facade__pin {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; border-radius: 50%; background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28); transition: transform .2s ease;
}
.cf-map-facade__pin svg { width: 30px; height: 30px; color: var(--form-error); }
.cf-map-facade:hover .cf-map-facade__pin { transform: translateY(-3px); }
.cf-map-facade__cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: var(--form-blue);
  font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; font-size: 1rem;
  padding: 11px 20px; border-radius: 50px; box-shadow: 0 6px 18px rgba(0, 0, 0, .20);
}
.cf-map-facade__cta svg { width: 18px; height: 18px; }
.cf-map-facade:focus-visible { outline: 3px solid var(--form-orange); outline-offset: 3px; }

.cf-directions { display: flex; gap: 14px; margin-top: 16px; }
.cf-dir {
  flex: 1 1 0; display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border: 1.5px solid #e2e6f0; border-radius: 14px;
  background: #fff; text-decoration: none; color: var(--form-ink);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cf-dir:hover, .cf-dir:focus-visible {
  border-color: var(--form-orange); box-shadow: 0 8px 22px rgba(224, 121, 25, .16);
  transform: translateY(-2px); outline: none;
}
.cf-dir__icon { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.cf-dir__icon svg { width: 30px; height: 30px; }
.cf-dir--google .cf-dir__icon { color: #1a73e8; }
.cf-dir--apple .cf-dir__icon { color: #333a45; }
.cf-dir--waze .cf-dir__icon { color: #05c8f7; }
.cf-dir__txt { font-size: .82rem; line-height: 1.25; color: var(--form-muted); }
.cf-dir__txt strong { display: block; font-size: 1.02rem; font-weight: 700; color: var(--form-ink); }

@media (max-width: 640px) {
  .cf-map-facade img { height: 340px; }
  .cf-directions { flex-direction: column; }
}
