/* Book a demo (contact.html), v4 (2026-11-25, reworked 2026-11-27). Loaded after site-2026.css; uses its tokens and
   its v4 parts (.ph, .v4-short, .v4-sec, .v4-split, .v4-steps, .v4-cards, .v4-screen, .next-band).
   The page: a short opening in words, then the form in a white card that rises into the opening, with the three
   things that happen after it is sent beside it (under it on a phone); then what the demo shows beside a real
   screen, who it is for, the quick links and the closing band. The form's markup, names and ids are contact.js's;
   this file only draws them. */
[hidden] { display: none !important; }
@media (min-width: 1024px) { body { font-size: 17px; } }

/* ---------- The opening: shorter than other pages, so the form starts on the first screen ---------- */
@media (min-width: 900px) {
  /* Three classes, to outrank the shared opening rules in site-2026.css: the form card below rises 80px over this foot. */
  .ph.pc-ph .ph-grid.solo, .ph.pc-ph.ph-plain .ph-grid.solo { min-height: 0; padding: 28px 0 112px; }
  .pc-ph h1 { max-width: none; font-size: clamp(40px, 3.8vw, 54px); }
  .pc-ph .ph-lead { max-width: 30em; }
}
@media (max-width: 899px) {
  .pc-ph .ph-grid { margin-top: -30px; padding-bottom: 40px; }
  .pc-ph .crumbs { margin-bottom: 4px; }
  .pc-ph h1 { margin-bottom: 8px; }
}

