/* Registration Page Specific Styles */
.registration-main {
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.page-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px var(--glow-color-strong));
}

.registration-form {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    padding: 3rem;
    /* The glass-effect class should be applied in the HTML */
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1rem;
    /* Ensure readability */
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-purple);
    background: rgba(0, 0, 0, 0.3);
    outline: none;
    box-shadow: 0 0 10px var(--glow-color);
}

/* Date picker styling */
.form-group input[type="date"] {
    color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(1.5) drop-shadow(0 0 2px var(--primary-purple));
    cursor: pointer;
}

/* Custom DOB picker (registration.html) */
.dob-field {
    position: relative;
}

.dob-input {
    padding-right: 3rem;
}

.dob-popover {
    position: absolute;
    inset: auto 0 auto 0;
    top: calc(100% + 10px);
    z-index: 50;
    display: none;
}

.dob-popover.is-open {
    display: block;
}

.dob-cal {
    width: min(360px, 100%);
    margin-left: auto;
    margin-right: auto;
    border-radius: 28px;
    background:
        radial-gradient(120% 120% at 20% 0%,
            rgba(0, 198, 255, 0.08) 0%,
            rgba(112, 0, 223, 0.08) 35%,
            rgba(0, 0, 0, 0) 70%),
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.04) 0%,
            rgba(255, 255, 255, 0.01) 30%,
            rgba(0, 0, 0, 0) 100%),
        rgba(8, 8, 12, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 40px rgba(112, 0, 223, 0.1),
        0 0 30px rgba(0, 198, 255, 0.05);
    overflow: hidden;
    backdrop-filter: blur(40px) saturate(1.2);
    -webkit-backdrop-filter: blur(40px) saturate(1.2);
    transform-origin: 50% 10%;
}

.dob-popover.is-open .dob-cal {
    animation: dob-pop-in 340ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.dob-popover.is-closing .dob-cal {
    animation: dob-pop-out 220ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes dob-pop-in {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.92);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes dob-pop-out {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.94);
        filter: blur(8px);
    }
}

.dob-cal__header {
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    align-items: center;
    padding: 14px 14px 8px;
}

.dob-cal__title {
    text-align: center;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
}

.dob-cal__title-btn {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px 10px;
    border-radius: 14px;
    transition: background 140ms ease, transform 140ms ease;
}

.dob-cal__title-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.dob-cal__switcher {
    display: none;
    padding: 12px 16px 6px;
}

.dob-cal__switcher.is-open {
    display: block;
}

.dob-switcher__top {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* Hide grid/headers when switching years/months */
.dob-cal.is-switching .dob-cal__dow,
.dob-cal.is-switching .dob-cal__grid,
.dob-cal.is-switching .dob-cal__select {
    display: none;
}

.dob-switcher__label {
    grid-column: 2;
    text-align: center;
    font-weight: 800;
    color: var(--accent-secondary);
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.dob-switcher__back {
    grid-column: 1;
    justify-self: start;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dob-switcher__back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.dob-switcher-select {
    grid-column: 3;
    justify-self: end;
    border: 1px solid rgba(0, 198, 255, 0.3);
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.1), rgba(112, 0, 223, 0.1));
    color: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.1);
}

.dob-switcher-select:hover {
    background: linear-gradient(135deg, rgba(0, 198, 255, 0.2), rgba(112, 0, 223, 0.2));
    border-color: rgba(0, 198, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.2);
}

.dob-switcher-select:active {
    transform: translateY(0) scale(0.95);
}
    cursor: pointer;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.dob-switcher__back:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.dob-switcher__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding-bottom: 10px;
}

.dob-year-roller {
    display: none;
    height: 240px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
    touch-action: none;
    mask-image: linear-gradient(to bottom, 
        transparent 0%, 
        black 20%, 
        black 80%, 
        transparent 100%
    );
}

.dob-year-roller.is-open {
    display: block;
}

.dob-year-roller__list {
    height: 100%;
    position: relative;
    /* overflow: hidden; -- REMOVED: Clipping is handled by parent .dob-year-roller. Internal overflow was hiding the long list. */
    touch-action: none;
    transform: translateZ(0);
    will-change: transform;
    perspective: 1000px;
}

.dob-year {
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.02em;
    user-select: none;
    cursor: default;
    transform-origin: 50% 50%;
    will-change: transform, opacity, color;
}

.dob-year.is-active {
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 198, 255, 1);
    transform: scale(1.2);
    font-weight: 900;
    opacity: 1;
}

