/* ==========================================================================
   CITADEL TRIAD — CONTACT PAGE
   css/contact.css
   A dark, full-viewport hero in both themes: photo + scrim on the left copy,
   a translucent navy form card on the right. Everything below is theme-aware.
   ========================================================================== */

.ct-page {
  --ct-hero-lqip: url("data:image/jpeg;base64,/9j/2wBDABQUFBQVFBcZGRcfIh4iHy4rJycrLkYyNjI2MkZqQk5CQk5Cal5yXVZdcl6phXZ2hanDpJukw+zT0+z/////////2wBDARQUFBQVFBcZGRcfIh4iHy4rJycrLkYyNjI2MkZqQk5CQk5Cal5yXVZdcl6phXZ2hanDpJukw+zT0+z/////////wgARCAAQABgDASIAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAAAAMFAgT/xAAVAQEBAAAAAAAAAAAAAAAAAAAEA//aAAwDAQACEAMQAAAAfqA1MKhwiDf/xAAdEAACAgIDAQAAAAAAAAAAAAABAgARAzESExQy/9oACAEBAAE/AFVFFs0DozUupnxCd5I3PRXGo+clfqf/xAAYEQADAQEAAAAAAAAAAAAAAAAAAQIDYf/aAAgBAgEBPwCtKbQr6f/EABkRAAMAAwAAAAAAAAAAAAAAAAABAgMhMf/aAAgBAwEBPwCccpMcb4f/2Q==");
  background: var(--outer-bg);
}

.ct-container {
  width: min(1392px, 100% - 48px);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   1. HERO SHELL + PHOTO
   -------------------------------------------------------------------------- */
.ct-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-min-height, 80px));
  padding: 92px 0 40px;
  overflow: hidden;
  background: #08101f;
}

.ct-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background-color: #0b1220;
  background-image: var(--ct-hero-lqip, none);
  background-size: cover;
  background-position: 50% 30%;
}

.ct-hero-picture,
.ct-hero-image {
  display: block;
  width: 100%;
  height: 100%;
}

.ct-hero-picture {
  animation: ctHeroSettle 1.8s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

.ct-hero-picture {
  transform-origin: 50% 40%;
}

.ct-hero-image {
  object-fit: cover;
  object-position: 50% 30%;
  will-change: transform;
}

.ct-hero-scrim,
.ct-hero-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ct-hero-scrim {
  background:
    linear-gradient(90deg,
      rgba(8, 14, 28, 0.90) 0%,
      rgba(8, 14, 28, 0.72) 38%,
      rgba(8, 14, 28, 0.42) 62%,
      rgba(8, 14, 28, 0.82) 100%),
    linear-gradient(180deg,
      rgba(8, 14, 28, 0.55) 0%,
      transparent 30%,
      rgba(8, 14, 28, 0.75) 100%);
}

.ct-hero-fade {
  background: linear-gradient(180deg, transparent 74%, rgba(8, 14, 28, 0.55) 100%);
}

/* Slow settle on load; motion guardrails below */
@keyframes ctHeroSettle {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

html.perf-lite .ct-hero-picture,
html.novanta .ct-hero-picture {
  animation: none;
}

/* --------------------------------------------------------------------------
   2. LAYOUT GRID (12 cols, 7 + 5)
   -------------------------------------------------------------------------- */
.ct-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "intro intro intro intro intro intro intro form form form form form"
    "steps steps steps steps steps steps steps form form form form form"
    "details details details details details details details form form form form form";
  align-items: start;
  gap: 20px 48px;
}

.ct-intro { grid-area: intro; max-width: 46rem; }
.ct-form-col { grid-area: form; }
.ct-steps { grid-area: steps; }
.ct-details { grid-area: details; }

/* --------------------------------------------------------------------------
   3. LEFT COLUMN
   -------------------------------------------------------------------------- */
.ct-title {
  margin: 0 0 14px;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -0.045em;
  color: #f8fafc;
  text-wrap: balance;
}

.ct-title-line {
  display: block;
}

.ct-lead {
  max-width: 52ch;
  margin: 0 0 16px;
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.5;
  color: #cbd5e1;
}

.ct-service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.ct-service-chips li {
  padding: 0.35rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ct-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.ct-wa-btn {
  min-height: 46px;
  padding-inline: 1.35rem 1.6rem;
}

.ct-wa-avatar {
  background: rgba(11, 18, 32, 0.08);
  color: #128c4a;
}

.ct-wa-btn .roll-btn-inner {
  height: 1.3em;
}

.ct-email-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 4px;
  color: #f8fafc;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(248, 250, 252, 0.4);
  text-underline-offset: 4px;
  border-radius: 4px;
  transition: text-decoration-color 0.25s ease, color 0.25s ease;
}

.ct-email-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease-out, cubic-bezier(0.16, 1, 0.3, 1));
}

