:root {
    --frame-visible: clamp(280px, 24vw, 420px);
    --frame-aspect: 0.48;
    /* width / height of frame artwork */
    --frame-gutter: clamp(1.75rem, 4vw, 3.5rem);
    --content-max-width: 980px;
    --content-padding: clamp(2rem, 5vw, 3.5rem);
    --content-bg: rgba(4, 12, 29, 0.68);
    --text-color: #f5f7ff;
    --heading-color: #98C8EB;
    --form-color: #EBD9B1;
    --accent-gradient: linear-gradient(180deg, #5a9de5 0%, #4a8fd4 50%, #3a7fc3 100%);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body.theme {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #0a1430;
    overflow-x: hidden;
    line-height: 1.6;
    padding: 0;
}

.theme-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.theme-layer--background {
    background-color: #0b1d3e;
    background-image: url('../img/bckg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.theme-layer--frame {
    top: 0;
    bottom: 0;
    width: clamp(260px, calc(100vh * var(--frame-aspect)), 380px);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.theme-layer--frame.theme-layer--left {
    left: 0;
    right: auto;
    background-image: url('../img/frame_left.png');
    background-position: left top;
}

.theme-layer--frame.theme-layer--right {
    right: 0;
    left: auto;
    background-image: url('../img/frame_right.png');
    background-position: right top;
}

.theme-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(2.5rem, 6vw, 0rem);
    padding: clamp(3rem, 7vw, 5rem) calc(clamp(260px, calc(100vh * var(--frame-aspect)), 200px) + var(--frame-gutter));
}

/* Header & navigation layout shared across legacy pages */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

header img {
    width: 300px;
    height: auto;
}

nav {
    display: flex;
    margin-right: 0;
    overflow: hidden;
}

nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
    align-content: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    background-color: #fff;
    height: 3px;
    width: 25px;
    margin: 5px 0;
    display: block;
    transition: all 0.3s ease;
}

/* Mobile styles for legacy pages */
@media (max-width: 768px) {
    header {
        padding: 10px 15px;
        justify-content: space-between;
    }

    header img {
        width: 240px;
    }

    nav {
        display: none;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.85);
        position: fixed;
        top: 72px;
        right: 0;
        width: 75%;
        padding: 20px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    }

    nav.active {
        display: flex;
    }

    nav a {
        margin: 20px 0 0;
        font-size: 20px;
        margin-left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger span {
        margin: 4px;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(10px, 6px);
        width: 35px;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(10px, -6px);
        width: 35px;
    }
}

p {
    margin: 0;
}

.content-card {
    width: min(var(--content-max-width), 100%);
    background: var(--content-bg);
    backdrop-filter: blur(6px);
    border-radius: 1.75rem;
    padding: var(--content-padding);
    box-shadow: 0 24px 60px rgba(3, 6, 18, 0.55);
}

.content-card h1,
.content-card h2 {
    color: var(--heading-color);
    font-weight: 700;
    font-style: Bold;
    font-size: 40px;
    line-height: 104%;
    letter-spacing: 0%;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0px 4.55px 9.56px #000000A8;
}

.content-card p {
    margin: 1rem 0;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #101010;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-row a:hover,
.button-row a:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

footer {
    opacity: 0.75;
    text-align: center;
    padding-bottom: 2rem;
}

@media (max-width: 1080px) {
    .theme-layer--frame {
        width: clamp(220px, calc(100vh * var(--frame-aspect)), 360px);
    }

    .theme-shell {
        padding: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 6vw, 3.5rem);
    }
}

@media (max-width: 768px) {
    body.theme {
        background-attachment: scroll;
    }

    .theme-layer--frame {
        display: none;
    }

    .theme-shell {
        padding: clamp(2rem, 6vw, 3rem) clamp(1.5rem, 5vw, 2.25rem);
    }

    .content-card {
        border-radius: 1.25rem;
        box-shadow: 0 16px 40px rgba(3, 6, 18, 0.45);
    }
}

/*
 * Component palette adapted from legacy style.css, adjusted for the new theme
 */

.banner {
    margin: clamp(6rem, 12vh, 9rem) auto 3rem;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(2rem, 5vw, 3rem) clamp(2.5rem, 6vw, 4rem);
    width: min(980px, 100%);
    text-align: center;
    color: var(--heading-color);
    background: rgba(4, 12, 29, 0.72);
    border-radius: 1.75rem;
    box-shadow: 0 18px 50px rgba(3, 6, 18, 0.45);
}

.banner h1,
h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    margin: 0 0 0.75rem;
    color: var(--heading-color);
}

.banner p {
    margin: 0.5rem 0;
    color: rgba(245, 247, 255, 0.85);
    font-size: clamp(1.05rem, 2.4vw, 1.45rem);
}

