/* ==========================================================================
   Template: Contact — Figma "Contact" 290:792 + form steps "CF" 290:1016
   All sizes: calc(N * var(--k)), N = Figma px at 1440 wide.
   ========================================================================== */

.ct {
  position: relative; overflow: clip;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
}
/* Same purple glow as above the packages on About (.ab-plans__glow): the
   Experience image flipped and blurred, clean top edge, fading downwards. */
.ct__glow-top {
  position: absolute; left: 0; right: 0; top: 0; height: calc(900 * var(--k));
  overflow: hidden; pointer-events: none;
}
.ct__glow-top::before {
  content: ""; position: absolute; left: calc(-59 * var(--k)); right: calc(-59 * var(--k));
  top: calc(-700 * var(--k)); height: calc(760 * var(--k));
  background: url("../img/expertise/glow-fill-b.jpg") center / cover no-repeat;
  transform: scaleY(-1); filter: blur(100px);
}
.ct h1 {
  position: relative; margin-top: calc(150 * var(--k)); padding: 0 16px; text-align: center;
  font-family: var(--serif); font-size: calc(84 * var(--k)); line-height: 1.1;
}

/* ── Form card — #1b1b1b, radius 10, padding 20; 45 below the title ── */
.cf {
  position: relative; margin-top: calc(60 * var(--k)); max-width: calc(100% - 32px);   /* = About heading → packages */
  background: #1b1b1b; border-radius: calc(10 * var(--k)); padding: calc(20 * var(--k));
  display: flex; flex-direction: column; align-items: center; gap: calc(20 * var(--k));
}
.cf-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: calc(20 * var(--k)); }
.cf-step[hidden] { display: none; }
.cf-step.is-entering { animation: cf-in .35s ease both; }
@keyframes cf-in { from { opacity: 0; transform: translateY(6px); } }
.cf-step legend {
  float: left; width: 100%; padding: 0; text-align: center;
  font-size: calc(24 * var(--k)); font-weight: 700; line-height: 1.2;
}
.cf-row { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(15 * var(--k)); }