.ct-email-link:hover {
  text-decoration-color: #ffffff;
}

.ct-email-link:hover svg {
  transform: translate(2px, -2px);
}

.ct-email-link:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   4. FORM CARD
   -------------------------------------------------------------------------- */
.ct-card {
  position: relative;
  padding: clamp(18px, 1.7vw, 24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(11, 18, 32, 0.78);
  box-shadow: 0 26px 70px -28px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.ct-card-title {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.3vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.ct-status:empty {
  display: none;
}

.ct-status {
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: #fca5a5;
}

.ct-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ct-field {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.ct-field-grid .ct-field {
  margin-bottom: 0;
}

.ct-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0 0 5px;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #dbe4f0;
}

.ct-req,
.ct-opt {
  font-weight: 400;
  font-size: 0.75rem;
}

.ct-req { color: #93c5fd; }
.ct-opt { color: #94a3b8; }

.ct-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-family: var(--font-body);
  font-size: 1rem; /* >=16px: no iOS zoom */
  line-height: 1.45;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ct-input::placeholder {
  color: #94a3b8;
}

.ct-input:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.ct-input:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
  border-color: rgba(125, 211, 252, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.ct-input[aria-invalid="true"] {
  border-color: #fca5a5;
}

/* Keep autofilled text readable on the dark card */
.ct-input:-webkit-autofill,
.ct-input:-webkit-autofill:hover,
.ct-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #16213a inset;
  box-shadow: 0 0 0 1000px #16213a inset;
  -webkit-text-fill-color: #f8fafc;
  caret-color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.18);
}

.ct-textarea {
  min-height: 132px;
  resize: vertical;
}

.ct-count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.02em;
  color: #94a3b8;
  text-align: right;
}

.ct-error {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #fca5a5;
}

.ct-error[hidden],
.ct-count[hidden] {
  display: none;
}

/* Radio chips */
.ct-group {
  min-width: 0;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.ct-group .ct-label {
  margin-bottom: 8px;
}

.ct-radio-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ct-radio-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.ct-radio-chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.ct-radio-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ct-radio-chip:hover span {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.09);
}

.ct-radio-chip input:checked + span {
  border-color: #f8fafc;
  background: #f8fafc;
  color: #0b1220;
}

.ct-radio-chip input:focus-visible + span {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

/* Honeypot: off-screen, never announced */
.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-turnstile-wrap {
  margin: 4px 0 12px;
}

.ct-turnstile-label {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  color: #94a3b8;
}

.ct-turnstile {
  min-height: 0;
}

.ct-turnstile:empty {
  display: none;
}

.ct-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: #f8fafc;
  color: #0b1220;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.ct-submit svg {
  width: 16px;
  height: 16px;
}

.ct-submit:hover {
  background: #e2e8f0;
}

.ct-submit:active {
  transform: translateY(1px);
}

.ct-submit:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}

.ct-submit[aria-busy="true"],
.ct-submit:disabled {
  cursor: progress;
  opacity: 0.8;
}

.ct-privacy {
  margin: 10px 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #94a3b8;
}

.ct-privacy-link {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ct-privacy-link:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Error summary */
.ct-summary {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(252, 165, 165, 0.45);
  border-radius: 12px;
  background: rgba(127, 29, 29, 0.35);
  color: #fee2e2;
}

.ct-summary:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

.ct-summary-title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
}

.ct-summary-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.ct-summary-list a {
  color: #fecaca;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ct-summary-list a:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

/* Success + fallback panels */
.ct-success,
.ct-fallback {
  margin-top: 4px;
}

.ct-success:focus-visible,
.ct-success:focus {
  outline: none;
}

.ct-success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.16);
  color: #6ee7b7;
}

.ct-success-mark svg {
  width: 20px;
  height: 20px;
}

.ct-success-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  color: #f8fafc;
}

.ct-success-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.ct-fallback {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.ct-fallback-title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #f8fafc;
}

