:root {
    --bg: #0f172a;
    --bg-alt: #020617;
    --panel: #111827;
    --panel-soft: #020617;
    --text-main: #e5e7eb;
    --text-soft: #9ca3af;
    --accent: #4f46e5;
    --accent-soft: rgba(79, 70, 229, 0.15);
    --accent-strong: #6366f1;
    --border-subtle: rgba(148, 163, 184, 0.25);
    --danger: #ef4444;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top left, #1d2538 0, #020617 55%, #000 100%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.app-container {
    display: flex;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.16), transparent 55%), radial-gradient(circle at bottom right, rgba(15, 23, 42, 0.9), #020617 85%);
}

.app-sidebar {
    width: 320px;
    height: 100vh;
    position: fixed;
    border-right: 1px solid var(--border-subtle);
    padding: 56px 40px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.97));
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.brand-mark {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: radial-gradient(circle at top left, rgba(249, 250, 251, 0.24), rgba(37, 99, 235, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.brand-logo {
    width: 94px;
    height: auto;
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-weight: 800;
    letter-spacing: 0.42em;
    font-size: 0.68rem;
    display: block;
    color: var(--text-soft);
    text-transform: uppercase;
}

.brand-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent-strong);
    margin-top: 8px;
}

.step-list {
    list-style: none;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.step-item {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 600;
    opacity: 0.35;
    color: var(--text-soft);
    transition: 0.35s ease;
    position: relative;
    padding-left: 20px;
}

.step-item::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 2px solid rgba(148, 163, 184, 0.7);
    background: transparent;
    box-sizing: border-box;
}

.step-item.active {
    opacity: 1;
    color: var(--accent-strong);
    transform: translateX(4px);
}

.step-item.active::before {
    border-color: transparent;
    background: radial-gradient(circle at center, #f9fafb 0, var(--accent-strong) 70%);
}

.app-main {
    margin-left: 320px;
    flex: 1;
    padding: 72px 8% 80px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

#multiStepForm {
    width: 100%;
    max-width: 880px;
}

.step-indicator {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-soft);
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.step-indicator::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--accent-soft);
}

.page-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.1rem;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 1.25rem;
}

.page-description {
    font-size: 0.95rem;
    color: var(--text-soft);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.agreement-card,
.input-grid,
.input-stack {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.96));
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.85);
    padding: 28px 28px 24px;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 40px;
}

.input-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question-text {
    font-size: 0.93rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.floating-label {
    position: relative;
    margin-bottom: 0;
}

.floating-label input,
.floating-label textarea,
.floating-label select {
    width: 100%;
    padding: 18px 0 12px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.45);
    font-size: 1.05rem;
    font-family: inherit;
    color: var(--text-main);
    transition: border-color 0.25s ease, color 0.25s ease;
}

.floating-label textarea {
    min-height: 96px;
    resize: vertical;
}

.floating-label label {
    position: absolute;
    top: 13px;
    left: 0;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    font-weight: 600;
    opacity: 0.6;
    color: var(--text-soft);
    pointer-events: none;
    transition: 0.25s ease;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:not([value=""]):valid + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
    top: -12px;
    color: var(--accent-strong);
    opacity: 0.95;
}

.floating-label input:focus,
.floating-label textarea:focus,
.floating-label select:focus {
    outline: none;
    border-bottom-color: var(--accent-strong);
}

.custom-radio-group {
    margin: 14px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-soft);
}

.radio-option input {
    margin: 0;
    accent-color: var(--accent-strong);
}

.btn {
    padding: 15px 32px;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
    border-radius: 999px;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-strong), #22c55e);
    color: #f9fafb;
    box-shadow: 0 18px 40px rgba(79, 70, 229, 0.5);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(79, 70, 229, 0.7);
}

.btn-secondary {
    background: transparent;
    color: var(--text-soft);
}

.actions {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.form-page {
    display: none;
}

.form-page.active {
    display: block;
    animation: fadeIn 0.55s ease forwards;
}

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

@media (max-width: 1024px) {
    .app-sidebar {
        display: none;
    }
    .app-main {
        margin-left: 0;
        padding: 36px 18px 40px;
    }
    .agreement-card,
    .input-grid,
    .input-stack {
        padding: 22px 18px 20px;
    }
    .page-title {
        font-size: 2.4rem;
    }
    .input-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
