/* ===================================================
   Contact Us — page-specific styles
   =================================================== */

/* ===== Hero ===== */
.contact-hero {
  position: relative;
  aspect-ratio: 1440 / 541;
  min-height: 460px;
  overflow: hidden;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-hero__bg {
  position: absolute;
  width: 158.98%;
  height: auto;
  left: -11%;
  top: -83.86%;
  max-width: none;
  pointer-events: none;
}
.contact-hero .wrap {
  position: relative;
  z-index: 1;
  height: 100%;
  margin-left: 0;
  margin-right: auto;
}
.contact-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 500px;
}
.contact-hero__eyebrow {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
}
.contact-hero__title {
  font-family: var(--font-impact);
  font-size: 75px;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  white-space: nowrap;
}
/* Long-title variant (Book a Demo): wraps instead of nowrap, standard hero clamp */
.contact-hero__title--long {
  white-space: normal;
  font-size: clamp(34px, 5.86vw, 75px);
  max-width: 17ch; /* breaks as 'See the platform / in action' */
}

.contact-hero__subtitle {
  font-size: 18px;
  color: #fff;
  line-height: 1.5;
}

/* ===== Contact form section ===== */
.contact-form-section {
  background: #fff;
  padding: 112px 0;
}
.contact-form-section__inner {
  display: flex;
  gap: 80px;
  align-items: flex-start;
}

/* Left column */
.contact-form-reach {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}
.contact-reach__eyebrow {
  font-size: 20px;
  font-weight: 600;
  color: #8087b0;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.contact-reach__heading {
  /* Fluid, anchored to the Figma desktop 48px (3.75vw hits 48 at 1280); floor
     36 so it scales down through the tablet band instead of staying oversized. */
  font-size: clamp(36px, 3.75vw, 48px);
  font-weight: 700;
  color: #f54c2c;
  line-height: 1.1;
  margin: 0 0 24px;
}
.contact-reach__desc {
  font-size: 18px;
  color: #0f1e6d;
  line-height: 1.5;
  margin: 0;
}
.contact-reach__links {
  display: flex;
  flex-direction: column;
  gap: 27px;
  padding-top: 8px;
}
.contact-reach__row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-reach__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.contact-reach__icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f54c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-reach__icon-sym {
  font-size: 24px;
  color: #fff;
  font-weight: 200;   /* font-weight drives the weight (variable font); fvs 'wght' alone renders 400 */
  font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 24;
}
.contact-reach__row a {
  font-size: 16px;
  color: var(--deep-blue);
  text-decoration: underline;
  line-height: 1.5;
}
.contact-reach__row a:hover {
  opacity: 0.75;
}

/* Right column — form */
.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.contact-form__row {
  display: flex;
  gap: 24px;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.contact-form__field--full {
  flex: none;
  width: 100%;
}
.contact-form__label {
  font-size: 16px;
  color: #0f1e6d;
  line-height: 1.5;
}
.contact-form__input {
  background: #fff;
  border: 2px solid var(--deep-blue);
  border-radius: 100px;
  height: 48px;
  padding: 0 16px;
  font-size: 16px;
  color: #0f1e6d;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form__input:focus {
  border-color: #f54c2c;
}
.contact-form__input::placeholder {
  color: rgba(0,0,0,0.4);
}
.contact-form__select-wrap {
  position: relative;
}
.contact-form__select {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%230f1e6d'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 2px solid var(--deep-blue);
  border-radius: 100px;
  height: 48px;
  padding: 0 40px 0 16px;
  font-size: 16px;
  color: #0f1e6d;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form__select:focus {
  border-color: #f54c2c;
}

/* Radio buttons */
.contact-form__radios {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}
.contact-form__radio-legend {
  font-size: 16px;
  color: #0f1e6d;
  line-height: 1.5;
  margin: 0 0 0;
}
.contact-form__radio-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form__radio-row {
  display: flex;
  gap: 24px;
}
.contact-form__radio {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  cursor: pointer;
  min-width: 0;
}
.contact-form__radio input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #0f1e6d;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form__radio input[type="radio"]:checked {
  background: #0f1e6d;
  border-color: #0f1e6d;
  box-shadow: inset 0 0 0 3px #fff;
}
.contact-form__radio span {
  font-size: 16px;
  color: #0f1e6d;
  line-height: 1.5;
}