.ct-fallback-text {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.ct-fallback-brief {
  max-height: 160px;
  margin: 0 0 12px;
  padding: 10px;
  overflow: auto;
  border-radius: 10px;
  background: rgba(4, 9, 18, 0.6);
  color: #dbe4f0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
}

.ct-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ct-fallback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: transparent;
  color: #f8fafc;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.ct-fallback-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ct-fallback-btn:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

.ct-fallback-btn-wa {
  border-color: rgba(110, 231, 183, 0.55);
  color: #a7f3d0;
}

.ct-noscript {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  color: #e2e8f0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.ct-noscript a {
  color: #93c5fd;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   5. STEPS + CONTACT DETAILS
   -------------------------------------------------------------------------- */
.ct-steps {
  padding: 12px 16px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(11, 18, 32, 0.68);
}

.ct-steps-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.ct-steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ct-step;
}

.ct-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ct-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #f8fafc;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1;
}

.ct-step-title {
  margin: 0 0 3px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 500;
  color: #f8fafc;
}

.ct-step-desc {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #94a3b8;
}

.ct-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-style: normal;
}

.ct-detail {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ct-detail-label {
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fa0b6;
}

.ct-detail-value {
  color: #e2e8f0;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-decoration: none;
}

a.ct-detail-value:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.ct-detail-value:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   6. HEADER ON THE DARK HERO (desktop, before scrolling)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  body[data-header="on-dark"] .site-header:not(.is-scrolled) .nav-capsule {
    --nav-capsule-bg: rgba(9, 16, 30, 0.38);
    --nav-capsule-border: rgba(255, 255, 255, 0.16);
    --nav-capsule-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.55);
    --nav-link-color: #dbe4f0;
    --nav-hover-bg: rgba(255, 255, 255, 0.1);
    --nav-active-bg: rgba(255, 255, 255, 0.12);
    --nav-active-border: rgba(255, 255, 255, 0.22);
    --nav-active-color: #ffffff;
    --nav-divider-color: rgba(255, 255, 255, 0.16);
    --nav-control-bg: rgba(255, 255, 255, 0.1);
    --nav-control-border: rgba(255, 255, 255, 0.22);
    --nav-control-hover-bg: rgba(255, 255, 255, 0.18);
    --language-switch-bg: rgba(255, 255, 255, 0.1);
    --language-switch-border: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.16);
  }

  body[data-header="on-dark"] .site-header:not(.is-scrolled) .nav-capsule .nav-pill-item,
  body[data-header="on-dark"] .site-header:not(.is-scrolled) .nav-capsule .nav-pill-item svg {
    color: #dbe4f0;
  }

  body[data-header="on-dark"] .site-header:not(.is-scrolled) .nav-capsule .nav-pill-item:hover,
  body[data-header="on-dark"] .site-header:not(.is-scrolled) .nav-capsule .nav-pill-item.is-active {
    color: #ffffff;
  }

  body[data-header="on-dark"] .site-header:not(.is-scrolled) .language-switch-option {
    color: #e2e8f0;
  }

  body[data-header="on-dark"] .site-header:not(.is-scrolled) .language-switch-option.is-active {
    background: #f8fafc;
    color: #0b1220;
  }

  body[data-header="on-dark"] .site-header:not(.is-scrolled) .theme-toggle-header {
    color: #f8fafc;
  }

  body[data-header="on-dark"] .site-header:not(.is-scrolled) .nav-roll-cta {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.4);
  }

  body[data-header="on-dark"] .site-header:not(.is-scrolled) .nav-roll-cta:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: #ffffff;
    color: #ffffff;
  }

  /* White logo variant over the photo, in both themes */
  body[data-header="on-dark"] .site-header:not(.is-scrolled) .brand-logo-blue { display: none; }
  body[data-header="on-dark"] .site-header:not(.is-scrolled) .brand-logo-white { display: block; }
}

