*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:           #14141A;
    --surface:      #1E1E26;
    --surface2:     #292e37;
    --border:       rgba(255,255,255,.07);
    --border-med:   rgba(255,255,255,.12);
    --accent:       #2DC4A7;
    --accent-dim:   #26A88F;
    --accent-glow:  rgba(45,196,167,0.12);
    --accent-ink:   #06231C;
    --text:         #ECEAE4;
    --muted:        #9B988F;
    --muted-dim:    #5a5a60;
    --radius:       10px;
    --transition:   0.2s ease;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
}

.wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

/* Header */
.site-header {
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header img {
    width: 110px;
}

.site-header a {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color var(--transition);
}

.site-header a:hover { color: var(--text); }

.hero {
    margin-bottom: 48px;
}

.hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero p {
    color: var(--muted);
    font-size: 15px;
    max-width: 480px;
    line-height: 1.7;
}

/* Progress bar */
.progress-wrap {
    margin-bottom: 36px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted-dim);
    margin-bottom: 8px;
}

.progress-track {
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* Question card */
.question-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 28px;
    margin-bottom: 16px;
    animation: fadeUp 0.3s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.q-number {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-dim);
    margin-bottom: 10px;
}

.q-text {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.35;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    text-align: left;
    width: 100%;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

.option:hover {
    border-color: var(--accent-dim);
    background: var(--accent-glow);
}

.option.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.option-dot {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--border-med);
    margin-top: 1px;
    transition: border-color var(--transition), background var(--transition);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.option.selected .option-dot {
    border-color: var(--accent);
    background: var(--accent);
}

.option.selected .option-dot::after {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-ink);
}

/* Zip input */
.zip-wrap {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.zip-wrap label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.zip-wrap input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px 16px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color var(--transition);
}

.zip-wrap input:focus {
    border-color: rgba(45,196,167,0.45);
    box-shadow: 0 0 0 3px rgba(45,196,167,0.08);
}

.zip-wrap input::placeholder { color: var(--muted-dim); }

/* Nav buttons */
.nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    padding: 13px 28px;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    outline: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn-primary:hover  { background: var(--accent-dim); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-ghost {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--border-med); color: var(--text); }

/* Loading state */
.loading {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 36px; height: 36px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: var(--muted); font-size: 14px; }

/* Error */
.error-box {
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.22);
    border-radius: var(--radius);
    padding: 14px 18px;
    color: #f87171;
    font-size: 14px;
    margin-bottom: 24px;
}

/* Results */
.results { animation: fadeUp 0.4s ease both; }

.result-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.result-summary .label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}

.result-summary p { color: var(--muted); font-size: 15px; line-height: 1.7; }

.rec-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin-bottom: 14px;
    transition: border-color var(--transition);
}

.rec-card.top-match { border-color: rgba(45,196,167,0.35); }

.rec-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.rec-rank {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-dim);
    margin-bottom: 4px;
}

.rec-title {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.fit-score { text-align: right; flex-shrink: 0; }

.fit-number {
    font-family: 'Syne', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 2px;
}

.fit-label {
    font-size: 10px;
    color: var(--muted-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.fit-bar {
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 18px;
}

.fit-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
}

.examples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.example-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--muted);
}

.rec-section { margin-bottom: 14px; }

.rec-section-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted-dim);
    margin-bottom: 6px;
}

.rec-section p { font-size: 14px; color: var(--muted); line-height: 1.65; }

.watch-out {
    background: var(--surface2);
    border-left: 2px solid var(--accent-dim);
    border-radius: 0 6px 6px 0;
    padding: 12px 16px;
}

.watch-out p { font-size: 13px; color: var(--muted); line-height: 1.6; }

.restart-wrap { text-align: center; margin-top: 32px; }

.divider { height: 1px; background: var(--border); margin: 20px 0; }

.offices-toggle {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.btn-offices {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 16px;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
    text-align: left;
}

.btn-offices:hover  { border-color: var(--accent-dim); color: var(--text); }
.btn-offices.loading { color: var(--muted-dim); cursor: wait; }
.btn-offices.open   { border-color: var(--accent); color: var(--accent); }

.offices-panel { margin-top: 12px; }

.offices-panel table { width: 100%; border-collapse: collapse; font-size: 13px; }

.offices-panel th {
    text-align: left;
    padding: 7px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--muted-dim);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.offices-panel td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    vertical-align: top;
    line-height: 1.5;
}

.offices-panel td:first-child { color: var(--text); font-weight: 500; }
.offices-panel tr:last-child td { border-bottom: none; }
.offices-error { font-size: 13px; color: #f87171; padding: 10px 0; }

.guide-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.guide-form-inner {
    display: flex;
    gap: 8px;
    align-items: center;
}

.guide-form input[type="email"] {
    flex: 1;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 14px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition);
}

.guide-form input[type="email"]:focus {
    border-color: rgba(45,196,167,0.45);
}

.guide-form input[type="email"]::placeholder { color: var(--muted-dim); }

.btn-guide {
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: var(--accent-ink);
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition);
}

.btn-guide:hover { background: var(--accent-dim); }

/* Footer */
.site-footer {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer p { font-size: 12px; color: var(--muted-dim); }
.site-footer a { color: var(--muted-dim); text-decoration: none; transition: color var(--transition); }
.site-footer a:hover { color: var(--muted); }
.site-footer .footer-brand { color: var(--accent); font-weight: 600; }
.site-footer .footer-brand:hover { color: var(--accent-dim); }

@media (max-width: 480px) {
    .guide-form-inner { flex-direction: column; align-items: stretch; }
    .btn-guide { text-align: center; }
}

/* Guide confirmation page */
.confirm-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.confirm-card {
    max-width: 420px;
    text-align: center;
    padding: 48px 32px;
}

.confirm-icon {
    width: 52px;
    height: 52px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 22px;
    color: var(--accent-ink);
}

.confirm-card h2 { font-size: 22px; font-weight: 400; margin-bottom: 12px; }
.confirm-card p  { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.confirm-card a  { color: var(--accent); font-size: 13px; text-decoration: none; }
.confirm-card a:hover { text-decoration: underline; }

/* Utilities */
.is-hidden        { display: none; }
.fit-percent      { font-size: 14px; color: var(--muted-dim); }
.unanswered-note  { font-size: 13px; color: #f87171; }
.office-link      { color: var(--accent); font-size: 12px; text-decoration: none; }
.confirm-highlight { color: #f0ede8; }
.error-text       { color: #f87171; font-family: sans-serif; margin-bottom: 24px; }
