/* ═══════════════════════════════════════════════════════════════════
   Contact page
   Two-column: reassurance panel (left) + form card (right).
   Reuses tokens + .section-inner / .section-eyebrow / .section-title.
   ═══════════════════════════════════════════════════════════════════ */

.contact-page main { padding-top: calc(var(--nav-h) + 48px); }

.ct-hero { min-height: calc(100vh - var(--nav-h) - 48px); display: flex; align-items: center; }
.ct-hero .section-inner { padding-block: clamp(48px, 7vw, 96px); width: 100%; }

.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

/* ── LEFT column ───────────────────────────────────────── */
.ct-side .section-title { margin-bottom: 16px; max-width: 14ch; }
.ct-side .section-sub { max-width: 44ch; margin-bottom: 36px; }

.ct-promises {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-1);
}
.ct-promises li {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-1);
}
.ct-promise__k {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-data);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.ct-promise__v {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-body);
}

.ct-alt {
  padding-top: 20px;
  border-top: 1px solid var(--line-1);
}
.ct-alt__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 16px;
}
.ct-alt ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ct-alt li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 13px;
  color: var(--text-body);
}
.ct-alt li span { color: var(--text-secondary); }
.ct-alt li a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-purple-2);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.ct-alt li a:hover { color: var(--accent-purple); text-decoration: underline; text-underline-offset: 3px; }

/* ── RIGHT column: form card ───────────────────────────── */
.ct-form-wrap {
  position: relative;
  background:
    radial-gradient(ellipse 90% 120% at 100% 0%, rgba(125,124,217,0.10) 0%, transparent 55%),
    var(--bg-elev-1);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.5vw, 48px);
  overflow: hidden;
}
.ct-form-wrap::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(125,124,217,0.14) inset;
}

.ct-form__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-1);
}
.ct-form__kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 4px;
}
.ct-form__head h2 {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-heading);
  margin: 0;
}
.ct-form__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Fields */
.ct-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ct-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ct-field { display: flex; flex-direction: column; gap: 6px; }
.ct-field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-emphasis);
  letter-spacing: -0.005em;
}
.ct-field__opt {
  font-weight: 400;
  color: var(--text-dim);
  font-size: 11.5px;
  margin-left: 6px;
}
.ct-field input,
.ct-field textarea,
.ct-field select {
  width: 100%;
  background: var(--bg-elev-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-heading);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  transition: border-color 160ms var(--ease-std), background-color 160ms var(--ease-std);
}
.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: var(--text-dim);
}
.ct-field input:hover,
.ct-field textarea:hover,
.ct-field select:hover {
  border-color: var(--line-3);
}
.ct-field input:focus,
.ct-field textarea:focus,
.ct-field select:focus {
  outline: none;
  border-color: var(--accent-purple);
  background: var(--bg-elev-1);
  box-shadow: 0 0 0 3px rgba(125,124,217,0.18);
}
.ct-field input[aria-invalid="true"],
.ct-field textarea[aria-invalid="true"],
.ct-field select[aria-invalid="true"] {
  border-color: #F87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}
.ct-field textarea { resize: vertical; min-height: 110px; }
.ct-field__hint {
  font-size: 12px;
  color: #F87171;
  letter-spacing: -0.005em;
}

/* Custom select wrapper for chevron */
.ct-select {
  position: relative;
}
.ct-select::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--text-secondary);
  border-bottom: 1.5px solid var(--text-secondary);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: border-color 160ms var(--ease-std);
}
.ct-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
.ct-select:hover::after { border-color: var(--text-heading); }

.ct-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-privacy {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}
.ct-privacy a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.ct-privacy a:hover { color: var(--text-heading); }

/* Submit */
.ct-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  justify-content: center;
  position: relative;
}
.ct-submit[aria-busy="true"] .ct-submit__label::after {
  content: '…';
  display: inline-block;
  margin-left: 2px;
  animation: ct-dot 1s steps(3) infinite;
  width: 1.5em;
  text-align: left;
}
.ct-submit[aria-busy="true"] .ct-submit__arrow { opacity: 0; }
.ct-submit[aria-busy="true"] { cursor: progress; pointer-events: none; }
.ct-submit__arrow { transition: transform 180ms var(--ease-std); }
.ct-submit:hover .ct-submit__arrow { transform: translateX(3px); }

@keyframes ct-dot {
  0%   { content: ''; }
  33%  { content: '·'; }
  66%  { content: '··'; }
  100% { content: '···'; }
}

/* Success / error states */
.ct-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px 4px 0;
  animation: ct-fade 300ms var(--ease-std);
}
.ct-state h2 {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--text-heading);
  margin: 0;
}
.ct-state p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0;
}
.ct-state p a { color: var(--accent-purple-2); text-decoration: underline; text-underline-offset: 3px; }
.ct-state__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(94, 234, 212, 0.12);
  border: 1px solid rgba(94, 234, 212, 0.32);
  color: var(--accent-data);
}
.ct-state__icon--error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.32);
  color: #F87171;
}
.ct-state__icon svg { width: 22px; height: 22px; }
.ct-state__actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@keyframes ct-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 980px) {
  .ct-grid { grid-template-columns: 1fr; gap: 40px; }
  .ct-promises li { grid-template-columns: 140px 1fr; gap: 16px; }
}
@media (max-width: 640px) {
  .ct-field-row { grid-template-columns: 1fr; }
  .ct-promises li { grid-template-columns: 1fr; gap: 4px; }
  .ct-form__head { flex-direction: column; align-items: flex-start; }
  .ct-form__meta { align-self: flex-start; }
}
