/* tokens moved to tokens.css — do not add :root here */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: var(--font);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

.intro {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 7vw, 96px) 24px clamp(32px, 4vw, 48px);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% -15%, rgba(242, 101, 34, 0.14), transparent 58%),
    linear-gradient(rgba(11, 45, 83, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 45, 83, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 48px 48px, 48px 48px, auto;
}

.intro .badge {
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 800;
}

.eyebrow.accent {
  color: var(--navy-light);
}

.contact-copy .eyebrow.accent {
  color: var(--orange-light);
}

.intro h1 {
  margin: 0;
  font-family: var(--font-head, "Plus Jakarta Sans", var(--font));
  font-size: clamp(2.6rem, 5.5vw, 4.75rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.intro h1 .t-navy {
  color: var(--navy);
}

.intro h1 .t-orange {
  color: var(--orange);
}

[data-theme="dark"] .intro h1 .t-navy {
  color: var(--ink-dark);
}

.intro > p:last-child {
  margin: 18px auto 0;
  max-width: 580px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.6;
}

.contact-wrap {
  padding: 20px 24px 84px;
}

.contact-card {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--glass-border-subtle);
  box-shadow: var(--shadow-lg);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 0.92fr 1.45fr;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.contact-card.is-hidden {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
}

.contact-copy {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  background:
    radial-gradient(circle at 100% 100%, rgba(242, 101, 34, 0.24), transparent 40%),
    radial-gradient(60% 80% at 100% 0%, var(--navy-light), transparent 70%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white);
  padding: 46px 38px;
}

.contact-copy::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -88px;
  bottom: -110px;
  width: 250px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow:
    0 0 0 24px rgba(255, 255, 255, 0.025),
    0 0 0 48px rgba(255, 255, 255, 0.02);
  pointer-events: none;
}

.contact-copy h2 {
  margin: 0 0 16px;
  color: var(--white);
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.contact-copy p {
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
}

.contact-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 600;
}

.contact-points li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(242, 101, 34, 0.18);
  flex-shrink: 0;
}

.contact-direct {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 14px;
}

.contact-direct-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-direct-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.contact-direct-value {
  color: var(--white);
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
}

a.contact-direct-value:hover {
  color: var(--orange-light);
}

.contact-direct-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.contact-pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.contact-pill-link:hover {
  background: rgba(242, 101, 34, 0.24);
  border-color: var(--orange-light);
}

.contact-form {
  padding: 46px 40px;
  background: var(--bg-card);
  display: grid;
  gap: 22px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.contact-form input:not([type="radio"]),
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink-dark);
  font: inherit;
  font-weight: 500;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-form input:not([type="radio"]):focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.14);
  background: var(--bg-card);
}

.contact-form textarea {
  resize: vertical;
  min-height: 136px;
}

.project-type-group {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.project-type-group legend {
  padding: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.project-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-option {
  position: relative;
  display: inline-flex !important;
  cursor: pointer;
}

.chip-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.chip-option span {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch-min);
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.18s var(--ease);
}

.chip-option:hover span {
  border-color: var(--navy-light);
  color: var(--ink);
}

.chip-option input[type="radio"]:focus-visible + span {
  outline: 3px solid rgba(242, 101, 34, 0.35);
  outline-offset: 2px;
}

.chip-option input[type="radio"]:checked + span {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-deep);
}

[data-theme="dark"] .chip-option input[type="radio"]:checked + span {
  background: rgba(242, 101, 34, 0.18);
  color: var(--orange-light);
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: 4px;
}

.contact-submit-btn {
  border: 0;
  cursor: pointer;
}

.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.helper-text {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.consultant-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-warm);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.onboarding-link {
  color: var(--orange-deep);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease;
}

[data-theme="dark"] .onboarding-link {
  color: var(--orange-light);
}

.onboarding-link::after {
  content: "→";
  font-size: 1.05em;
  transition: transform 0.2s ease;
}

.onboarding-link:hover {
  color: var(--orange);
}

.onboarding-link:hover::after {
  transform: translateX(3px);
}

.form-status {
  min-height: 22px;
  margin: 0;
  font-weight: 600;
  font-size: 0.94rem;
}

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

.form-status.success {
  color: var(--orange-deep);
}

[data-theme="dark"] .form-status.success {
  color: var(--orange-light);
}

.form-status.error {
  color: var(--error);
}

.send-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 300;
}

.send-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.send-scene {
  position: relative;
  width: min(78vw, 760px);
  height: min(58vw, 430px);
  perspective: 1200px;
  transform-style: preserve-3d;
}

.flight-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.flight-trail {
  fill: none;
  stroke: rgba(11, 45, 83, 0.7);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 16 18;
  stroke-dashoffset: 100;
}

.plane-group {
  position: absolute;
  left: 0;
  bottom: 0;
  width: clamp(180px, 24vw, 300px);
  transform-style: preserve-3d;
  opacity: 0;
}

.paper-plane {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 18px rgba(11, 45, 83, 0.12));
}

.plane-shadow {
  position: absolute;
  left: 12%;
  bottom: -10%;
  width: 150px;
  height: 24px;
  border-radius: 50%;
  background: rgba(11, 45, 83, 0.18);
  filter: blur(7px);
  transform: rotate(-8deg);
  opacity: 0;
}

.checkmark-group {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--orange-soft);
  box-shadow:
    0 0 0 12px rgba(242, 101, 34, 0.12),
    0 20px 40px rgba(242, 101, 34, 0.18),
    0 8px 16px rgba(11, 45, 83, 0.12);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.5);
}

.checkmark-group svg {
  width: 70px;
  height: 70px;
  stroke: var(--orange);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 2px 4px rgba(242, 101, 34, 0.2));
}

@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: 1fr;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .intro {
    padding: 56px 20px 28px;
  }

  .contact-wrap {
    padding: 12px 16px 64px;
  }

  .contact-copy,
  .contact-form {
    padding: 28px 20px;
  }

  .contact-form input:not([type="radio"]),
  .contact-form select,
  .contact-form textarea {
    min-height: var(--touch-min, 44px);
    padding: 12px 14px;
    font-size: 16px;
  }

  .contact-submit-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
