/* ════════════════════════════════════════════════════════════════════
   CALAM — shared intake-form styles (EB-2 NIW · EB-1A · O-1A · O-1B)
   Design system matches the CALAM landing page:
     bordó #621a28 · navy #181c3e · gold #ae9760 · beige #ede7de
     Lusitana (serif titles) + DM Sans (body)
   ════════════════════════════════════════════════════════════════════ */
:root {
  --bordo-900: #4a1320; --bordo-800: #621a28; --bordo-700: #7c2434;
  --navy-900: #10132b; --navy-800: #181c3e; --navy-700: #2a2f54;
  --gold-500: #ae9760; --gold-600: #967f4e; --gold-400: #c4ab78; --silver: #c2c0c0;
  --ink: #2b2724; --ink-2: #403a34; --ink-3: #5f594f; --ink-4: #8a847b;
  --bg: #ffffff; --bg-soft: #f6f1ea; --bg-warm: #ede7de;
  --line: #e7e0d6; --line-2: #d6cdbf;
  --shadow-sm: 0 1px 2px rgba(20,17,15,.05), 0 4px 14px -4px rgba(20,17,15,.08);
  --shadow-md: 0 2px 6px rgba(20,17,15,.06), 0 14px 32px -10px rgba(74,19,32,.16);
  --shadow-lg: 0 4px 12px rgba(20,17,15,.08), 0 24px 56px -16px rgba(74,19,32,.24);
  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px;
  --serif: 'Lusitana', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1200px; --nav-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink-2); background: var(--bg-soft); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--bordo-800); text-decoration: none; }
::selection { background: var(--gold-500); color: #fff; }

html[lang="en"] .lang-es { display: none !important; }
html[lang="es"] .lang-en { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .container { padding: 0 40px; } }
h1,h2,h3,h4 { color: var(--ink); font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
.em-gold { color: var(--gold-600); font-style: italic; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); min-height: var(--nav-h); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 12px; }
.nav-right { display: inline-flex; align-items: center; gap: 10px; }
.nav-phone { display: none; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-phone svg { color: var(--gold-600); }
@media (min-width: 980px) { .nav-phone { display: inline-flex; } }
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; }
.lang-opt { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; border: 0; background: transparent; cursor: pointer; font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--ink-3); transition: background .15s, color .15s; }
.lang-opt .flag { font-size: 14px; line-height: 1; }
.lang-opt.active { background: var(--bordo-800); color: #fff; }
.brand-lockup{display:inline-flex;align-items:center;gap:10px}
.brand-logo{height:45px;width:auto;display:block}
@media (max-width:460px){.brand-logo{height:39px}}

/* ── Form shell ── */
.form-wrap { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
@media (min-width: 640px) { .form-wrap { padding: 56px 24px 96px; } }
.form-head { text-align: center; margin-bottom: 28px; }
.form-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 14px; }
.form-eyebrow::before, .form-eyebrow::after { content:''; width: 20px; height: 1px; background: var(--gold-500); }
.form-head h1 { font-size: clamp(26px, 4vw, 36px); }
.form-intro { margin: 16px auto 0; max-width: 600px; color: var(--ink-3); font-size: 15px; line-height: 1.65; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 0; overflow: hidden; }

/* progress */
.progress { padding: 22px 28px 0; }
.progress-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.progress-step { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-600); flex-shrink: 0; }
.progress-name { font-family: var(--serif); font-size: 18px; color: var(--ink); text-align: right; }
@media (max-width: 460px) { .progress { padding: 20px 20px 0; } .progress-name { font-size: 16px; } }
.progress-track { height: 6px; border-radius: 999px; background: var(--bg-warm); overflow: hidden; }
.progress-fill { height: 100%; width: 25%; border-radius: 999px; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); transition: width .35s ease; }

