/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    --accent: #c9a84c;
    --accent-glow: rgba(201, 168, 76, 0.3);
    --error: #ff4d6a;
    --success: #00e676;
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 420px;
}

/* ===== Header ===== */
.logo-header {
    text-align: center;
    margin-bottom: 32px;
}

.logo {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -2px;
}

.accent {
    color: var(--accent);
}

.tagline {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    margin-top: 4px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ===== Steps ===== */
.step {
    display: none;
    animation: fadeSlideIn 0.4s ease;
}

.step.active {
    display: block;
}

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

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

/* ===== Form Inputs ===== */
.form-group {
    margin-bottom: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"] {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.2);
}

.date-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.date-selects {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.date-selects select {
    width: 100%;
    padding: 14px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.4)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.date-selects select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.date-selects select.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(255, 77, 106, 0.2);
}

.date-selects select option {
    background: #1a1a2e;
    color: var(--text-primary);
}

/* ===== Source Tiles ===== */
.source-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.source-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.source-tile:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.source-tile.selected {
    background: rgba(201, 168, 76, 0.15);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

.tile-icon {
    font-size: 1.6rem;
}

.tile-label {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* ===== Consent ===== */
.consent-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    background: var(--bg-card);
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input:checked + .checkmark {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox-label input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 11px;
    border: solid var(--bg-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.link {
    color: var(--accent);
    text-decoration: none;
}

/* ===== Buttons ===== */
.btn {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.btn-next,
.btn-submit {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-next:hover,
.btn-submit:hover {
    box-shadow: 0 4px 24px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-next:active,
.btn-submit:active {
    transform: translateY(0);
}

.btn-back {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
}

.btn-back:hover {
    background: var(--bg-card);
}

.btn-group {
    display: flex;
    gap: 12px;
}

.btn-group .btn {
    flex: 1;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== Step Dots ===== */
.step-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-glass);
    transition: all 0.3s;
}

.dot.active {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* ===== Success ===== */
.success-container {
    text-align: center;
    padding: 40px 0;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 230, 118, 0.15);
    border: 2px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.2rem;
    color: var(--success);
    animation: checkPulse 1s ease infinite alternate;
}

@keyframes checkPulse {
    to {
        box-shadow: 0 0 30px rgba(0, 230, 118, 0.3);
    }
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.success-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Error Toast ===== */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--error);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 90%;
    text-align: center;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