/* Textarea */
.contact-form__textarea {
  background: #fff;
  border: 2px solid var(--deep-blue);
  border-radius: 13px;
  height: 180px;
  padding: 12px 16px;
  font-size: 16px;
  color: #0f1e6d;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
  line-height: 1.5;
}
.contact-form__textarea:focus {
  border-color: #f54c2c;
}
.contact-form__textarea::placeholder {
  color: rgba(0,0,0,0.4);
}

/* Checkbox */
.contact-form__checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  cursor: pointer;
}
.contact-form__error {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--deep-orange);
}
.contact-form__error[hidden] { display: none; }
.contact-form__checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid #0f1e6d;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.contact-form__checkbox input[type="checkbox"]:checked {
  background: #0f1e6d;
  border-color: #0f1e6d;
}
.contact-form__checkbox span {
  font-size: 14px;
  color: #0f1e6d;
  line-height: 1.5;
}

/* Send button */
.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #f8951e, #f04e2c);
  border: none;
  border-radius: 29px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  width: auto;
  align-self: flex-start;
}
.contact-form__submit:hover {
  opacity: 0.85;
}

/* ===== Find Us section ===== */
.contact-find {
  background: #fff;
  padding: 112px 0;
}
.contact-find__inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.contact-find__eyebrow {
  font-size: 20px;
  font-weight: 600;
  color: #8087b0;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.5;
  margin: 0 0 12px;
}
.contact-find__heading {
  font-size: clamp(36px, 3.75vw, 48px);
  font-weight: 700;
  color: #f54c2c;
  line-height: 1.1;
  margin: 0 0 24px;
}
.contact-find__desc {
  font-size: 18px;
  color: #0f1e6d;
  line-height: 1.5;
  margin: 0;
  max-width: 569px;
}
.contact-find__content {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}
.contact-find__map {
  flex: 1;
  min-width: 0;
}
.contact-find__tab {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-left: 32px;
  border-left: 1px solid #0f1e6d;
  max-width: 480px;
}
.contact-find__city {
  font-size: 28px;
  font-weight: 600;
  color: #0f1e6d;
  line-height: 1.4;
  margin: 0;
}
.contact-find__address {
  font-size: 16px;
  color: #0f1e6d;
  line-height: 1.5;
  font-style: normal;
}
.contact-find__visit {
  font-size: 16px;
  font-weight: 600;
  color: #0f1e6d;
  text-decoration: underline;
  line-height: 1.5;
}
.contact-find__visit:hover {
  opacity: 0.75;
}