.steps { padding: 24px 20px 26px; }
@media (min-width: 480px) { .steps { padding: 26px 28px 28px; } }
@media (min-width: 640px) { .steps { padding: 30px 34px 34px; } }
.step { display: none; }
.step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .field { margin-bottom: 28px; } }
.label { display: block; font-weight: 600; color: var(--ink); font-size: 14.5px; margin-bottom: 8px; line-height: 1.45; }
.label .req { color: var(--bordo-700); margin-left: 2px; }
.hint { font-weight: 400; color: var(--ink-4); font-size: 13px; }
.input, .textarea, .select { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(174,151,96,.22); }
.textarea { min-height: 96px; resize: vertical; font-family: inherit; }
.grid-3 { display: grid; gap: 10px; }
@media (min-width: 560px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.grid-2 { display: grid; gap: 14px; margin-bottom: 22px; }
.grid-2 .field { margin-bottom: 0; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2 { margin-bottom: 28px; } }

/* conditional follow-up block (revealed by a Yes/No answer) */
.followup { margin-top: -4px; margin-bottom: 22px; padding-left: 16px; border-left: 2px solid var(--bg-warm); }
.followup[hidden] { display: none; }
.followup .field:last-child { margin-bottom: 0; }
@media (max-width: 640px) { .followup { margin-bottom: 28px; } }

/* option pills (radio / checkbox) */
.opts { display: grid; gap: 10px; }
.opts.row { grid-auto-flow: column; grid-auto-columns: 1fr; }
@media (max-width: 520px) { .opts.row { grid-auto-flow: row; } }
.opt { position: relative; display: flex; align-items: center; gap: 11px; padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; font-size: 14.5px; color: var(--ink-2); }
.opt:hover { border-color: var(--gold-500); background: var(--bg-soft); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { flex-shrink: 0; width: 20px; height: 20px; border-radius: 999px; border: 2px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; transition: border-color .15s, background .15s; }
.opt .mark::after { content:''; width: 8px; height: 8px; border-radius: 999px; background: #fff; transform: scale(0); transition: transform .15s; }
.opt:has(input:checked) { border-color: var(--gold-500); background: rgba(174,151,96,.08); box-shadow: inset 0 0 0 1px var(--gold-500); }
.opt:has(input:checked) .mark { border-color: var(--gold-500); background: var(--gold-500); }
.opt:has(input:checked) .mark::after { transform: scale(1); }

.field-error { color: #8a1010; font-size: 13px; margin-top: 8px; display: none; }
.field.invalid .field-error { display: block; }
.field.invalid .input, .field.invalid .textarea, .field.invalid .select { border-color: #d98a8a; }

/* nav buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--radius); cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .08s, background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-500); color: #fff; border-color: var(--gold-500); box-shadow: 0 6px 14px -4px rgba(150,127,78,.5); }
.btn-gold:hover { background: var(--gold-600); border-color: var(--gold-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-4); }
.actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.actions .spacer { flex: 1; }

.fees-note { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--ink-3); font-size: 14.5px; line-height: 1.6; margin-bottom: 18px; }

/* file upload */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 100%; min-height: 132px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 24px 20px; color: var(--ink-3); font-size: 14.5px; background: var(--bg-soft); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover { border-color: var(--gold-500); background: rgba(174,151,96,.06); }
.drop svg { color: var(--gold-600); margin-bottom: 10px; }
.drop .files { margin-top: 10px; font-size: 13px; color: var(--bordo-800); font-weight: 600; word-break: break-word; max-width: 100%; }
.drop .files:empty { display: none; }

.confidential { text-align: center; font-size: 12.5px; color: var(--ink-4); margin: 16px auto 0; max-width: 520px; line-height: 1.5; }

/* success */
.done { text-align: center; padding: 20px 10px; }
.done-badge { width: 64px; height: 64px; border-radius: 999px; background: rgba(174,151,96,.14); color: var(--gold-600); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.done h2 { font-size: 26px; margin-bottom: 12px; }
.done p { color: var(--ink-3); max-width: 480px; margin: 0 auto; line-height: 1.65; }

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