:root {
    /* Premium Light Mode Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #65a30d;
    --secondary-hover: #4d7c0f;
    --accent: #f59e0b;

    /* Backgrounds & Surfaces */
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;

    /* Text Colors */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-inverse: #ffffff;

    /* Borders & Shadows */
    --border-light: #e2e8f0;
    --border-focus: #93c5fd;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.brand-badge,
.logo {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

/* Buttons */
.btn {
    padding: 0.8rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
    outline: none;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 2rem;
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-image: url('squash_club_hero.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right center;
}

.hero-content {
    width: 100%;
    max-width: 600px;
    z-index: 10;
}

.hero-content.left-align {
    margin-left: 5%;
}

.brand-badge {
    display: inline-block;
    background: var(--bg-subtle);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero h1 span {
    color: var(--primary);
    display: block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background-color: var(--bg-body);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* Billing Container & Popular Badge */
.billing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 4rem;
}

.popular-badge {
    background: linear-gradient(135deg, var(--secondary) 0%, #a3cf45 100%);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    box-shadow: 0 4px 15px rgba(101, 163, 13, 0.4);
    transition: var(--transition);
    animation: badgePulse 2s infinite ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.popular-badge:before {
    content: '★';
    font-size: 0.9rem;
}

@keyframes badgePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(101, 163, 13, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(101, 163, 13, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(101, 163, 13, 0.4);
    }
}

.billing-container:has(input:checked) .popular-badge {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.billing-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
}

.toggle-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.toggle-label.active {
    color: var(--text-main);
    font-weight: 700;
}

.switch {
    position: relative;
    display: inline-block;
    width: 64px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-light);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--secondary);
}

input:checked+.slider:before {
    transform: translateX(30px);
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
}

.amount {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.period {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.price-subtitle {
    font-size: 0.95rem;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 0.8rem;
}

.features {
    list-style: none;
    margin-bottom: 3rem;
    flex-grow: 1;
}

.features li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--bg-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
}

.features li:last-child {
    border-bottom: none;
}

.features li:before {
    content: '✓';
    color: var(--primary);
    font-weight: 900;
    background: var(--bg-subtle);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.scholar-price-tag {
    margin-left: auto;
    font-weight: 700;
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.scholar-savings-note {
    font-size: 0.85em;
    color: var(--secondary);
    margin-left: 4px;
}

/* Form Overlay */
.signup-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    /* Controlled by JS */
    justify-content: center;
    align-items: flex-start;
    overflow-y: auto;
    padding: 2rem 1rem;
}

.form-container {
    background: var(--bg-surface);
    padding: 3.5rem;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 800px;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    margin-top: 2rem;
}

.close-form {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--bg-subtle);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--primary);
    font-weight: 600;
}

/* Plan Selectors inside Form */
.form-plan-selectors {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-subtle);
    padding: 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 2.5rem;
    border: 1px solid var(--border-light);
}

.form-selector-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
}

.selector-label {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.plan-toggle-group {
    display: flex;
    background: white;
    padding: 3px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.plan-btn {
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-muted);
}

.plan-btn.active {
    background: var(--primary);
    color: white;
}

.billing-toggle.mini .switch {
    width: 50px;
    height: 26px;
}

.billing-toggle.mini .slider:before {
    height: 18px;
    width: 18px;
    bottom: 4px;
}

.billing-toggle.mini input:checked+.slider:before {
    transform: translateX(24px);
}

.billing-toggle.mini .toggle-label {
    font-size: 0.9rem;
}

/* Member Details */
.adult-member-section h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Scholar Section */
.scholar-integration-section {
    background: var(--bg-subtle);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-top: 1rem;
    width: fit-content;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
}

.qty-control input {
    width: 50px;
    text-align: center;
    border: none;
    font-weight: 700;
    pointer-events: none;
}

/* Form Summary */
.form-summary {
    background: var(--bg-subtle);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.summary-line.total {
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-main);
    font-weight: 700;
}

.summary-total {
    font-size: 2.2rem;
    color: var(--primary);
}

.live-total-highlight {
    background: var(--bg-surface);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.95rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.billing-label-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.registration-summary-box {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.registration-summary-box h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.registration-summary-box ul {
    list-style: none;
}

.registration-summary-box li {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.registration-summary-box li:before {
    content: '•';
    color: var(--primary);
    font-weight: 900;
}

/* Thank You View */
.thank-you-view {
    text-align: center;
    padding: 2rem 0;
    animation: fadeIn 0.5s ease-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 20px rgba(101, 163, 13, 0.2);
}

.instruction-box {
    background: var(--bg-subtle);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: left;
    margin: 2rem 0 3rem;
    border: 1px solid var(--border-light);
}

.instruction-box p {
    color: var(--text-main);
    margin-bottom: 1rem;
}

.instruction-box ul {
    list-style: none;
}

.instruction-box li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.instruction-box li:last-child {
    margin-bottom: 0;
}

.instruction-box li:before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Footer */
footer {
    background: var(--text-main);
    color: var(--text-muted);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--secondary);
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .form-plan-selectors {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .form-selector-group {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .billing-label-row {
        width: 100%;
        justify-content: space-between;
    }

    .hero {
        flex-direction: column;
        min-height: auto;
        padding-top: 4rem;
        overflow: hidden;
    }

    .hero-content.left-align {
        margin-left: 0;
        text-align: center;
        max-width: 100%;
        padding: 0 1rem;
        z-index: 10;
    }

    .brand-badge {
        margin-bottom: 1rem;
    }

    .hero h1 {
        font-size: 3.2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        margin: 0 auto 2.5rem;
    }

    .hero-bg-wrapper {
        position: relative;
        width: 100%;
        height: 380px;
        right: auto;
        top: auto;
        opacity: 1;
        margin-top: 1rem;
        z-index: 1;
    }

    .hero-bg {
        background-image: url('squash_club_hero_light.webp');
        background-position: center bottom;
        background-size: contain;
        background-repeat: no-repeat;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .pricing-section {
        padding: 4rem 0;
    }

    .form-container {
        padding: 2.5rem 1.5rem;
        margin: 1rem;
    }

    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-plan-selectors {
        padding: 1rem;
        gap: 1rem;
    }

    .form-selector-group {
        min-width: 100%;
        justify-content: space-between;
    }

    .amount {
        font-size: 3.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .pricing-grid {
        gap: 1.25rem;
    }

    .pricing-card {
        padding: 2rem 1rem;
    }

    .amount {
        font-size: 2.4rem;
    }

    .form-container {
        padding: 1.5rem 1rem;
        margin: 0.5rem;
    }

    .form-header h2 {
        font-size: 1.4rem;
    }

    .form-header p {
        font-size: 0.85rem;
    }

    .form-plan-selectors {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0.85rem;
    }

    .form-selector-group {
        min-width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    .selector-label {
        font-size: 0.75rem;
    }

    .plan-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }

    .billing-toggle.mini .toggle-label {
        font-size: 0.75rem;
    }

    .billing-toggle.mini .switch {
        width: 44px;
        height: 22px;
    }

    .billing-toggle.mini .slider:before {
        height: 14px;
        width: 14px;
        left: 4px;
        bottom: 4px;
    }

    .billing-toggle.mini input:checked+.slider:before {
        transform: translateX(22px);
    }

    .close-form {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
        font-size: 1.2rem;
    }

    .summary-total {
        font-size: 1.6rem;
    }
}