/* Contact (/contact/) and Thank You (/thank-you/). Figma 225:4 / 225:114 and 226:4 / 226:70.
   One tree per page; desktop >= 1024, tablet 768-1023, phone < 768 (same as styles.css). */

/* Inner-page header is the deep navy in these frames; the breadcrumb row under it is the lighter navy. */
/* No phone dock on these two pages (Figma notes): the form is the action. */
.page-contact, .page-thanks { --bar: 0px; }
.page-contact .bar, .page-thanks .bar { display: none; }

.contact-h1 { max-width: 600px; font-size: clamp(44px, 4.445vw, 64px); line-height: .9; }

/* ---------- breadcrumb ---------- */
.contact-crumb { background: var(--dark); }
.contact-crumb ol { display: flex; align-items: center; min-height: 48px; font-size: 14px; line-height: 20px; letter-spacing: .02em; }
.contact-crumb li + li::before { content: "/"; margin-inline: .8em; }
.contact-crumb a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero (text) ---------- */
.contact-hero__in { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 560px); justify-content: space-between; gap: 40px; padding-block: 80px 81px; }
.contact-hero__lead { margin-top: 8px; font-size: 18px; line-height: 1.55; }

/* ---------- details + form ---------- */
.contact-main__in { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 640px); justify-content: space-between; align-items: start; gap: 40px; padding-block: 96px 120px; }
.contact-quick { display: none; }
.contact-list > div { border-top: 1px solid #fff; padding: 20px 0 19px; }
.contact-list > div:last-child { border-bottom: 1px solid #fff; }
.contact-list dd { margin-top: 4px; font-size: 18px; line-height: 1.445; overflow-wrap: anywhere; }
.contact-list__call dd { font-weight: 600; font-size: 24px; }
.contact-list a:hover, .contact-social a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-social { margin-top: 27px; font-size: 15px; line-height: 1.45; }
.contact-social ul { display: flex; flex-wrap: wrap; }
.contact-social li:not(:last-child)::after { content: "·"; margin-inline: .7em; }

.contact-card { background: #fff; color: var(--text); padding: 40px; }
.contact-card__title { font-size: 40px; line-height: 1; color: var(--deep); }
.contact-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; margin-top: 24px; }
.contact-f { min-width: 0; }
.contact-f--wide { grid-column: 1 / -1; }
.contact-form label { display: block; margin-bottom: 8px; font: 500 14px/20px var(--body); color: var(--deep); }
.contact-req { font-weight: 400; color: #5a5f78; }
/* Field borders are #868aa3, not the Figma's #d9dbe8: a form field's edge needs 3:1 against the card (WCAG 1.4.11). */
.contact-form input, .contact-form select, .contact-form textarea { display: block; width: 100%; min-height: 52px; margin: 0; padding: 0 15px; border: 1px solid #868aa3; border-radius: 0; background: #fff; color: var(--text); font: 400 16px/1.45 var(--body); -webkit-appearance: none; appearance: none; }
.contact-form textarea { min-height: 120px; padding-block: 13px; resize: vertical; }
.contact-form input[type="date"] { text-align: left; }
.contact-form input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.contact-form ::placeholder { color: #5a5f78; opacity: 1; }
.contact-form select { padding-right: 44px; cursor: pointer; }
.contact-form select:has(option[value=""]:checked) { color: #5a5f78; }
.contact-form select option { color: var(--text); }
.contact-pick { position: relative; }
.contact-pick img { position: absolute; right: 16px; top: 18px; width: 16px; height: 16px; pointer-events: none; }
.contact-form :focus-visible, .contact-status a:focus-visible { outline: 3px solid var(--dark); outline-offset: 2px; box-shadow: none; }
.contact-form [aria-invalid="true"] { border: 2px solid #b3261e; padding-inline: 14px; }
.contact-err { margin-top: 6px; font-size: 14px; line-height: 1.45; color: #b3261e; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-turnstile { min-height: 65px; margin-top: 4px; }
.contact-status { padding: 14px 16px; border-left: 4px solid #b3261e; background: #fbeceb; font-size: 15px; line-height: 1.5; color: var(--text); }
.contact-status:empty { display: none; }
.contact-status[data-kind="info"] { border-left-color: var(--dark); background: #ebecf5; }
.contact-status a { font-weight: 600; color: var(--dark); text-decoration: underline; text-underline-offset: 3px; }
.contact-send { width: 100%; margin-top: 4px; cursor: pointer; }
.contact-send[aria-disabled="true"] { opacity: .75; cursor: progress; }
.contact-note { margin-top: -4px; font-size: 14px; line-height: 20px; color: #5a5f78; }

/* ---------- map ---------- */
.contact-map { background: #ebecf5; color: var(--text); }
.contact-map__in { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 800px); justify-content: space-between; align-items: start; gap: 40px; padding-block: 110px; }
.contact-map h2 { font-size: clamp(36px, 3.89vw, 56px); line-height: .92; color: var(--deep); }
.contact-map p { margin-top: 20px; font-size: 18px; }
.contact-map__frame { height: 460px; background: #aad3df; }
.contact-map__frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- thank you ---------- */
.thanks__in { display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 560px); justify-content: space-between; align-items: start; gap: 40px; padding-block: 80px; }
.thanks__lead { margin-top: 8px; font-size: 18px; line-height: 1.55; }
.thanks__lead a { white-space: nowrap; }
.thanks__lead a:hover { text-decoration: underline; text-underline-offset: 4px; }
.thanks__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.thanks__btns .btn { flex: 1 1 0; min-width: 0; max-width: 274px; min-height: 56px; padding: 0 16px; white-space: nowrap; }
.thanks__next { margin-top: 40px; font: 600 16px/23px var(--body); }
.thanks__links { margin-top: 12px; font: 500 16px/23px var(--body); color: var(--accent); }
.thanks__links li + li { margin-top: 10px; }
.thanks__links a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* =============== tablet and phone =============== */
@media (max-width: 1023px) {
  .contact-hero__in, .thanks__in { grid-template-columns: 1fr; gap: 16px; padding-block: 56px; }
  .contact-hero__lead, .thanks__lead { max-width: 560px; margin-top: 0; }
  .contact-main__in { grid-template-columns: 1fr; gap: 48px; padding-block: 24px 72px; }
  .contact-map__in { grid-template-columns: 1fr; gap: 28px; padding-block: 72px; }
  .contact-map p { max-width: 560px; }
  .contact-map__frame { height: 400px; }
  .contact-list a, .contact-social a, .contact-crumb a, .thanks__lead a { display: inline-block; padding-block: 14px; margin-block: -14px; }
  .thanks__links li + li { margin-top: 0; }
  .thanks__links a { display: block; padding-block: 11px; }
}

/* =============== phone =============== */
@media (max-width: 767px) {
  .page-contact main .wrap, .page-thanks main .wrap { padding-inline: 24px; }

  .contact-crumb { background: var(--deep); }
  .contact-crumb ol { min-height: 0; padding-top: 24px; font-size: 12px; line-height: 17px; letter-spacing: 0; }
  .contact-crumb li + li::before { margin-inline: .6em; }
  .contact-hero__in { gap: 13px; padding-block: 12px 32px; }
  .contact-hero__lead { font-size: 16px; }

  .contact-main__in { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block: 8px 0; }
  .contact-quick { display: grid; gap: 12px; margin-bottom: 36px; }
  .contact-quick .btn, .contact-send { font-size: 14px; }
  .contact-card { order: 2; margin-inline: -24px; padding: 40px 24px 47px; }
  .contact-card__title { font-size: 32px; }
  .contact-form { grid-template-columns: 1fr; gap: 16px; margin-top: 20px; }
  .contact-note { margin-top: -2px; font-size: 13px; }
  .contact-info { order: 3; padding-block: 40px; }
  .contact-list__call { display: none; }
  .contact-list .cap { font-size: 12px; }
  .contact-list > div { padding: 16px 0 17px; }
  .contact-list dd { margin-top: 2px; font-size: 16px; }
  .contact-social { margin-top: 19px; font-size: 14px; line-height: 1.5; }

  .contact-map__in { gap: 20px; padding-block: 48px; }
  .contact-map p { margin-top: 12px; font-size: 15px; }
  .contact-map__frame { height: 268px; }

  .thanks__in { gap: 13px; padding-block: 24px 48px; }
  .thanks__lead { font-size: 16px; }
  .thanks__btns { flex-direction: column; margin-top: 36px; }
  .thanks__btns .btn { flex: none; width: 100%; max-width: none; font-size: 14px; }
  .thanks__next { margin-top: 32px; font-size: 15px; line-height: 22px; }
  .thanks__links li { border-top: 1px solid #fff; }
  .thanks__links li:last-child { border-bottom: 1px solid #fff; }
  .thanks__links a { padding-block: 13px 14px; }
}

/* Client review 2026-11-23: a photo behind the details and form, under a navy scrim so the white text still reads. */
.contact-main { background: linear-gradient(rgba(0, 9, 66, .8), rgba(0, 9, 66, .8)), url("/img/rv-contact-bg.webp") 50% 35% / cover no-repeat; }
@media (max-width: 767px) { .contact-main { background-image: linear-gradient(rgba(0, 9, 66, .82), rgba(0, 9, 66, .82)), url("/img/rv-contact-bg-800.webp"); } }