/* Text fields — 12% white, radius 5, padding 10, 218 wide, Apercu 15 */
.cf input[type="text"], .cf input[type="email"], .cf input[type="tel"], .cf input[type="url"] {
  width: calc(218 * var(--k)); padding: calc(10 * var(--k));
  background: rgba(255,255,255,.12); border: 1px solid transparent; border-radius: calc(5 * var(--k));
  font: 400 calc(15 * var(--k))/1.1 var(--sans); color: var(--fg);
  transition: border-color .2s, background .2s;
}
.cf input::placeholder { color: rgba(247, 245, 241, .6); opacity: 1; }
.cf input:focus { outline: none; border-color: rgba(247, 245, 241, .5); background: rgba(255,255,255,.16); }
.cf input.is-invalid { border-color: #e5484d; }

/* Choices — 10px dot + label, 10 apart */
.cf-choice { display: inline-flex; align-items: center; gap: calc(10 * var(--k)); padding: calc(10 * var(--k)); cursor: pointer;
  font-size: calc(15 * var(--k)); line-height: 1.1; }
.cf-choice input { position: absolute; opacity: 0; pointer-events: none; }
.cf-choice .dot { width: calc(10 * var(--k)); height: calc(10 * var(--k)); border-radius: 50%; background: #3a3a3a; transition: background .2s, box-shadow .2s; }
.cf-choice input:checked + .dot { background: var(--fg); }
.cf-choice input:focus-visible + .dot { box-shadow: 0 0 0 3px rgba(247,245,241,.35); }

/* Nav — 37 × 37 squares, 15 apart: back = outline, next/send = solid */
.cf-nav { display: flex; gap: calc(15 * var(--k)); }
.cf-nav button {
  width: calc(37 * var(--k)); height: calc(37 * var(--k)); border-radius: calc(5 * var(--k));
  display: grid; place-items: center; cursor: pointer; font-size: calc(15 * var(--k));
  transition: border-color .2s, opacity .2s, filter .2s;
}
.cf-nav .fa { font-size: calc(15 * var(--k)); }   /* FA Pro Regular 15 */
.cf-back { background: transparent; border: 1px solid var(--fg); color: var(--fg); }
.cf-back:disabled { border-color: #353434; color: rgba(247,245,241,.5); cursor: default; }
.cf-next { background: var(--fg); border: 0; color: #0b0b0b; }
.cf-next:hover { filter: brightness(.9); }
.cf-next[aria-busy="true"] { opacity: .5; cursor: progress; }

.cf-error { font-size: calc(14 * var(--k)); color: #ff8a8a; text-align: center; min-height: 0; }
.cf-error:empty { display: none; }

/* Thank you — green check + title, one line under it */
.cf-done { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(20 * var(--k));
  width: calc(320 * var(--k)); min-height: calc(90 * var(--k)); }
.cf-done[hidden] { display: none; }
.cf-done__title { display: flex; align-items: center; gap: calc(10 * var(--k)); font-size: calc(24 * var(--k)); font-weight: 700; }
.cf-done__check { width: calc(30 * var(--k)); height: calc(30 * var(--k)); border-radius: 50%; background: #49c33e; display: grid; place-items: center; }
.cf-done__check .fa { font-size: calc(15 * var(--k)); color: var(--fg); }   /* FA Pro Solid 15 */
.cf-done p:not(.cf-done__title) { font-size: calc(15 * var(--k)); line-height: 1.1; }   /* not the title (24) */

/* Honeypot for bots */
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Privacy link below the form card */
.ct-privacy {
  position: relative; margin-top: calc(20 * var(--k)); padding: 0 16px; text-align: center;
  font-size: calc(15 * var(--k)); line-height: 1.4; color: var(--muted);
}
.ct-privacy a { color: var(--fg); text-underline-offset: 2px; }

/* ── Closer: logos at the bottom of the screen, 60 below the rule; glow
      just below the page (Figma: blurred image under the frame) ── */
.ct-end { position: relative; width: 100%; margin-top: auto; padding: calc(120 * var(--k)) 0 calc(60 * var(--k)); }
.ct-end::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: calc(-59 * var(--k)); right: calc(-59 * var(--k)); top: 100%; height: calc(760 * var(--k));
  background: url("../img/expertise/glow-fill-a.jpg") center top / 100% 136.68% no-repeat;
  filter: blur(100px);
}

@media (max-width: 900px) {
  .ct h1 { margin-top: 120px; font-size: 44px; }
  .cf { margin-top: 32px; padding: 20px; width: calc(100% - 32px); }
  .cf-step legend { font-size: 20px; }
  .cf-row { flex-direction: column; align-items: stretch; width: 100%; }
  .cf input[type] { width: 100%; font-size: 16px; padding: 12px; }
  .cf-choice { font-size: 15px; }
  /* everything in the form on one left edge: page title, step titles,
     options, error text, back/next buttons and the thank-you */
  .ct h1 { align-self: stretch; text-align: left; padding: 0 16px; }   /* same width as the form card */
  .cf { align-items: stretch; }
  .cf-step { align-items: flex-start; }
  .cf-step legend, .cf-error { text-align: left; }
  .cf-step--choice .cf-row { align-items: flex-start; }
  .cf-step--choice .cf-choice { padding-left: 0; }
  .cf-nav { justify-content: flex-start; }
  .cf-done { align-items: flex-start; }
  .cf-nav button { width: 44px; height: 44px; font-size: 16px; }
  .cf-nav .fa, .cf-done__check .fa { font-size: 16px; }
  .cf-step { width: 100%; }
  .cf-done { width: auto; }
  .cf-done__title { font-size: 20px; }
  .cf-done p:not(.cf-done__title) { font-size: 15px; line-height: 1.3; }
  .ct-end { padding-top: 80px; }
  .ct-privacy { align-self: stretch; margin-top: 16px; text-align: left; font-size: 14px; }
}