/* ---------- The form and what happens next: side by side on a laptop, the form first on a phone ---------- */
main > section.pc-sec { padding-top: 0; }
.pc-grid { display: grid; gap: 36px; }
.pc-card { position: relative; z-index: 1; margin-top: -20px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 70px -28px rgba(16, 40, 63, .38); padding: 20px 16px 22px; }
.pc-card-eyebrow { margin-bottom: 6px; }
.pc-ph .eyebrow, .pc-card-eyebrow { font-size: 14px; line-height: 20px; }
.pc-next h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; color: var(--navy); }
.pc-next .v4-steps { margin-top: 20px; }
.pc-next .v4-steps > li:last-child { border-bottom: 1px solid var(--line); }
.pc-mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.pc-mail .btn-ghost { border-color: #8593A1; min-height: 48px; }
.pc-mail .btn-ghost:hover { border-color: var(--navy); background: var(--sky-wash); }
.pc-small a { color: inherit; font-weight: 500; text-decoration: underline; text-decoration-color: var(--sky-mid); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
@media (min-width: 641px) { .pc-card { padding: 30px 30px 28px; } }
@media (min-width: 1000px) {
  .pc-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; }
  .pc-card { margin-top: -80px; }
  .pc-next { padding-top: 56px; }
}

/* ---------- The form ---------- */
.contact-form { display: grid; gap: 0; }
/* Visual order. The status block sits first in the markup so an unavailable form says so before the fields;
   in every other state it shows just above the button, next to the spam check. */
.contact-form > .form-intro { order: 0; }
.contact-form > .form-grid { order: 2; }
.contact-form > .form-note { order: 3; }
.contact-form > .contact-context { order: 4; }
.contact-form > [data-contact-verification], .contact-form > .pc-bypass { order: 5; }
.contact-form > .pc-status { order: 6; }
.contact-form > .pc-submit { order: 7; }
.contact-form > .pc-why { order: 8; }
.contact-form > noscript { order: 9; }
.form-intro { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 22px; line-height: 1.2; font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.form-intro span { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; margin-top: 22px; }
.form-wide { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.form-grid label { display: grid; gap: 8px; font-size: 16px; line-height: 22px; font-weight: 500; color: var(--navy); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 52px; padding: 11px 14px; border: 1.5px solid #6B7785; border-radius: 10px; background: var(--white);
  font: 400 17px/1.4 'Outfit', Arial, sans-serif; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form select { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2310283F' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.contact-form ::placeholder { color: var(--ink-3); }
.contact-form :is(input, select, textarea):hover { border-color: var(--navy); }
.contact-form :is(input, select, textarea):focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(74, 144, 194, .6); }
.contact-form :is(input, textarea):user-invalid { border-color: var(--alert); box-shadow: 0 0 0 3px rgba(180, 83, 42, .15); }
.contact-form :is(input, textarea)[aria-invalid="true"] { border-color: var(--alert); box-shadow: 0 0 0 3px rgba(165, 75, 38, .18); }
@media (prefers-reduced-motion: reduce) { .contact-form input, .contact-form select, .contact-form textarea { transition: none; } }
.field-error { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 21px; font-weight: 500; color: var(--alert); }
.field-error::before { content: "!"; flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--alert); color: var(--white); font-size: 13px; font-weight: 600; line-height: 1; }
/* Live character counts (contact.js). One-line fields show theirs only when the limit is close; the message box always. */
.char-count { justify-self: end; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.char-count.is-near { color: var(--alert); font-weight: 500; }
.char-count.is-full { color: var(--alert); font-weight: 600; }
.contact-form input + .char-count:not(.is-near):not(.is-full) { display: none; }
.form-note { margin-top: 16px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
/* The optional details: closed until asked for. */
.contact-context { margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--warm); }
.contact-context summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; cursor: pointer; list-style: none; font-size: 16px; line-height: 22px; font-weight: 500; color: var(--navy); border-radius: 12px; }
.contact-context summary::-webkit-details-marker { display: none; }
.contact-context summary::after { content: "+"; flex: none; font-size: 20px; line-height: 1; color: var(--sky); }
.contact-context[open] summary::after { content: "\2212"; }
/* The focus ring itself (colour and width) is the shared one in site-2026.css; this only keeps the shape. */
.contact-context summary:focus-visible { outline-offset: 2px; border-radius: 12px; }
.contact-context .form-grid { margin-top: 0; padding: 6px 16px 20px; }
[data-contact-verification] { margin-top: 18px; min-height: 65px; }
/* The spam check's way through for VPN users (contact.js offerBypass). */
.pc-bypass { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--sky-mid); border-radius: 10px; background: var(--warm); font-size: 15px; line-height: 22px; color: var(--navy); }
/* The status line, and the email route when something goes wrong. */
.pc-status { margin-top: 16px; }
.pc-status:has(.contact-status:empty) { display: none; }
.contact-status, .pc-fallback { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.contact-status:focus { outline: none; }
.pc-fallback { display: none; margin-top: 4px; }
.pc-fallback a, .pc-why a, .pc-noscript a { color: var(--navy); font-weight: 500; text-decoration-color: var(--sky-mid); text-underline-offset: 3px; }
.pc-status:has(.is-error) { padding: 12px 14px; border-radius: 10px; background: var(--alert-wash); }
.pc-status:has(.is-error) .pc-fallback { display: block; }
.contact-status.is-error { color: var(--alert); font-weight: 500; }
/* Unavailable: the form cannot send (button off, with an error). Say so first, calmly, with the email route. */
.contact-form:has(.pc-submit:disabled):has(.contact-status.is-error) > .pc-status { order: 1; margin: 16px 0 4px; padding: 14px 16px; background: var(--warm); border: 1px solid var(--line); border-left: 3px solid var(--sky-mid); }
.contact-form:has(.pc-submit:disabled):has(.contact-status.is-error) .contact-status { color: var(--navy); font-weight: 600; }
.contact-form:has(.pc-submit:disabled):has(.contact-status.is-error) [data-contact-mode] { display: none; }
/* The button. Off, it is a flat grey button with dark text and the reason underneath. */
.pc-submit { margin-top: 20px; justify-content: center; width: 100%; min-height: 56px; font-size: 18px; font-weight: 600; }
.pc-submit:disabled { cursor: not-allowed; background: #DDE1E6; border-color: #DDE1E6; color: var(--ink-2); }
.pc-why p, .pc-noscript { margin-top: 12px; font-size: 15px; line-height: 22px; color: var(--ink-2); }

/* After a confirmed send the form gives way to this confirmation, so nothing looks unfinished. */
.contact-done { padding: 4px 0 2px; }
.contact-done-title { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 22px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--navy); }
.contact-done-title:focus { outline: none; }
.contact-done-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--sky-wash); }
.contact-done-ic svg { width: 18px; height: 18px; stroke: var(--sky); stroke-width: 2.6; fill: none; }
.contact-done-text { margin: 14px 0 0; font-size: 16px; line-height: 24px; color: var(--ink-2); overflow-wrap: anywhere; }
.contact-done-text b { font-weight: 600; color: var(--navy); }
.contact-done-more { margin: 18px 0 0; font-size: 16px; }
.contact-again { min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.contact-again:hover { color: var(--sky); }

/* The thank-you pop-up after a confirmed send. It closes itself after 12 seconds; the panel stays. */
.thanks { width: min(440px, calc(100% - 32px)); max-width: none; padding: 0; border: 0; border-radius: 18px; background: var(--white); color: var(--navy); box-shadow: 0 24px 60px rgba(10, 28, 46, .28); }
.thanks::backdrop { background: rgba(10, 28, 46, .55); }
.thanks-box { position: relative; padding: 30px 28px 22px; text-align: center; }
.thanks-close { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.thanks-close:hover { background: var(--warm); color: var(--navy); }
.thanks-close:focus-visible { outline-offset: 2px; border-radius: 50%; }
.thanks-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.thanks-logos { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 36px; }
.thanks-logos img:first-child { width: 148px; height: auto; }
.thanks-logos img:last-child { width: 116px; height: auto; }
.thanks-sep { flex: none; width: 1px; height: 26px; background: var(--line); }
.thanks-ic { display: grid; place-items: center; width: 44px; height: 44px; margin: 24px auto 0; border-radius: 50%; background: var(--sky-wash); }
.thanks-ic svg { width: 22px; height: 22px; stroke: var(--sky); stroke-width: 2.6; fill: none; }
.thanks-title { margin: 14px 0 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -.01em; }
.thanks-text { margin: 10px 0 0; font-size: 16px; line-height: 24px; color: var(--ink-2); }
.thanks-text b { font-weight: 600; color: var(--navy); }
.thanks-timer { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 14px; line-height: 18px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.thanks-ring { width: 20px; height: 20px; transform: rotate(-90deg); }
.thanks-ring circle { fill: none; stroke: var(--line); stroke-width: 4; }
.thanks-ring .thanks-ring-bar { stroke: var(--sky-mid); stroke-dasharray: 100.6; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .thanks[open] { animation: thanks-in .22s ease-out; }
  .thanks[open]::backdrop { animation: thanks-fade .22s ease-out; }
  .thanks.is-counting .thanks-ring-bar { animation: thanks-ring var(--thanks-seconds, 12s) linear forwards; }
  @keyframes thanks-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
  @keyframes thanks-fade { from { opacity: 0; } }
  @keyframes thanks-ring { to { stroke-dashoffset: 100.6; } }
}

/* ---------- What you will see: two points, each with its icon, beside a real screen ---------- */
.pc-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.pc-points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.pc-points .v4-card-ic { margin: 0; }
.pc-points h3 { font-size: clamp(21px, 1.9vw, 25px); line-height: 1.25; letter-spacing: -.01em; color: var(--navy); }
.pc-points p { margin-top: 8px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 900px) { .pc-screen { display: none; } }
.v4-sec { padding: 80px 0; }

/* ---------- Who the demo is for: four cards on navy (a swipe row on a phone), then the small print ---------- */
.pc-who .v4-card-ic { background: rgba(156, 203, 235, .16); }
.pc-who .v4-card-ic svg { stroke: var(--sky-light); }
.pc-who > li { display: flex; flex-direction: column; }
.pc-go { margin-top: auto; padding-top: 16px; }
.pc-go .btn { width: 100%; justify-content: center; }
.v4-sec.is-navy .btn-ghost-light svg { stroke: var(--sky-light); }
.pc-small { margin-top: 28px; max-width: 46em; font-size: 17px; line-height: 1.55; }
.pc-who:focus-visible { border-radius: 20px; }
@media (max-width: 760px) {
  .pc-small { margin-top: 14px; }
  .pc-who.rail-m > li { flex-basis: 82%; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; align-items: center; align-content: start; }
  .pc-who > li > :not(.v4-card-ic):not(h3) { grid-column: 1 / -1; }
  .pc-who .v4-card-ic { margin: 0; }
  .pc-points { gap: 18px; }
  .pc-next .v4-steps { margin-top: 14px; }
  .pc-next .v4-steps > li { padding: 14px 0 16px; }
  .pc-next .v4-steps h3 { font-size: 19px; }
  .pc-mail { margin-top: 16px; }
  .pc-points p { font-size: 17px; }
  .v4-sec.is-navy .swipe-hint { margin-top: 0; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .78); }
}

/* ---------- Keep exploring: four quick links, two by two, or one row on a wide screen ---------- */
@media (min-width: 760px) { .next-list.has-ic { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .next-list.has-ic { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- The closing band: one line and two buttons ---------- */
.fc-end { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-deep); color: var(--white); padding: 80px 0; text-align: center; }
.fc-end::before { content: ""; position: absolute; z-index: -1; inset: -40% 15% -80%; background: radial-gradient(closest-side, rgba(74, 144, 194, .22), transparent 72%); }
.fc-end h2 { max-width: 20em; margin-inline: auto; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; color: var(--white); }
.fc-end-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.fc-end-actions .btn { min-height: 54px; padding-inline: 26px; font-size: 17px; }
@media (max-width: 640px) {
  .fc-end-actions { gap: 10px; margin-top: 22px; }
  .fc-end-actions .btn { padding-inline: 20px; }
}
@media (max-width: 760px) { main > section.v4-sec:not(.pc-sec) { padding-top: 40px; padding-bottom: 40px; } }

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .form-intro { font-size: 20px; }
  .form-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
  .thanks-box { padding: 28px 20px 20px; }
  .thanks-logos { gap: 10px; margin: 0 30px; }
  .thanks-logos img:first-child { width: 124px; }
  .thanks-logos img:last-child { width: 98px; }
}
/* Smallest phones: the spam check is at least 300px wide, so the form card uses the full screen width there. */
@media (max-width: 340px) {
  .pc-card { margin-inline: -10px; padding-inline: 10px; border-radius: 12px; }
  [data-contact-verification] { margin-inline: -4px; max-width: none; }
}

/* ---------- Windows high contrast (Edge): the form card keeps its edge ---------- */
@media (forced-colors: active) { .pc-card { border: 1px solid CanvasText; } .fc-end::before { display: none; } }
