/* Contact and planning forms. Mobile first. Builds on charter.css (yc-*) and place.css (pg-hero). */
body.cc.yc.fm main p { max-width: none; }

/* ---------- Contact ---------- */
.fm-contact { padding: clamp(40px, 8vw, 100px) 0 clamp(64px, 11vw, 130px); }
.fm-contact__grid { display: grid; gap: 28px; }
.fm-aside { padding: 32px 26px; border-radius: 20px; background: var(--sea-900); color: rgba(255, 255, 255, .84); }
body.cc .fm-aside .yc-title { color: var(--white); margin-bottom: 28px; }
body.cc .fm-aside .yc-title em { color: var(--sun); }
.fm-aside__list { margin: 0; padding: 0; list-style: none; }
.fm-aside__list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.fm-aside__list svg { width: 44px; height: 44px; padding: 11px; border: 1px solid rgba(220, 174, 107, .6); border-radius: 50%; color: var(--sun); }
.fm-aside__list span { display: block; margin-bottom: 4px; font: 600 11px/1.3 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.fm-aside__list a, .fm-aside__list div > div { font: 500 clamp(21px, 5.4vw, 26px)/1.25 var(--font-serif); color: var(--white); overflow-wrap: anywhere; }
body.cc .fm-aside__list a { color: var(--white); }
body.cc .fm-aside__list a:hover { color: var(--sun); }
.fm-aside__list li > div { font: 500 clamp(21px, 5.4vw, 26px)/1.25 var(--font-serif); color: var(--white); }
.fm-aside__list li > div span { font: 600 11px/1.3 var(--font-sans); }

/* ---------- Form card ---------- */
.fm-card { padding: 30px 22px 28px; border: 1px solid var(--sand-200); border-radius: 20px; background: var(--white); box-shadow: 0 40px 70px -50px rgba(6, 26, 32, .35); }
.fm-card > .yc-title { margin-bottom: 26px; }
.fm-card__head { margin-bottom: 30px; }
.fm-card__head p { margin: 14px 0 0; color: #4a5c62; font-size: 16px; line-height: 1.7; }
.fm-row { display: grid; gap: 0 18px; }
.fm-field { margin-bottom: 22px; }
.fm-field > label { display: block; margin: 0 0 8px; font: 600 14px/1.5 var(--font-sans); color: var(--sea-900); }
.fm-field small { display: block; margin-top: 3px; font-weight: 400; font-size: 13.5px; color: var(--muted); }
body.cc .fm-field small a { color: var(--teal-700); text-decoration: underline; }
.fm-field input, .fm-field textarea { display: block; width: 100%; padding: 15px 16px; border: 1.5px solid transparent; border-radius: 12px; background: var(--sand-50); color: var(--ink); font: 400 17px/1.4 var(--font-sans); transition: border-color .2s, background .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.fm-field textarea { min-height: 140px; resize: vertical; }
.fm-field input:hover, .fm-field textarea:hover { border-color: var(--sand-200); }
.fm-field input:focus, .fm-field textarea:focus { outline: none; background: var(--white); border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(53, 181, 176, .18); }
.fm-field input:user-invalid { border-color: #d6786f; background: #fff7f6; }
.fm-note { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.fm-captcha { display: flex; margin: 6px 0; overflow-x: auto; }
.fm-error { min-height: 22px; margin: 4px 0 12px; color: #b3261e; font-size: 14.5px; }
.fm-actions { margin-top: 6px; }
.fm-submit, .fm-next { display: inline-flex; align-items: center; justify-content: center; width: 100%; padding: 17px 32px; border: 0; border-radius: 999px; background: var(--teal-500); color: var(--sea-950); font: 600 16px/1 var(--font-sans); cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.fm-submit:hover, .fm-next:hover { background: var(--sea-900); color: var(--white); }
.fm-submit:disabled { opacity: .6; cursor: progress; }
.fm-spinner { display: inline-block; width: 18px; height: 18px; margin-right: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: fm-spin .7s linear infinite; }
.fm-spinner[hidden] { display: none; }
@keyframes fm-spin { to { transform: rotate(360deg); } }

/* ---------- Planning ---------- */
body.cc .pg-hero h1 em { font-style: italic; color: #f0c987; }
.fm-intro { padding: clamp(56px, 10vw, 120px) 0 clamp(32px, 5vw, 56px); }
.fm-intro__grid { display: grid; gap: 40px; }
.fm-intro .yc-lede { max-width: 34ch; }
.fm-sub { margin: 0; font-size: 17px; color: #4a5c62; }
.fm-benefits { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; align-content: center; }
.fm-benefits li { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 16px; background: var(--sand-50); }
.fm-benefits img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.fm-benefits span { font: 500 clamp(22px, 5.6vw, 26px)/1.2 var(--font-serif); color: var(--sea-900); }
.fm-planner { padding: 0 0 clamp(64px, 11vw, 130px); scroll-margin-top: 80px; }
.fm-card--wide { max-width: 860px; margin: 0 auto; }
.fm-card--wide .yc-title { margin: 0; }
.fm-step { margin: 0 0 8px; padding: 0; border: 0; min-width: 0; }
.fm-step legend { display: block; width: 100%; margin: 0 0 22px; padding: 0; font: 500 clamp(28px, 6.8vw, 34px)/1.15 var(--font-serif); color: var(--sea-900); }
.fm-progress { display: none; }

/* Wizard behaviour only with JS */
.fm-wizard .fm-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 30px; padding: 0; list-style: none; counter-reset: s; }
.fm-progress li { position: relative; padding-top: 14px; border-top: 3px solid var(--sand-200); font: 600 11.5px/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: border-color .4s, color .4s; }
.fm-progress li span { display: none; }
.fm-progress li.is-done, .fm-progress li.is-on { border-top-color: var(--sun-deep); color: var(--sea-900); }
.fm-wizard .fm-step { display: none; }
.fm-wizard .fm-step.is-on { display: block; animation: fm-in .45s var(--ease) both; }
@keyframes fm-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.fm-wizard .fm-nav { display: flex; gap: 12px; margin-top: 10px; }
.fm-wizard .fm-nav[hidden] { display: flex; }
.fm-wizard .fm-nav.is-last .fm-next { display: none; }
.fm-back { flex: none; padding: 17px 26px; border: 1.5px solid var(--sea-900); border-radius: 999px; background: transparent; color: var(--sea-900); font: 600 16px/1 var(--font-sans); cursor: pointer; transition: background .2s, color .2s; }
.fm-back:hover { background: var(--sea-900); color: var(--white); }
.fm-wizard .fm-nav .fm-next { flex: 1; }
.fm-wizard .fm-nav.is-first .fm-back { display: none; }
.fm-wizard .fm-step[data-step="4"] .fm-actions { margin-top: 0; }
.fm-wizard .fm-nav.is-last { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .fm-wizard .fm-step.is-on { animation: none; } }

@media (min-width: 640px) {
  .fm-row { grid-template-columns: 1fr 1fr; }
  .fm-card { padding: 40px 36px 36px; }
  .fm-submit { width: auto; min-width: 220px; }
  .fm-wizard .fm-nav .fm-next { flex: none; min-width: 200px; margin-left: auto; width: auto; }
  .fm-progress li span { display: inline; margin-right: 8px; color: var(--sun-deep); font: 600 12px/1 var(--font-sans); letter-spacing: 0; }
}
@media (min-width: 960px) {
  .fm-contact__grid { grid-template-columns: 5fr 7fr; gap: 28px; align-items: stretch; }
  .fm-aside { padding: 48px 44px; }
  .fm-card { padding: 52px 52px 48px; }
  .fm-intro__grid { grid-template-columns: 1.1fr 1fr; gap: 96px; align-items: center; }
  .fm-card--wide { padding: 56px 64px 52px; }
}

body.fm .pg-hero__img { object-position: 50% 45%; }

.fm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