/* --------------------------------------------------------------------------
   7. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1250px) {
  .ct-hero-inner {
    gap: 24px 40px;
  }

  .ct-steps-list {
    gap: 12px;
  }

  .ct-step {
    gap: 8px;
  }
}

@media (max-width: 1023px) {
  .ct-hero {
    display: block;
    min-height: 0;
    padding: 0 0 44px;
    overflow: visible;
    background: var(--outer-bg);
  }

  .ct-hero-media {
    position: relative;
    inset: auto;
    aspect-ratio: 16 / 10;
    max-height: 52svh;
    margin-bottom: -1px;
  }

  .ct-hero-image {
    object-position: 48% 25%;
  }

  .ct-hero-scrim {
    background:
      linear-gradient(180deg,
        rgba(8, 14, 28, 0.55) 0%,
        rgba(8, 14, 28, 0.18) 36%,
        rgba(8, 14, 28, 0.42) 72%,
        rgba(8, 14, 28, 0.72) 100%);
  }

  .ct-hero-fade {
    background: linear-gradient(180deg,
      transparent 0%,
      rgba(8, 14, 28, 0) 35%,
      var(--outer-bg) 96%);
  }

  html[data-theme="dark"] .ct-hero-fade {
    background: linear-gradient(180deg,
      transparent 0%,
      rgba(11, 18, 32, 0) 35%,
      #0b1220 96%);
  }

  .ct-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-top: 26px;
  }

  .ct-title {
    font-size: clamp(2.05rem, 7.4vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 14px;
  }

  .ct-lead {
    font-size: 1rem;
    max-width: none;
    margin-bottom: 18px;
  }

  .ct-service-chips {
    margin-bottom: 20px;
  }

  .ct-card {
    border-radius: 22px;
  }

  .ct-steps {
    border-radius: 18px;
  }

  .ct-details {
    border-top-color: var(--border-subtle);
  }

  .ct-detail-value {
    color: var(--text-primary);
  }

  .ct-detail-label {
    color: var(--text-muted);
  }

  .ct-detail-value:hover {
    color: var(--accent-blue);
  }
}

@media (max-width: 639px) {
  .ct-container {
    width: min(1392px, 100% - 32px);
  }

  .ct-hero-media {
    aspect-ratio: 16 / 10;
  }

  .ct-field-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .ct-field-grid .ct-field {
    margin-bottom: 12px;
  }

  .ct-steps-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .ct-steps {
    padding: 14px 16px 16px;
  }

  .ct-step-desc {
    font-size: 0.78rem;
  }

  .ct-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .ct-radio-chip span {
    min-height: 42px;
    font-size: 0.8125rem;
  }

  .ct-title {
    font-size: clamp(1.95rem, 8.6vw, 2.6rem);
  }
}

/* Landscape phones: keep the banner short so the form is reachable */
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 520px) {
  .ct-hero-media {
    aspect-ratio: 21 / 9;
    max-height: 38svh;
  }
}

/* --------------------------------------------------------------------------
   8. SINHALA TYPE
   -------------------------------------------------------------------------- */
html[data-lang="si"] .ct-title {
  font-family: var(--font-sinhala-heading);
  font-size: clamp(2rem, 4.4vw, 4.1rem);
  line-height: 1.22;
  letter-spacing: 0;
}

html[data-lang="si"] .ct-lead {
  font-family: var(--font-sinhala-body);
  line-height: 1.7;
}

html[data-lang="si"] .ct-label,
html[data-lang="si"] .ct-step-title,
html[data-lang="si"] .ct-card-title,
html[data-lang="si"] .ct-steps-title,
html[data-lang="si"] .ct-detail-label,
html[data-lang="si"] .ct-radio-chip span,
html[data-lang="si"] .ct-submit,
html[data-lang="si"] .ct-service-chips li,
html[data-lang="si"] .ct-email-link {
  font-family: var(--font-sinhala-heading);
}

html[data-lang="si"] .ct-radio-chip span,
html[data-lang="si"] .ct-step-desc,
html[data-lang="si"] .ct-count {
  line-height: 1.55;
}

@media (max-width: 639px) {
  html[data-lang="si"] .ct-title {
    font-size: clamp(1.8rem, 7.4vw, 2.4rem);
    line-height: 1.3;
  }
}

/* --------------------------------------------------------------------------
   9. REDUCED MOTION / FORCED COLORS
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ct-hero-picture,
  .ct-hero-image {
    animation: none;
    transform: none;
  }

  .ct-email-link,
  .ct-email-link svg,
  .ct-submit,
  .ct-input,
  .ct-radio-chip span,
  .ct-roll-label {
    transition: none;
  }

  .ct-email-link:hover svg {
    transform: none;
  }
}

@media (forced-colors: active) {
  .ct-card,
  .ct-steps,
  .ct-input,
  .ct-radio-chip span,
  .ct-submit,
  .ct-fallback,
  .ct-noscript,
  .ct-summary {
    border: 1px solid ButtonText;
    forced-color-adjust: auto;
  }

  .ct-input:focus-visible,
  .ct-radio-chip input:focus-visible + span,
  .ct-submit:focus-visible,
  .ct-email-link:focus-visible,
  a.ct-detail-value:focus-visible,
  .ct-summary:focus-visible,
  .ct-fallback-btn:focus-visible {
    outline: 3px solid Highlight;
    outline-offset: 2px;
  }

  .ct-radio-chip input:checked + span {
    background: Highlight;
    color: HighlightText;
    border-color: Highlight;
  }

  .ct-submit {
    background: ButtonFace;
    color: ButtonText;
  }
}
