/* ForthLogic contact page only. Shared components live in ../site.css. */

.c-hero { padding-block: clamp(48px, 7vw, 108px) clamp(8px, 2vw, 24px); }
.c-hero .label { margin-bottom: clamp(20px, 2.4vw, 32px); }
.c-hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 24px 48px; align-items: end; }
.c-hero .h1 { font-size: clamp(50px, 6.6vw, 96px); max-width: none; }
.c-hero .lede { max-width: 34ch; padding-bottom: 10px; }
.c-main { padding-top: clamp(40px, 5vw, 72px); }
.c-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 40px); align-items: start; }

/* form */
.c-formwrap { position: relative; scroll-margin-top: calc(var(--header-h) + 24px); }
.c-form, .c-done { background: var(--surface); border: 1px solid var(--rule-2); box-shadow: var(--shadow); padding: clamp(20px, 3vw, 40px); }
.c-form { display: grid; gap: 22px; }
.c-form-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.c-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.c-row .field-err { min-height: 0; }
.c-chips { border: 0; padding: 0; margin: 0; min-width: 0; }
.c-chips legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; display: inline-flex; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--rule-2); background: var(--paper); font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 140ms var(--ease-out); }
.pick span::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--ink-3); transition: background-color 180ms ease, border-color 180ms ease; }
.pick input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pick input:checked + span::before { background: var(--amber); border-color: var(--amber); }
.pick input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.pick:active span { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .pick:hover input:not(:checked) + span { border-color: var(--ink); color: var(--ink); } }
.c-under { display: flex; justify-content: space-between; gap: 12px; }
.c-under .small { flex: none; font-family: var(--mono); font-size: 11.5px; }
.c-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--rule); padding-top: 22px; }
.c-submit .btn { min-width: 150px; }
.btn.is-sending { pointer-events: none; }
.btn.is-sending .bi .i { animation: sendSpin 700ms linear infinite; }
@keyframes sendSpin { 50% { transform: translateX(4px); opacity: .4; } }
.c-err-sum { padding: 14px 16px; border: 1px solid var(--err); border-left-width: 3px; background: #fff; font-size: 14.5px; color: var(--ink); }
.c-err-sum:focus { outline: 2px solid var(--err); outline-offset: 2px; }
.c-err-sum ul { margin: 6px 0 0; padding-left: 18px; }
.c-err-sum a { color: var(--err); }

/* confirmation */
.c-done { min-height: 560px; }
.c-done:focus { outline: none; }
.c-check { width: 64px; height: 64px; }
.c-check rect, .c-check path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0; }
.c-check path { stroke: var(--amber-line); stroke-width: 4; stroke-linecap: square; }
.motion .c-check:not(.is-drawn) rect, .motion .c-check:not(.is-drawn) path { stroke-dashoffset: 1; }
.motion .c-check rect, .motion .c-check path { transition: stroke-dashoffset 700ms var(--ease-out); transition-delay: var(--dd, 0ms); }
.c-done-h { margin-top: 26px; }
.c-done .lede { margin-top: 14px; }
.c-done-steps { margin-top: 28px; border-top: 1px solid var(--rule); }
.c-done-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; color: var(--ink-2); }
.c-done-steps b { display: block; color: var(--ink); font-weight: 600; letter-spacing: -.015em; }
.c-done-steps .num { padding-top: 4px; color: var(--amber-ink); }
.c-again { margin-top: 26px; border: 0; background-color: transparent; cursor: pointer; padding-left: 0; padding-right: 0; }
.motion .c-done.is-in > *:not(.c-check) { animation: panelIn 560ms var(--ease-out) both; }
.motion .c-done.is-in > :nth-child(2) { animation-delay: 380ms; }
.motion .c-done.is-in > :nth-child(3) { animation-delay: 460ms; }
.motion .c-done.is-in > :nth-child(4) { animation-delay: 540ms; }
.motion .c-done.is-in > :nth-child(5) { animation-delay: 620ms; }