/* ===== Stats section ===== */
.contact-stats {
  background: #fff;
  padding: 112px 0;
}
.contact-stats__inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.contact-stats__heading {
  /* Anchored to Figma desktop 40px (3.13vw hits 40 at 1280); floor 28 lets
     "(another reason to) Get in contact" sit on one line through the tablet band. */
  font-size: clamp(28px, 3.13vw, 40px);
  font-weight: 600;
  color: #f54c2c;
  line-height: 1.2;
  max-width: 768px;
  margin: 0;
}
.contact-stats__row {
  display: flex;
  justify-content: center;
  gap: 48px;
}
.contact-stat {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 258px;
}
.contact-stat__circle-img {
  width: 258px;
  height: 258px;
  max-width: 100%;
}
.contact-stat__text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  width: 192px;
  gap: 0;
}
.contact-stat__number {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.2;
}
.contact-stat__label {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

/* ===== Newsletter CTA ===== */
.contact-newsletter {
  position: relative;
  overflow: hidden;
  min-height: 469px;
  display: flex;
  align-items: center;
  padding: 112px 0;
  background-color: #f8951e;
}
.contact-newsletter__bg {
  display: block;
  position: absolute;
  width: 178%;
  height: auto;
  left: -78%;
  top: 50%;
  transform: translateY(-50%);
  max-width: none;
  pointer-events: none;
}
.contact-newsletter__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  box-sizing: border-box;
}
.contact-newsletter__content {
  width: 690px;
  margin-left: 43%;
  max-width: calc(100% - 43% - 60px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-newsletter__heading {
  font-size: clamp(32px, 3.75vw, 48px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin: 0;
}
.contact-newsletter__desc {
  font-size: 18px;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}
.contact-newsletter__form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-newsletter__form {
  display: flex;
  gap: 16px;
}
.contact-newsletter__input {
  flex: 1;
  border: 1px solid rgba(255,255,255,1);
  background: transparent;
  border-radius: 46px;
  padding: 12px 16px;
  font-size: 16px;
  color: #fff;
  font-family: inherit;
  outline: none;
  min-width: 0;
}
.contact-newsletter__input::placeholder {
  color: rgba(255,255,255,0.65);
}
.contact-newsletter__input:focus {
  border-color: rgba(255,255,255,0.8);
}
.contact-newsletter__btn {
  background: #6962f0;
  border: 1px solid #6962f0;
  border-radius: 53px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.contact-newsletter__btn:hover {
  opacity: 0.85;
}
.contact-newsletter__fine {
  font-size: 12px;
  color: #fff;
  line-height: 1.5;
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  /* Tablet hero — Figma iPad Pro 11" frame 11643:2488 (834×534). Same wide
     photo as desktop, so keep the <img>; box locked to the frame aspect so the
     transform below is exact at every in-band width. Copy sits TOP-left
     (Figma container top:40 / left:35), man on the right. */
  .contact-hero { aspect-ratio: 834 / 534; min-height: 420px; justify-content: flex-start; padding: 40px 0; }
  /* Figma <img> transform → CSS 1:1 (width% & left% of box width, top% of box
     height, height:auto preserves aspect). Node values: w 247.34%, left
     -58.9%, top -55.75%. Pillow-composite verified against the node screenshot. */
  .contact-hero__bg { width: 247.34%; height: auto; left: -58.9%; top: -55.75%; }
  /* Copy aligns with the nav logo, not the centred .wrap — same gutter clamp
     as .nav__inner so the "GET IN TOUCH"/heading left edge lines up with the
     Contactable logo above it (user-requested; wrap-pad sat ~24px further in). */
  .contact-hero .wrap { padding-inline: clamp(24px, 6vw, 88px); }
  .contact-hero__inner { max-width: 560px; }
  .contact-hero__eyebrow { font-size: 18px; letter-spacing: 0.9px; }
  .contact-hero__title { font-size: 48px; }
  .contact-hero__subtitle { font-size: 18px; max-width: 392px; }
  /* Stack reach above form, but STRETCH so the form fills the content width
     (default flex-start left it shrunk to ~210px). */
  .contact-form-section__inner { flex-direction: column; gap: 48px; align-items: stretch; }
  /* Form has the full width now, so keep the fields 2-up (First/Last, Email/Phone). */
  .contact-form__row { flex-direction: row; gap: 24px; }
  /* Stats — all three circles on one line; size them fluidly so 3 always fit the
     content width across the tablet band, and scale the number/label with the
     circle via container queries (cqi) so nothing overflows. */
  .contact-stats__row { flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: clamp(12px, 2vw, 32px); }
  .contact-stat { min-height: 0; width: clamp(150px, 24vw, 220px); container-type: inline-size; }
  .contact-stat__circle-img { width: 100%; height: auto; aspect-ratio: 1; }
  .contact-stat__text { width: 78%; }
  .contact-stat__number { font-size: 23cqi; }   /* 60/258 of the circle */
  .contact-stat__label { font-size: 6.6cqi; }    /* 17/258 of the circle */
  /* Newsletter CTA — Figma tablet frame 13216:781 (834×482). Same wide asset,
     copy block at 303/834 from the left, 493 wide. Figma <img> transform → CSS
     1:1 (w% & left% of box width, top% of box height, height:auto preserves
     aspect — node h 239.21% checks out against the 4096×2733 asset). */
  .contact-newsletter { aspect-ratio: 834 / 482; min-height: 0; padding: 50px 0; }
  .contact-newsletter__bg { width: 207.19%; left: -101.71%; top: -69.62%; transform: none; }
  .contact-newsletter__content {
    margin-left: 36.33%;               /* 303/834 */
    width: auto;
    max-width: min(493px, calc(100% - 36.33% - 24px));
    gap: 25px;
  }
  .contact-newsletter__heading { font-size: 36px; }
  .contact-newsletter__desc { max-width: 475px; margin-top: 24px; } /* Figma heading↔body gap */
}
@media (max-width: 600px) {
  /* Mobile hero — Figma frame 11487:1579 (393×539). This band uses a DIFFERENT,
     tighter portrait crop of the same shoot (contact-hero-bg-mobile.png,
     2752×1536) — the wide desktop photo can't reproduce this framing. So hide
     the wide <img> and paint the mobile asset as a background instead.
     Copy sits BOTTOM-left (Figma content bottom-aligned, ~49px from base).
     Paired knobs (re-solve together if nudged): size 271.17% ↔ position-x 32.8%
     derived from the node's img transform (left -56.19% → x 32.8%; top ~0 → y 0%).
     Pillow-composite verified against the node screenshot. */
  .contact-hero {
    aspect-ratio: 393 / 539;
    min-height: 500px;
    justify-content: flex-end;
    padding: 0 0 49px;
    background-color: #f2f2f2;
    background-image: url('../assets/brand/contact-hero-bg-mobile.webp');
    background-repeat: no-repeat;
    background-size: 271.17% auto;
    background-position: 32.8% 0%;
  }
  .contact-hero__bg { display: none; }
  /* Copy is hard-left over the photo (Figma left gutter 24px). The centred
     .wrap's symmetric ~35px gutters squeeze the measure below 331px and change
     the body wrap; pin it to Figma's 24px so the wrap matches the mockup. */
  .contact-hero .wrap { height: auto; padding-inline: 24px; }
  .contact-hero__inner { max-width: 345px; }
  .contact-hero__eyebrow { font-size: 16px; letter-spacing: 0.8px; }
  .contact-hero__title { font-size: 36px; }
  .contact-hero__subtitle { font-size: 18px; max-width: 331px; }
  .contact-form-section { padding: 72px 0; }
  .contact-find { padding: 72px 0; }
  .contact-stats { padding: 72px 0; }
  /* Newsletter CTA — Figma mobile frame 13216:770 (393×648). Gradient bg with
     the SAME fingerprint asset VERTICALLY FLIPPED, arch bleeding off the top
     (node img: w 365.72%, left -155.92%, negative height with bottom edge at
     86.48% → scaleY(-1) + translateY(-100%)). Column bottom-anchored: heading,
     body, full-width email pill, then fine print (left) + button (right) on
     one row. Pillow-composite verified against the node screenshot. */
  .contact-newsletter {
    aspect-ratio: 393 / 648;
    min-height: 0;
    padding: 0 0 40px;
    align-items: flex-end;
    background: linear-gradient(269.7deg, #fcb66e 0.77%, #ef9643 99.94%);
  }
  .contact-newsletter__bg {
    width: 365.72%;
    left: -155.92%;
    top: 86.48%;
    transform: translateY(-100%) scaleY(-1);
  }
  .contact-newsletter__inner { padding: 0 24px; }
  .contact-newsletter__content { margin-left: 0; max-width: 344px; gap: 21px; }
  .contact-newsletter__heading { font-size: 28px; }
  /* Input on its own full row; fine print + button share the row below.
     display:contents dissolves the <form> so input/button join the wrap flex. */
  .contact-newsletter__form { display: contents; }
  .contact-newsletter__form-wrap { flex-direction: row; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
  .contact-newsletter__input { flex: 1 0 100%; font-size: 15px; font-weight: 300; padding: 8px 24px; border-color: rgba(255,255,255,0.9); }
  .contact-newsletter__fine { order: 2; flex: 1; font-size: 10px; max-width: 180px; }
  .contact-newsletter__btn { order: 3; text-transform: capitalize; } /* Figma mobile label "Get Started" */
  /* Headings: the base clamps floor at 36px (reach/find) and 28px (stats) here,
     so no fixed mobile override is needed. */
  /* Phones: fields and stat circles go back to one per row. */
  .contact-form__row { flex-direction: column; gap: 16px; }
  .contact-stats__row { flex-direction: column; align-items: center; }
  .contact-stat { width: 210px; }
  /* Find: stack the map UNDER the address (side-by-side squeezes the map off
     the edge at phone widths); stretch so both fill the full column width. */
  .contact-find__content { flex-direction: column; align-items: stretch; gap: 32px; }
  .contact-form__radio-row { flex-direction: column; gap: 10px; }
}