.dob-year-roller__focus {
    pointer-events: none;
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 48px;
    border-radius: 14px;
    background:
        linear-gradient(90deg, 
            rgba(0, 198, 255, 0.08) 0%, 
            rgba(112, 0, 223, 0.12) 50%, 
            rgba(0, 198, 255, 0.08) 100%),
        rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 0 30px rgba(0, 198, 255, 0.15),
        inset 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Add a line top and bottom of focus area */
.dob-year-roller__focus::before,
.dob-year-roller__focus::after {
    content: '';
    position: absolute;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}
.dob-year-roller__focus::before { top: 0; }
.dob-year-roller__focus::after { bottom: 0; }

.dob-chip {
    border: none;
    border-radius: 16px;
    padding: 12px 10px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
    cursor: pointer;
    transition: transform 120ms ease, background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.dob-chip:hover {
    background: rgba(0, 198, 255, 0.12);
    transform: translateY(-1px);
}

.dob-chip.is-active {
    background:
        radial-gradient(140% 140% at 30% 0%,
            rgba(255, 255, 255, 0.26) 0%,
            rgba(255, 255, 255, 0.00) 55%),
        linear-gradient(135deg,
            color-mix(in srgb, var(--accent-primary) 92%, white 8%) 0%,
            color-mix(in srgb, var(--accent-secondary) 55%, var(--accent-primary) 45%) 100%);
    color: #fff;
    box-shadow:
        0 14px 30px rgba(112, 0, 223, 0.28),
        0 10px 22px rgba(0, 198, 255, 0.15);
}

.dob-cal__nav {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    line-height: 1;
    transition: transform 140ms ease, background 140ms ease;
}

.dob-cal__nav:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

.dob-cal__dow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 6px 14px 8px;
    font-weight: 800;
    color: color-mix(in srgb, var(--accent-secondary) 92%, white 8%);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.82rem;
    text-align: center;
}

.dob-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 8px 14px 12px;
}

.dob-day {
    height: 38px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    transition: transform 120ms ease, background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.dob-day:hover {
    background: rgba(0, 198, 255, 0.12);
    transform: translateY(-1px);
}

.dob-day.is-muted {
    opacity: 0.42;
}

.dob-day.is-selected {
    background:
        radial-gradient(140% 140% at 30% 0%,
            rgba(255, 255, 255, 0.30) 0%,
            rgba(255, 255, 255, 0.00) 55%),
        linear-gradient(135deg,
            color-mix(in srgb, var(--accent-primary) 92%, white 8%) 0%,
            color-mix(in srgb, var(--accent-secondary) 55%, var(--accent-primary) 45%) 100%);
    color: #fff;
    box-shadow:
        0 14px 30px rgba(112, 0, 223, 0.28),
        0 10px 22px rgba(0, 198, 255, 0.15);
}

.dob-day:focus-visible,
.dob-cal__nav:focus-visible,
.dob-cal__select:focus-visible {
    outline: 3px solid rgba(0, 198, 255, 0.35);
    outline-offset: 2px;
}

.dob-cal__select {
    display: block;
    width: calc(100% - 24px);
    margin: 4px 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 16px;
    background:
        linear-gradient(135deg,
            var(--accent-primary) 0%,
            var(--accent-secondary) 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(112, 0, 223, 0.3);
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.dob-cal__select:hover {
    filter: brightness(1.1) contrast(1.1);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(112, 0, 223, 0.4);
}

.dob-cal__select:active {
    transform: translateY(0) scale(0.98);
}

@media (max-width: 520px) {
    .dob-cal__title {
        font-size: 1.25rem;
    }

    .dob-cal__grid {
        gap: 8px;
    }

    .dob-day {
        height: 40px;
    }
}


.membership-options-title {
    font-weight: bold;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.radio-group {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.radio-group input {
    width: auto;
    margin-right: 10px;
}

.radio-group label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Use the consistent button styles */
.btn-primary {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3) 0%, rgba(75, 0, 130, 0.3) 100%);
    color: #fff;
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.5) 0%, rgba(75, 0, 130, 0.5) 100%);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.3), 0 0 30px rgba(138, 43, 226, 0.2);
    border-color: rgba(138, 43, 226, 0.7);
}

#submission-status {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 1.1rem;
}

/* Fee Structure Poster Styles */
.fee-poster {
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem;
    text-align: center;
    border-radius: 20px;
    /* Applying the glass effect */
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--glow-color);
}

.fee-poster-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, var(--primary-purple), #7AE0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 3px;
    filter: drop-shadow(0 2px 15px var(--glow-color-strong));
}

.fee-poster-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

.fee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.fee-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    transition: all var(--transition-speed) ease;
}

.fee-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 8px 25px var(--glow-color);
    border-color: var(--primary-purple);
}

.fee-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 1rem;
}

.fee-card-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}

.fee-card-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.fee-card.best-value {
    background: linear-gradient(135deg, var(--primary-purple), var(--dark-purple));
    border-color: var(--primary-purple);
    position: relative;
    overflow: hidden;
}

.best-value-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: #ffc107;
    color: #000;
    padding: 5px 30px;
    font-weight: 700;
    transform: rotate(45deg);
    font-size: 0.9rem;
}



.summary-section {
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    margin-top: 2rem;
}

.summary-title {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.summary-list li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .registration-form {
        padding: 2rem;
    }

    .fee-poster {
        padding: 2rem;
    }

    .fee-poster-title {
        font-size: 2rem;
    }

    .fee-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .registration-form {
        padding: 1.5rem;
    }

    .fee-poster {
        padding: 1.5rem;
    }

    .fee-poster-title {
        font-size: 1.8rem;
    }
}