:root {
    /* Primary Red Palette */
    --primary-color: #dc2626;      /* Strong Red */
    --primary-hover: #b91c1c;      /* Darker Red for hover */
    --accent-color: #ef4444;       /* Lighter Red for accents */
    --bg-color: #fef2f2;           /* Very light red-tinted background */
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-radius: 12px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
}

.header-brand {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon {
    width: 32px;
    height: 32px;
    /* Updated to light red background */
    background: rgba(220, 38, 38, 0.1); 
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-container {
    max-width: 600px;
    margin: 0 auto;
    flex-grow: 1;
    padding: 2rem 1rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.onboarding-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.stepper-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e2e8f0;
    transition: 0.3s;
}

.step-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

.step-dot.completed {
    background-color: var(--accent-color);
}

.form-floating > .form-control, .form-floating > .form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.form-floating > .form-control:focus, .form-floating > .form-select:focus {
    border-color: var(--accent-color);
    /* Focus glow updated to red (rgba 239, 68, 68) */
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1); 
}

.code-input {
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    font-family: monospace;
}

.view-section {
    display: none;
}

.view-section.active {
    display: block;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.app-footer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    background: white;
    margin-top: auto;
}

.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    width: 100%;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: white;
}

.btn-outline-custom {
    border: 1px solid #cbd5e1;
    color: var(--text-muted);
    background: transparent;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
}

.btn-outline-custom:hover {
    background-color: #fff1f2; /* Light red hover */
    border-color: var(--accent-color);
}

.otp-link {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

.otp-link.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.autocomplete-suggestions {
    border: 1px solid #e2e8f0;
    border-top: none;
    background: #fff;
    position: absolute;
    z-index: 999;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
}

.autocomplete-suggestion {
    padding: 10px;
    cursor: pointer;
}

.autocomplete-suggestion:hover {
    background: #fef2f2; /* Light red hover */
}