.lg-logo {
    width: clamp(200px, 32vw, 218px);
    margin: 0 auto clamp(1.5rem, 4vw, 2.5rem);
    display: block;
}

.container,
.panel {
    background: rgba(4, 12, 29, 0.72);
    border-radius: 1.5rem;
    padding: clamp(1.75rem, 4.5vw, 2.75rem);
    width: min(980px, 100%);
    margin: clamp(2rem, 5vw, 3rem) auto;
    box-shadow: 0 18px 50px rgba(3, 6, 18, 0.45);
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--heading-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid rgba(231, 206, 158, 0.65);
    padding-bottom: 0.75rem;
}


.premium-button {
    position: relative;
    display: inline-block;
    padding: 20px 60px;
    background: linear-gradient(180deg, #5a9de5 0%, #4a8fd4 50%, #3a7fc3 100%);
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 2px;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 40px auto;
    border: 3px solid;
    border-image: linear-gradient(135deg, #e6d19a, #d4af37, #b8941f) 1;


    /* Main shadow - creating the lifted effect */
    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.4),
        0 20px 40px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


/* Left diamond decoration */
.premium-button .diamond-left {
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #2a5f94 0%, #1e4670 100%);
    border: 3px solid;
    border-image: linear-gradient(135deg, #e6d19a, #d4af37, #b8941f) 1;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Right diamond decoration */
.premium-button .diamond-right {
    position: absolute;
    right: -14px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, #2a5f94 0%, #1e4670 100%);
    border: 3px solid;
    border-image: linear-gradient(135deg, #e6d19a, #d4af37, #b8941f) 1;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Hover effect */
.premium-button:hover {
    background: linear-gradient(180deg, #6aadf5 0%, #5a9de5 50%, #4a8fd4 100%);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.5),
        0 25px 50px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Active/pressed state */
.premium-button:active {
    transform: translateY(2px);
    box-shadow:
        0 6px 15px rgba(0, 0, 0, 0.4),
        0 12px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.subscribe-btn {
    margin-left: auto;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #101010;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.subscribe-btn:hover,
.subscribe-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    color: #0d0d0d;
}

.schedule {
    padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
}

.schedule-grid {
    display: flex;
    gap: clamp(1rem, 3vw, 1.75rem);
    flex-direction: column;
}

.schedule-day,
.radio-item {
    background: rgba(8, 18, 40, 0.9);
    border: 1px solid rgba(231, 206, 158, 0.2);
    border-radius: 1.1rem;
    padding: clamp(1.25rem, 3.5vw, 1.75rem);
    box-shadow: 0 12px 28px rgba(3, 6, 18, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
}
.schedule-day {
    flex-direction: column;
}

.schedule-day:hover,
.radio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(3, 6, 18, 0.45);
}

.schedule-day h3 {
    color: var(--heading-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(231, 206, 158, 0.4);
    padding-bottom: 0.5rem;
}

.schedule-day p {
    margin: 0.35rem 0;
    font-size: 1rem;
    color: rgba(245, 247, 255, 0.75);
}

.faq-item {
    border-bottom: 1px solid rgba(231, 206, 158, 0.2);
    padding: 1rem 0;
    position: relative;
    cursor: pointer;
}

.faq-item h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--heading-color);
}

.faq-item p {
    margin: 0.65rem 0 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(245, 247, 255, 0.7);
    display: none;
}

.faq-item.active p {
    display: block;
}

.faq-item::after {
    content: '\002B';
    position: absolute;
    right: 0;
    top: 0.35rem;
    font-size: 1.1rem;
    color: var(--heading-color);
    transition: transform 0.2s ease;
}

.faq-item.active::after {
    content: '\2212';
    transform: rotate(180deg);
}

.contact {
    font-size: 1rem;
    color: rgba(245, 247, 255, 0.75);
}

.contact a,
.cutoff-message a,
footer a {
    color: var(--heading-color);
    text-decoration: none;
}

.cutoff-message {
    color: rgba(245, 247, 255, 0.85);
    font-size: 1.15rem;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.75rem;
    border-radius: 999px;
    background: var(--accent-gradient);
    color: #101010;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.main {
    font-size: 1.35rem;
    padding: 1rem 2.25rem;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(3, 6, 18, 0.45);
    color: #0d0d0d;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 6, 18, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.overlay.active {
    display: flex;
}

.popup {
    background: rgba(4, 12, 29, 0.95);
    border-radius: 1.1rem;
    padding: clamp(1.75rem, 4.5vw, 2.5rem);
    width: min(500px, 90%);
    text-align: center;
    color: var(--text-color);
    box-shadow: 0 20px 48px rgba(3, 6, 18, 0.65);
}

.popup h2 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    margin: 0 0 0.75rem;
    color: var(--heading-color);
}

.popup p {
    font-size: 1rem;
    margin: 0.5rem 0 1.25rem;
    color: rgba(245, 247, 255, 0.75);
}

.popup .btn {
    margin: 0.5rem;
}

.popup .btn.no {
    background: transparent;
    border: 2px solid rgba(231, 206, 158, 0.65);
    color: var(--heading-color);
}

.disclaimer {
    width: min(780px, 90%);
    margin: 1.5rem auto;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: rgba(8, 18, 40, 0.8);
    border-radius: 1.1rem;
    color: var(--heading-color);
}

form {
    display: grid;
    gap: clamp(1rem, 3vw, 1.5rem);
}

.three-per-row,
.two-per-row {
    display: grid;
    gap: clamp(1rem, 3vw, 1.25rem);
}

.three-per-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-per-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

form label {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--heading-color);
    margin-bottom: 0.35rem;
}

.disclaimer-label {
    font-size: 0.85rem;
    color: rgba(245, 247, 255, 0.55);
    margin-bottom: 0.5rem;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(7, 15, 32, 0.85);
    color: var(--form-color);
    font-size: 24px;
    font-weight: 500;
    line-height: 169%;
    border: 3px solid;
    border-image: linear-gradient(135deg, #e6d19a, #d4af37, #b8941f) 1;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: 2px solid var(--text-color);
    outline-offset: 1px;
}

hr.form-separator {
    border: none;
    height: 1px;
    background-color: rgba(231, 206, 158, 0.45);
    margin: 1.5rem 0;
}

form input[type="radio"],
form input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(230, 209, 154, 0.8);
    background: rgba(7, 15, 32, 0.95);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    transition: all 0.3s ease;
    margin-right: 0.6rem;
    box-shadow: 0 0 0 1px rgba(8, 18, 40, 0.6);
    cursor: pointer;
}

form input[type="checkbox"] {
    border-radius: 6px;
}

/* Radio button inner circle */
form input[type="radio"]::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.25s ease-in-out;
    background: linear-gradient(135deg, #ffe8aa 0%, #e6d19a 50%, #d9b24c 100%);
    box-shadow: 
        0 0 8px rgba(255, 232, 170, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    margin: -6px
}

/* Checkbox checkmark */
form input[type="checkbox"]::before {
    content: "✓";
    font-size: 16px;
    font-weight: bold;
    color: #ffe8aa;
    transform: scale(0);
    transition: transform 0.25s ease-in-out;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -19px;
}

/* Alternative checkbox with filled background */
form input[type="checkbox"].filled::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: linear-gradient(135deg, #ffe8aa 0%, #e6d19a 50%, #d9b24c 100%);
    box-shadow: 
        0 0 6px rgba(255, 232, 170, 0.6),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Checked states */
form input[type="radio"]:checked::before,
form input[type="checkbox"]:checked::before {
    transform: scale(2);
}

/* Enhanced checked state styling */
form input[type="radio"]:checked,
form input[type="checkbox"]:checked {
    border-color: rgba(255, 232, 170, 1);
    background: rgba(7, 15, 32, 1);
    box-shadow: 
        0 0 0 1px rgba(8, 18, 40, 0.8),
        0 0 12px rgba(255, 232, 170, 0.4);
}

/* Focus and hover states */
form input[type="radio"]:focus-visible,
form input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(255, 232, 170, 0.8);
    outline-offset: 2px;
}

form input[type="radio"]:hover,
form input[type="checkbox"]:hover {
    border-color: rgba(255, 232, 170, 0.9);
    box-shadow: 
        0 0 0 1px rgba(8, 18, 40, 0.6),
        0 0 8px rgba(255, 232, 170, 0.3);
}

/* Disabled states */
form input[type="radio"]:disabled,
form input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(230, 209, 154, 0.4);
}

form input[type="radio"]:disabled::before,
form input[type="checkbox"]:disabled::before {
    background: rgba(230, 209, 154, 0.4);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-start;
}

.checkbox-group {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    align-items: flex-start;
}

.radio-group label:not(.radio-group-label),
.checkbox-group label:not(.radio-group-label) {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.radio-group.vertical {
    flex-direction: column;
}

.radio-group.vertical label {
    align-items: flex-start;
}

.radio-group:not(.vertical) .radio-group-label,
.checkbox-group .radio-group-label {
    flex-basis: 100%;
    margin-bottom: 0.4rem;
}

.radio-title {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--heading-color);
}

.radio-description {
    font-size: 0.95rem;
    color: rgba(245, 247, 255, 0.65);
}

.radio-text {
    margin: 0 0 0 0.5rem;
    color: rgba(245, 247, 255, 0.75);
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(245, 247, 255, 0.75);
}

@media (max-width: 900px) {
    .three-per-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .banner {
        margin-top: clamp(4rem, 18vw, 6rem);
    }

    .three-per-row,
    .two-per-row,
    form {
        grid-template-columns: 1fr;
    }
}
