/* ============================================================
   Contact / "Tell us what you're building" — conversational form.
   Relies on design-system.css for tokens, reset, body base,
   .gradient-text, .eyebrow, .btn(.btn-primary/.btn-ghost).
   This file = only what's genuinely new to the form.
   ============================================================ */

/* Page-specific ambient glow (layered over the design-system body bg) */
body.contact {
  background-image:
    radial-gradient(ellipse at 12% 0%, rgba(139, 92, 246, 0.16), transparent 55%),
    radial-gradient(ellipse at 92% 12%, rgba(6, 182, 212, 0.12), transparent 50%),
    radial-gradient(ellipse at 50% 110%, rgba(234, 88, 12, 0.14), transparent 55%);
  background-attachment: fixed;
}

/* ---- Shell ---- */
.shell {
  max-width: 720px; margin-inline: auto;
  padding: clamp(1.25rem, 0.8rem + 2.2vw, 3rem);
  min-height: 100vh; display: flex; flex-direction: column;
}

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.25rem, 0.9rem + 1.6vw, 2rem); }
.topbar .brand-logo { height: 36px; width: auto; }
.save-note { font-size: 0.8rem; color: var(--text-faint); display: inline-flex; align-items: center; gap: 0.4rem; }
.save-note .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(34,197,94,0.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,0.5);} 70%{box-shadow:0 0 0 7px rgba(34,197,94,0);} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0);} }

/* ---- Progress ---- */
.progress-wrap { margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.progress-segs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.seg { position: relative; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.seg > i { position: absolute; inset: 0; border-radius: 999px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(.4,0,.2,1); }
.seg.done > i { transform: scaleX(1); }
.progress-meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 0.85rem; color: var(--text-muted); letter-spacing: 0.02em; }
.progress-meta .step-label { color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; font-size: 1rem; }
.progress-meta #stepName { font-size: 0.9rem; }

/* ---- Step / stage ---- */
.stage { flex: 1; display: flex; flex-direction: column; }
.step { display: none; animation: rise 0.5s cubic-bezier(.2,.7,.3,1) both; }
.step.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.q-title { font-size: clamp(1.65rem, 1.3rem + 1.8vw, 2.35rem); margin-bottom: 0.55rem; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
.q-sub { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); color: var(--text-soft); max-width: 46ch; margin-bottom: 1.5rem; font-weight: 400; }
.q-sub strong { color: var(--text); font-weight: 600; }

/* ---- Identity cards ---- */
.cards { display: grid; grid-template-columns: 1fr; gap: 0.85rem; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }
.pick {
  position: relative; text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.2rem;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
  display: flex; gap: 0.9rem; align-items: flex-start; font-family: inherit;
}
.pick:hover { transform: translateY(-3px); border-color: rgba(249,115,22,0.4); background: var(--surface-2); }
.pick .ic { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,0.05); border: 1px solid var(--line); transition: all .2s ease; }
.pick .ic svg { width: 21px; height: 21px; stroke: var(--cyan-light); }
.pick > span:nth-child(2) { display: flex; flex-direction: column; padding-right: 1.4rem; }
.pick .label { display: block; font-weight: 700; font-size: 1.02rem; color: var(--text); margin-bottom: 0.2rem; }
.pick .desc { display: block; font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
.pick .tick { position: absolute; top: 0.85rem; right: 0.85rem; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: all .2s ease; }
.pick .tick svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.5); transition: all .2s ease; stroke: #fff; }
.pick.on { border-color: transparent; background: var(--surface-2); box-shadow: 0 0 0 1.5px var(--orange), 0 12px 30px rgba(249,115,22,0.16); }
.pick.on .ic { background: var(--grad-warm); border-color: transparent; }
.pick.on .ic svg { stroke: #fff; }
.pick.on .tick { background: var(--grad-warm); border-color: transparent; }
.pick.on .tick svg { opacity: 1; transform: scale(1); }

/* ---- Chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  cursor: pointer; padding: 0.6rem 1rem; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: transparent; color: var(--text-soft);
  font-size: 0.92rem; font-weight: 500; font-family: inherit;
  transition: all .18s ease; display: inline-flex; align-items: center; gap: 0.4rem;
}
.chip:hover { border-color: var(--orange); color: #fff; }
.chip.on { background: var(--grad-warm); border-color: transparent; color: #fff; font-weight: 600; }
.chip .plus { font-size: 1.05rem; line-height: 1; opacity: 0.7; }
.chip.on .plus { transform: rotate(45deg); }
.chips.single { display: grid; grid-template-columns: 1fr; gap: 0.6rem; }
@media (min-width: 480px) { .chips.single { grid-template-columns: 1fr 1fr; } }
.chips.single .chip { justify-content: flex-start; color: var(--text); font-weight: 600; padding: 0.7rem 1.05rem; gap: 0.65rem; }
.chips.single .chip::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; transition: all .18s ease; }
.chips.single .chip:hover::before { border-color: var(--orange); }
.chips.single .chip.on::before { border-color: #fff; background: radial-gradient(circle, #fff 0 38%, transparent 42%); }

/* ---- Inputs ---- */
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-soft); margin-bottom: 0.5rem; letter-spacing: 0.01em; }
.field label .opt { color: var(--text-faint); font-weight: 400; text-transform: none; letter-spacing: 0; }
.input, .textarea, select.input {
  width: 100%; font-family: inherit; font-size: 1.02rem; color: var(--text);
  background: var(--surface); border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem; transition: border-color .2s ease, background .2s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.input:focus, .textarea:focus, select.input:focus { outline: none; border-color: var(--orange); background: var(--surface-2); }
.textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field-grid { display: grid; gap: 1.15rem; }
@media (min-width: 560px) { .field-grid.two { grid-template-columns: 1fr 1fr; } }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
select.input option { background: var(--bg-soft); color: var(--text); }

/* ---- Nav row (uses design-system .btn; these add disabled + arrow) ---- */
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.nav-row .btn { padding: 0.8rem 1.6rem; min-height: 48px; }
.btn-primary { box-shadow: 0 10px 30px rgba(249,115,22,0.25); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .arrow { transition: transform .2s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }
.hint { font-size: 0.8rem; color: var(--text-faint); text-align: center; }

/* ---- Success ---- */
.success { display: none; text-align: center; padding: 2rem 0; animation: rise 0.6s cubic-bezier(.2,.7,.3,1) both; }
.success.active { display: block; }
.success .badge { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 1.6rem; background: var(--grad-warm); display: grid; place-items: center; box-shadow: 0 18px 50px rgba(249,115,22,0.35); }
.success .badge svg { width: 40px; height: 40px; stroke: #fff; }
.success h2 { font-size: clamp(1.8rem, 1.4rem + 2vw, 2.6rem); margin-bottom: 0.75rem; line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
.success p { color: var(--text-soft); max-width: 42ch; margin: 0 auto 1.8rem; }
.recap { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; max-width: 480px; margin: 0 auto 1.8rem; }
.recap h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--text-muted); margin-bottom: 0.8rem; font-weight: 700; }
.recap .line { display: flex; gap: 0.6rem; font-size: 0.92rem; color: var(--text-soft); margin-bottom: 0.5rem; }
.recap .line:last-child { margin-bottom: 0; }
.recap .line b { color: var(--cyan-light); font-weight: 600; flex: none; }
.reply-note { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.6rem !important; }
.footer-note { text-align: center; font-size: 0.78rem; color: var(--text-faint); margin-top: 2.5rem; }
