:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #06b6d4;
    /* Cyan */
    --accent-glow: #06b6d480;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    overflow: hidden;
    /* Hide main scrollbar */
    height: 100vh;
}

/* Scroll Snap Container */
.snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

.snap-section {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
}

/* Glassmorphism Card */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

/* Typography & Neon */
header {
    text-align: center;
    z-index: 1;
}

h1,
h2 {
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.neon-text {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Form Elements */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.row {
    display: flex;
    gap: 16px;
}

.row .input-group {
    flex: 1;
}

label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
}

input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* Toggle Switch */
.toggle-group {
    margin-bottom: 8px;
}

.toggle-container {
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px;
    position: relative;
}

.toggle-container input[type="radio"] {
    display: none;
}

.toggle-container label {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.toggle-container input[type="radio"]:checked+label {
    background: var(--accent-color);
    color: #0f172a;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Button */
.neon-button {
    background: var(--accent-color);
    color: #0f172a;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.neon-button:hover {
    background: #22d3ee;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

.neon-button:active {
    transform: translateY(0);
}

/* Result Display */
#result-display {
    text-align: center;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-top: 10px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.result-hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    height: 0;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden;
}

#result-display p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

#result-display h2 {
    color: var(--accent-color);
    font-size: 2.5rem;
    text-shadow: 0 0 15px var(--accent-glow);
    margin: 0;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
    z-index: 1;
}

.arrow-down {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Info Section */
.formula-box {
    background: rgba(15, 23, 42, 0.8);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px dashed var(--border-color);
}

.math {
    font-family: 'Courier New', monospace;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.info-grid {
    display: grid;
    gap: 16px;
}

.info-item h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.info-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.eligibility-note {
    font-size: 0.85rem;
    color: #fbbf24;
    /* Amber for warning/note */
    background: rgba(251, 191, 36, 0.1);
    padding: 12px;
    border-radius: 8px;
    line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .glass-card {
        padding: 24px;
        border-radius: 0;
        height: 100%;
        max-width: 100%;
        border: none;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    .scroll-hint {
        bottom: 40px;
    }

    .row {
        flex-direction: column;
        gap: 20px;
    }
}

/* Accordion */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.accordion-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.accordion-item.active {
    border-color: var(--accent-color);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.accordion-item.active .accordion-header {
    color: var(--accent-color);
}

.accordion-item.active .accordion-content {
    padding-bottom: 20px;
    max-height: 500px;
    /* Arbitrary large height */
}

.icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.accordion-item.active .icon {
    transform: rotate(180deg);
}

.new-badge {
    background: var(--accent-color);
    color: #0f172a;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}