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

:root {
    --bg:       #110a2e;
    --primary:  #2D1B69;
    --accent:   #C9A96E;
    --text:     #ffffff;
    --muted:    rgba(255,255,255,.55);
    --border:   rgba(255,255,255,.12);
    --radius:   12px;
    --speed:    0.45s;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow: hidden;
}

/* ── Progress bar ──────────────────────────────────────────────────────────── */
.progress-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,.1);
    z-index: 100;
}
.progress-fill {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width var(--speed) ease;
}

/* ── Form wrapper ──────────────────────────────────────────────────────────── */
.form-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* ── Steps ─────────────────────────────────────────────────────────────────── */
.step {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(60px);
    transition: opacity var(--speed) ease, transform var(--speed) ease;
}
.step.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}
.step.exit-up {
    opacity: 0;
    transform: translateY(-60px);
    pointer-events: none;
}

.step-inner {
    width: 100%;
    max-width: 640px;
}
.step-inner.center { text-align: center; }

/* ── Brand ─────────────────────────────────────────────────────────────────── */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}
.brand-letter {
    width: 36px; height: 36px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 18px;
    flex-shrink: 0;
}
.brand-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .02em;
}

/* ── Step tag ──────────────────────────────────────────────────────────────── */
.step-tag {
    font-size: 13px;
    color: var(--accent);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
}

/* ── Heading ───────────────────────────────────────────────────────────────── */
h1 {
    font-size: clamp(22px, 4vw, 34px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text);
}
h1 em {
    font-style: normal;
    color: var(--accent);
}

.step-hint {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
    line-height: 1.6;
}

/* ── Inputs ────────────────────────────────────────────────────────────────── */
.form-input {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    color: var(--text);
    font-size: clamp(18px, 3vw, 26px);
    padding: 12px 0;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 8px;
}
.form-input::placeholder { color: rgba(255,255,255,.25); }
.form-input:focus { border-bottom-color: var(--accent); }

.phone-wrap { display: flex; align-items: flex-end; gap: 10px; }
.phone-prefix { font-size: clamp(18px, 3vw, 26px); color: var(--accent); font-weight: 700; padding-bottom: 12px; white-space: nowrap; flex-shrink: 0; }
.phone-input { flex: 1; }

.input-error {
    font-size: 13px;
    color: #f87171;
    margin-bottom: 20px;
    min-height: 20px;
}
.input-error.hidden { visibility: hidden; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn-ok {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    background: var(--accent);
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid var(--accent);
    transition: all 0.2s;
}
.btn-ok:hover { background: #d4b47a; border-color: #d4b47a; }
.btn-ok.outline {
    background: transparent;
    color: var(--accent);
}
.btn-ok.outline:hover { background: rgba(201,169,110,.1); }

.enter-hint {
    font-size: 12px;
    font-weight: 500;
    opacity: .7;
    border: 1px solid currentColor;
    border-radius: 4px;
    padding: 2px 6px;
}

/* ── Choice buttons ────────────────────────────────────────────────────────── */
.choice-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    max-width: 360px;
}
.choice-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255,255,255,.04);
    transition: all 0.2s;
    text-align: left;
}
.choice-btn:hover {
    border-color: var(--accent);
    background: rgba(201,169,110,.1);
    color: var(--accent);
}
.choice-key {
    width: 26px; height: 26px;
    border: 1.5px solid currentColor;
    border-radius: 5px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    opacity: .7;
}

/* ── Success / Reject ──────────────────────────────────────────────────────── */
.success-icon {
    width: 72px; height: 72px;
    background: rgba(201,169,110,.15);
    color: var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    font-weight: 700;
    margin: 0 auto 24px;
    border: 2px solid var(--accent);
}
.reject-icon {
    font-size: 52px;
    margin-bottom: 20px;
}

.address-box {
    margin-top: 20px;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius);
    background: rgba(255,255,255,.06);
    text-align: left;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,.9);
}
.address-box strong {
    color: #fff;
}
.address-box em {
    color: rgba(255,255,255,.65);
    font-style: italic;
}

.calendar-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.cal-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 1 1 auto;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: opacity .15s, transform .1s;
    white-space: nowrap;
}
.cal-btn:active { transform: scale(.97); }
.cal-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.cal-btn.gcal {
    background: #4285F4;
    color: #fff;
}
.cal-btn.gcal:hover { opacity: .88; }
.cal-btn.ical {
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.18);
}
.cal-btn.ical:hover { background: rgba(255,255,255,.18); }

.companion-box {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255,255,255,.04);
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,.85);
}
.companion-link {
    display: inline-block;
    margin-top: 14px;
    background: #25D366;
    color: white;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.companion-link:hover { opacity: .88; }

/* ── Privacy note ──────────────────────────────────────────────────────────── */
.privacy-note {
    position: fixed;
    bottom: 12px;
    left: 0; right: 0;
    text-align: center;
    font-size: 10px;
    color: rgba(255,255,255,.28);
    padding: 0 24px;
    pointer-events: none;
    line-height: 1.4;
    z-index: 10;
}

/* ── Navigation arrows ─────────────────────────────────────────────────────── */
.nav-controls {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 50;
}
.nav-btn {
    width: 38px; height: 38px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    background: rgba(255,255,255,.06);
    color: var(--muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-btn svg { width: 16px; height: 16px; }
.nav-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(201,169,110,.1); }
.nav-btn:disabled { opacity: .25; cursor: default; pointer-events: none; }

/* ── Loader ────────────────────────────────────────────────────────────────── */
.loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17,10,46,.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}
.loader-overlay.hidden { display: none; }
.spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,.15);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .step { padding: 32px 20px; }
    .nav-controls { bottom: 16px; right: 16px; }
    .choice-group { max-width: 100%; }
}