/* next steps (dark) */
.c-side { display: grid; gap: 12px; position: sticky; top: calc(var(--header-h) + 24px); }
.c-next { padding: clamp(24px, 3vw, 36px); }
.c-next-art { position: absolute; z-index: -1; right: -30%; bottom: -24%; width: 110%; opacity: .2; pointer-events: none; }
.c-next-art img { width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 50%, #000 40%, transparent 70%); }
.c-next .h3 { margin-top: 14px; font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -.045em; }
.c-steps-wrap { position: relative; margin-top: 24px; }
.c-steps { position: relative; display: grid; gap: 0; }
.c-steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; padding: 0 0 26px 0; }
.c-steps li:last-child { padding-bottom: 0; }
.c-dot { position: absolute; left: 0; top: 4px; width: 11px; height: 11px; background: var(--dark); border: 1.5px solid var(--amber); z-index: 1; }
.c-steps li:first-child .c-dot { background: var(--amber); }
.c-steps .num { grid-column: 2; color: var(--amber-dark-ink); }
.c-steps b { grid-column: 2; font-size: 19px; font-weight: 600; letter-spacing: -.025em; color: var(--on-dark); }
.c-steps p { grid-column: 2; font-size: 15px; color: var(--on-dark-2); text-wrap: pretty; }
.c-steps li:not(:last-child)::before { content: ""; position: absolute; left: 4.75px; top: 20px; bottom: 0; width: 1.5px; background: var(--rule-dark-2); transform-origin: top; transition: transform 900ms var(--ease-out) 250ms; }
.motion .c-steps li:not(.is-revealed)::before { transform: scaleY(0); }
.c-office { display: grid; gap: 14px; }
.c-office address { display: flex; gap: 12px; font-style: normal; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.c-office address b { color: var(--ink); font-weight: 600; }
.c-office address .i { font-size: 20px; margin-top: 2px; color: var(--amber-ink); }
.c-office .tlink { font-size: 14.5px; }

@media (max-width: 1000px) {
  .c-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .c-grid { grid-template-columns: minmax(0, 1fr); }
  .c-side { position: static; }
}
@media (max-width: 640px) {
  .c-row { grid-template-columns: minmax(0, 1fr); }
  .c-submit .btn { width: 100%; }
  .pick span { min-height: 44px; }
}

/* spam honeypot: off screen for people and screen readers, still in the DOM for bots */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* GHL form embed (when FL_CONFIG.ghlFormEmbed is set) */
.c-embed { background: var(--surface); border: 1px solid var(--rule-2); box-shadow: var(--shadow); padding: clamp(12px, 2vw, 20px); }
.c-embed iframe { display: block; width: 100%; min-height: 760px; border: 0; }

/* ---------- Booking calendar (GHL), loaded only after a human click ---------- */
.bk { padding-block: clamp(24px, 4vw, 48px) 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.bk-card { background: var(--surface); border: 1px solid var(--rule); padding: clamp(20px, 3.5vw, 40px); display: grid; gap: 22px; }
.bk-head { display: grid; gap: 10px; max-width: 62ch; }
.bk-gate { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.bk-gate a { color: var(--ink); text-decoration-color: var(--amber-line); text-underline-offset: 3px; }
.bk-frame:empty { display: none; }
.bk-frame { border-top: 1px solid var(--rule); padding-top: 18px; min-height: 640px; }
.bk-card.is-open .bk-frame { animation: bk-in 420ms var(--ease-out) both; }
@keyframes bk-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bk-card.is-open .bk-frame { animation: none; } }
.bk-gate[hidden] { display: none; }

.c-chatnote { display: grid; gap: 14px; justify-items: start; padding: clamp(20px,3vw,32px); background: var(--surface); border: 1px solid var(--rule); }
.c-form[hidden] { display: none; }
