:root {
    --font-main: 'Onest', sans-serif;

    /* Brand Color Palette */
    --color-lightest-white: #f8f9fa;
    --color-semi-light-white: #e9ecef;
    --color-bordering-gray-white: #dee2e6;
    --color-papaya-whip: #fdf0d5;
    --color-deep-space-blue: #003049;
    --color-steel-blue: #669bbc;
    --color-light-steel-blue: #99c1de;
    --color-brick-red: #c1121f;
    --color-light-red: #ff8a80;
    --color-molten-lava: #780000;
    --color-green: #a7c957;

    --color-bg-dark: #121212;
}

/* CSS Reset & General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body,
html {
    background-color: var(--color-bg-dark);
    color: var(--color-lightest-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden !important;
    /* Premium section deck: disable standard scrolling */
}

/* Hero Section Setup */
.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100svh; /* Modern small-viewport height that excludes mobile browser URL/navigation bars */
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/pb_court.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Dark Semi-Transparent Filter */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 65% opacity: perfect for readability against the court image */
    background: linear-gradient(135deg, rgba(0, 48, 73, 0.8) 0%, rgba(18, 18, 18, 0.8) 100%);
    z-index: 1;
}

/* Content Container */
.hero-content {
    position: relative;
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-logo {
    margin-bottom: 20px;
}

.logo-image {
    max-width: 480px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-image:hover {
    transform: scale(1.04);
}

.tagline {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--color-papaya-whip);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

/* Waitlist Form Styling */
.waitlist-form {
    width: 100%;
    max-width: 500px;
    margin-top: 10px;
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(248, 249, 250, 0.05);
    border: 1px solid rgba(248, 249, 250, 0.2);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--color-steel-blue);
    background: rgba(248, 249, 250, 0.08);
    box-shadow: 0 0 20px rgba(102, 155, 188, 0.25);
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-lightest-white);
    font-size: 1rem;
    padding: 10px 0;
    font-weight: 400;
}

.input-group input::placeholder {
    color: rgba(248, 249, 250, 0.5);
}

.cta-button {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-lightest-white);
    background-color: var(--color-steel-blue);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: #7aaecf;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 155, 188, 0.4);
}

.cta-button:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 14px;
    font-size: 0.95rem;
    min-height: 24px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.form-message.success {
    color: var(--color-green);
}

.form-message.error {
    color: var(--color-brick-red);
}

/* --- Pickleball Animation Section --- */
.pickleball-anchor {
    z-index: 50;
    position: absolute;
    right: 12%;
    top: 35%;
    width: 260px;
    height: 260px;
    pointer-events: none;
    opacity: 0;
}

.animation-container {
    position: fixed;
    z-index: 100;
    width: 260px;
    height: 260px;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform, opacity;
}

.pickleball-wrapper {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0px 10px 25px rgba(167, 201, 87, 0.45));
    animation: float 6s ease-in-out infinite alternate;
}

.pickleball-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: spin 30s linear infinite;
    pointer-events: auto;
    cursor: pointer;
}

/* Speed lines styling */
.speed-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.speed-line {
    position: absolute;
    background: linear-gradient(90deg, rgba(167, 201, 87, 0) 0%, rgba(167, 201, 87, 0.4) 50%, rgba(167, 201, 87, 0) 100%);
    height: 3px;
    border-radius: 50%;
    pointer-events: none;
}

.line-1 {
    top: 20%;
    left: -80px;
    width: 60px;
    animation: speedDash 1s linear infinite;
}

.line-2 {
    top: 45%;
    left: -120px;
    width: 100px;
    animation: speedDash 0.7s linear infinite;
    animation-delay: 0.15s;
}

.line-3 {
    top: 70%;
    left: -90px;
    width: 70px;
    animation: speedDash 1.3s linear infinite;
    animation-delay: 0.3s;
}

/* Keyframes for soaring & dashing */
@keyframes float {
    0% {
        transform: translate(-20px, -10px) rotate(-10deg);
    }

    25% {
        transform: translate(10px, -20px) rotate(5deg);
    }

    50% {
        transform: translate(25px, 10px) rotate(15deg);
    }

    75% {
        transform: translate(-5px, 20px) rotate(-5deg);
    }

    100% {
        transform: translate(-20px, -10px) rotate(-10deg);
    }
}

@keyframes speedDash {
    0% {
        transform: translate(0, 0) rotate(-15deg);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translate(320px, 80px) rotate(-15deg);
        opacity: 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Scroll reveal transitions */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-mockup.scroll-reveal {
    transition-delay: 0.15s;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        justify-content: center; /* Center the hero contents vertically */
        padding-top: 60px; /* Buffer equal to navbar height to keep content safe from overlapping */
        padding-bottom: 60px;
        box-sizing: border-box;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 20px;
    }

    .logo-image {
        max-width: 320px;
    }

    .tagline {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .input-group {
        flex-direction: column;
        background: rgba(248, 249, 250, 0.08);
        border-radius: 20px;
        padding: 15px;
        gap: 12px;
    }

    .input-group input {
        width: 100%;
        text-align: center;
        padding: 5px 0;
    }

    .cta-button {
        width: 100%;
        padding: 14px;
    }

    .pickleball-anchor {
        position: absolute;
        top: auto !important;
        right: auto !important;
        bottom: 20px; /* Float at the absolute bottom of the section */
        left: 50%;
        transform: translateX(-50%);
        width: 140px;
        height: 140px;
        margin-top: 0;
        display: block;
    }

    /* Small/constrained height viewports optimization (e.g. Mobile Chrome UI, Safari address bars, landscapes) */
    @media (max-height: 740px) {
        .hero {
            padding-top: 60px; /* Keep navbar clearance */
            padding-bottom: 60px;
        }
        .logo-image {
            max-width: 250px;
        }
        .tagline {
            font-size: 1.2rem;
            margin-bottom: 12px;
        }
        .promo-hook {
            font-size: 0.85rem;
            margin-bottom: 12px;
        }
        .pickleball-anchor {
            position: absolute;
            top: auto !important;
            right: auto !important;
            bottom: 10px; /* Safe absolute bottom on short screens */
            width: 100px;
            height: 100px;
        }
    }

    /* Mobile styling overrides for fit/paddings/overflows */
    .deck-slide {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch;
        transform: translateY(15px); /* Subtler translation on mobile for snappier animations and layout sync */
        transition: opacity 0.5s cubic-bezier(0.25, 1, 0.3, 1), transform 0.5s cubic-bezier(0.25, 1, 0.3, 1), visibility 0.5s;
    }

    .hero.deck-slide {
        overflow: hidden !important;
    }

    .feature-section {
        padding: 80px 16px 40px 16px !important;
        align-items: flex-start !important;
    }

    .bracket-tree {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .bracket-tree::-webkit-scrollbar {
        height: 4px;
    }

    .bracket-tree::-webkit-scrollbar-track {
        background: rgba(0, 48, 73, 0.02);
        border-radius: 10px;
    }

    .bracket-tree::-webkit-scrollbar-thumb {
        background: rgba(0, 48, 73, 0.12);
        border-radius: 10px;
    }

    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 12px !important;
    }

    .section-description {
        font-size: 0.95rem !important;
        margin-bottom: 16px !important;
    }

    .feature-highlights li {
        font-size: 0.9rem !important;
        margin-bottom: 12px !important;
    }

    .section-container {
        gap: 20px !important;
    }

    .mockup-widget,
    .scoreboard-card,
    .registration-card {
        padding: 16px !important;
        border-radius: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .bracket-tree {
        gap: 10px !important;
    }

    .bracket-match {
        width: 135px !important;
        padding: 6px 8px !important;
    }

    .bracket-round-title {
        font-size: 0.65rem !important;
    }

    .bracket-player {
        font-size: 0.7rem !important;
    }

    .bracket-score {
        font-size: 0.7rem !important;
        padding-left: 4px !important;
    }

    .score-val {
        font-size: 2rem !important;
        min-width: 32px !important;
    }

    .sb-team {
        padding: 8px 12px !important;
        border-radius: 12px !important;
    }

    .player-names {
        font-size: 0.85rem !important;
    }

    .score-btn {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.75rem !important;
    }
}

/* --- Alternating Feature Showcase Sections --- */
.feature-section {
    position: relative;
    padding: 120px 24px;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(248, 249, 250, 0.05);
    background-color: var(--color-deep-space-blue);
    overflow: hidden;
}

.section-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: transparent;
}

.section-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.25;
    pointer-events: none;
}

.section-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.section-left .section-container {
    flex-direction: row;
}

.section-right .section-container {
    flex-direction: row-reverse;
}

.section-text {
    flex: 1;
    max-width: 520px;
}

.feature-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-light-steel-blue);
    margin-bottom: 16px;
}

#real-time-updates .feature-tag {
    color: var(--color-light-red);
}

#player-signup .feature-tag {
    color: var(--color-green);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--color-lightest-white);
    letter-spacing: -1px;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-semi-light-white);
    margin-bottom: 32px;
    font-weight: 400;
}

.feature-highlights {
    list-style: none;
    margin-bottom: 0;
}

.feature-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--color-semi-light-white);
    line-height: 1.5;
}

.feature-highlights li:last-child {
    margin-bottom: 0;
}

.feature-highlights li strong {
    color: var(--color-papaya-whip);
    font-weight: 600;
}

.icon-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-light-steel-blue);
    margin-top: 8px;
    flex-shrink: 0;
}

#real-time-updates .icon-bullet {
    background-color: var(--color-light-red);
}

#player-signup .icon-bullet {
    background-color: var(--color-green);
}

.section-mockup {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 320px;
    max-width: 550px;
}

/* --- Mockup 1: Smart Scheduling Widget --- */
.mockup-widget {
    width: 100%;
    background: var(--color-lightest-white);
    border: 1px solid var(--color-bordering-gray-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.mockup-widget:hover {
    border-color: var(--color-steel-blue);
    box-shadow: 0 15px 35px rgba(102, 155, 188, 0.15);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--color-bordering-gray-white);
    padding-bottom: 16px;
}

.widget-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-deep-space-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 10px var(--color-green);
    display: inline-block;
}

.status-dot.pulsing {
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(167, 201, 87, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(167, 201, 87, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(167, 201, 87, 0);
    }
}

.widget-tabs {
    display: flex;
    gap: 6px;
    background: var(--color-semi-light-white);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid var(--color-bordering-gray-white);
}

.tab-btn {
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: rgba(0, 48, 73, 0.6);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--color-deep-space-blue);
}

.tab-btn.active {
    background: var(--color-steel-blue);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(102, 155, 188, 0.2);
}

.widget-panel {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.widget-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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

/* Bracket View Layout */
.bracket-tree {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 10px 0;
    position: relative;
}

.bracket-col {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 220px;
}

.bracket-round-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0, 48, 73, 0.6);
    margin-bottom: 8px;
    text-align: center;
    font-weight: 700;
}

.bracket-match {
    background: #ffffff;
    border: 1px solid var(--color-bordering-gray-white);
    border-radius: 10px;
    padding: 8px 12px;
    width: 170px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bracket-match:hover {
    border-color: var(--color-steel-blue);
    background: rgba(102, 155, 188, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
}

.bracket-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(0, 48, 73, 0.65);
    padding: 2px 0;
}

.bracket-player.winner {
    color: var(--color-deep-space-blue);
    font-weight: 700;
}

.player-info-inline {
    display: flex;
    align-items: center;
}

.bracket-seed {
    font-size: 0.65rem;
    color: rgba(0, 48, 73, 0.6);
    background: rgba(0, 48, 73, 0.06);
    padding: 1px 4px;
    border-radius: 3px;
    margin-right: 6px;
    font-weight: 600;
}

.bracket-score {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(0, 48, 73, 0.5);
    padding-left: 8px;
}

.bracket-player.winner .bracket-score {
    color: #386641;
}

/* Schedule View Layout */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.schedule-subtabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.subtab-btn {
    background: rgba(0, 48, 73, 0.03);
    border: 1px solid var(--color-bordering-gray-white);
    color: rgba(0, 48, 73, 0.6);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subtab-btn.active {
    background: rgba(56, 102, 65, 0.1);
    border-color: #386641;
    color: #386641;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--color-bordering-gray-white);
    border-radius: 10px;
    padding: 10px 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.schedule-item:hover {
    border-color: var(--color-green);
    background: rgba(167, 201, 87, 0.1);
    transform: translateX(2px);
}

.schedule-time-col {
    min-width: 70px;
    display: flex;
    flex-direction: column;
}

.schedule-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-deep-space-blue);
}

.schedule-duration {
    font-size: 0.65rem;
    color: rgba(0, 48, 73, 0.6);
}

.schedule-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 48, 73, 0.15);
}

.schedule-info-col {
    flex: 1;
}

.schedule-court-tag {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--color-steel-blue);
    margin-bottom: 2px;
}

.schedule-match-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-deep-space-blue);
}

.schedule-cat-badge {
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(0, 48, 73, 0.06);
    color: rgba(0, 48, 73, 0.6);
    margin-left: 6px;
    font-weight: 500;
}

/* --- Mockup 2: Live Referee Scoreboard --- */
.scoreboard-card {
    width: 100%;
    max-width: 440px;
    background: var(--color-lightest-white);
    border: 1px solid var(--color-bordering-gray-white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.scoreboard-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--color-steel-blue);
}

.sb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-bordering-gray-white);
    padding-bottom: 14px;
    margin-bottom: 20px;
}

.sb-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-deep-space-blue);
    background: rgba(0, 48, 73, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 48, 73, 0.15);
    letter-spacing: 0.5px;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-green);
    transition: color 0.3s;
}

.sync-status.updating {
    color: var(--color-papaya-whip);
}

.sync-dot {
    width: 6px;
    height: 6px;
    background: var(--color-green);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--color-green);
    animation: pulse-green-small 1.5s infinite;
}

.sync-status.updating .sync-dot {
    background: var(--color-papaya-whip);
    box-shadow: 0 0 8px var(--color-papaya-whip);
    animation: pulse-yellow-small 1.5s infinite;
}

@keyframes pulse-green-small {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

@keyframes pulse-yellow-small {
    0% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }
}

.court-info {
    font-size: 0.8rem;
    color: rgba(0, 48, 73, 0.6);
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: space-between;
}

.sb-teams {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sb-team {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px 18px;
    border: 1px solid var(--color-bordering-gray-white);
    transition: all 0.3s ease;
}

.sb-team.serving {
    border-color: var(--color-green);
    background: rgba(167, 201, 87, 0.15);
    box-shadow: 0 4px 12px rgba(167, 201, 87, 0.1);
}

.team-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.serve-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-green);
    box-shadow: 0 0 8px var(--color-green);
    opacity: 0;
    transition: opacity 0.3s;
}

.sb-team.serving .serve-bullet {
    opacity: 1;
}

.player-names-wrap {
    display: flex;
    flex-direction: column;
}

.player-names {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-deep-space-blue);
}

.player-role {
    font-size: 0.65rem;
    color: rgba(0, 48, 73, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.score-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.score-val {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-deep-space-blue);
    min-width: 44px;
    text-align: center;
    font-family: monospace;
    transition: transform 0.1s ease;
}

.score-val.bump {
    transform: scale(1.2);
    color: #386641;
}

.score-adjust-btns {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.score-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background: #e9ecef;
    color: #003049;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.score-btn:hover {
    background: var(--color-steel-blue);
    border-color: var(--color-steel-blue);
    color: #ffffff;
}

.score-btn:active {
    transform: scale(0.9);
}

.score-btn.btn-minus {
    opacity: 0.6;
}

.score-btn.btn-minus:hover {
    opacity: 1;
    background: var(--color-brick-red);
    border-color: var(--color-brick-red);
    color: #ffffff;
}

.sb-footer-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.sb-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e9ecef;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 10px;
    color: #003049;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sb-action-btn:hover {
    background: #dee2e6;
    color: #003049;
    border-color: #ced4da;
}

.sb-action-btn:active {
    transform: scale(0.98);
}

.match-status-banner {
    text-align: center;
    margin-top: 14px;
    font-size: 0.75rem;
    color: var(--color-deep-space-blue);
    font-weight: 600;
    background: rgba(0, 48, 73, 0.05);
    padding: 6px;
    border-radius: 8px;
    border: 1px solid rgba(0, 48, 73, 0.1);
    letter-spacing: 0.5px;
    min-height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Mockup 3: Sleek Player Sign-up Card --- */
.registration-card {
    width: 100%;
    max-width: 440px;
    background: var(--color-lightest-white);
    border: 1px solid var(--color-bordering-gray-white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.registration-card:hover {
    border-color: rgba(167, 201, 87, 0.5);
    box-shadow: 0 15px 35px rgba(167, 201, 87, 0.15);
}

.reg-header {
    margin-bottom: 18px;
}

.reg-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.reg-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-deep-space-blue);
    margin-bottom: 2px;
}

.reg-status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #386641;
    background: rgba(56, 102, 65, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.reg-subtitle {
    font-size: 0.8rem;
    color: rgba(0, 48, 73, 0.6);
}

.reg-progress {
    margin-bottom: 16px;
}

.progress-label-wrap {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-deep-space-blue);
    margin-bottom: 6px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: var(--color-bordering-gray-white);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--color-green);
    width: 62.5%;
    /* 10/16 */
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 170px;
    overflow-y: auto;
    margin-bottom: 18px;
    padding-right: 4px;
}

/* Custom scrollbar for player list */
.player-list::-webkit-scrollbar {
    width: 4px;
}

.player-list::-webkit-scrollbar-track {
    background: rgba(0, 48, 73, 0.02);
    border-radius: 10px;
}

.player-list::-webkit-scrollbar-thumb {
    background: rgba(0, 48, 73, 0.12);
    border-radius: 10px;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--color-bordering-gray-white);
    border-radius: 10px;
    padding: 8px 12px;
    animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.player-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-deep-space-blue);
}

.avatar-0 {
    background-color: var(--color-papaya-whip);
}

.avatar-1 {
    background-color: var(--color-steel-blue);
    color: #fff;
}

.avatar-2 {
    background-color: var(--color-green);
}

.avatar-3 {
    background-color: #f7b731;
}

.player-name-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-deep-space-blue);
}

.player-rating-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(56, 102, 65, 0.1);
    color: #386641;
}

.player-division {
    font-size: 0.7rem;
    color: rgba(0, 48, 73, 0.6);
}

.signup-form-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--color-bordering-gray-white);
    padding-top: 16px;
}

.form-row {
    display: flex;
    gap: 8px;
}

.signup-input {
    flex: 1;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    color: #121212;
    font-size: 0.8rem;
    outline: none;
    transition: all 0.3s ease;
}

.signup-input:focus {
    border-color: var(--color-green);
    background: #ffffff;
}

.signup-input::placeholder {
    color: rgba(18, 18, 18, 0.4);
}

.signup-select {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
    color: #121212;
    font-size: 0.8rem;
    outline: none;
    width: 80px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signup-select option {
    background-color: #ffffff;
    color: #121212;
}

.signup-select:focus {
    border-color: var(--color-green);
}

.signup-submit-btn {
    background: var(--color-green);
    color: var(--color-deep-space-blue);
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.signup-submit-btn:hover {
    background: #bade6a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(167, 201, 87, 0.3);
}

.signup-submit-btn:active {
    transform: translateY(0);
}

.reg-message {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    min-height: 18px;
    opacity: 0;
    transition: opacity 0.3s;
}

.reg-message.show {
    opacity: 1;
}

.reg-message.success {
    color: var(--color-green);
}

.reg-message.error {
    color: var(--color-brick-red);
}

/* Mobile responsiveness updates */
@media (max-width: 992px) {
    .section-container {
        gap: 40px;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .feature-section {
        padding: 80px 20px;
    }

    .section-left .section-container,
    .section-right .section-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .section-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 100%;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .feature-highlights {
        text-align: left;
        width: 100%;
        max-width: 450px;
    }

    .section-mockup {
        width: 100%;
        max-width: 440px;
    }
}

/* --- Bottom CTA Section --- */
.bottom-cta {
    position: relative;
    padding: 120px 24px;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0b1a21;
    /* Rich dark navy, matching brand palette */
    border-bottom: 1px solid rgba(248, 249, 250, 0.05);
    overflow: hidden;
    text-align: center;
}

.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.cta-container {
    position: relative;
    z-index: 2;
    max-width: 650px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-lightest-white);
    letter-spacing: -1px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.15rem;
    color: var(--color-semi-light-white);
    margin-bottom: 36px;
    line-height: 1.5;
    max-width: 540px;
}

/* --- Textured Premium Footer --- */
footer {
    position: relative;
    background-color: #060606;
    /* Solid extra dark gray/black (no gradient) */
    padding: 80px 24px 40px 24px;
    width: 100vw;
    border-top: 1px solid rgba(248, 249, 250, 0.08);
    overflow: hidden;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(248, 249, 250, 0.5);
    max-width: 300px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-links-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-lightest-white);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    font-size: 0.9rem;
    color: rgba(248, 249, 250, 0.5);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--color-steel-blue);
    transform: translateX(3px);
}

.footer-bottom {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(248, 249, 250, 0.08);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(248, 249, 250, 0.4);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(248, 249, 250, 0.03);
    border: 1px solid rgba(248, 249, 250, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(248, 249, 250, 0.5);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: var(--color-steel-blue);
    border-color: var(--color-steel-blue);
    color: var(--color-lightest-white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 155, 188, 0.3);
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 36px;
    }
}

@media (max-width: 992px) {
    .bottom-cta {
        padding: 80px 20px;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-links-list a:hover {
        transform: scale(1.05);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Premium Section Slide Deck Styling --- */
.deck-slide {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100svh !important; /* Forces slides to conform to browser viewport minus chrome/URL bars */
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.3, 1), transform 1.2s cubic-bezier(0.25, 1, 0.3, 1), visibility 1.2s;
    overflow: hidden;
}

.deck-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    z-index: 10;
}

#cta-footer-slide {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    background-color: #060606;
    display: flex;
    flex-direction: column;
}

.bottom-cta,
footer {
    width: 100% !important;
    max-width: 100% !important;
}

/* --- Premium Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 70px;
    z-index: 130;
    /* Above deck-slide.active and mobile-menu-overlay */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    background: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(248, 249, 250, 0.08);
    transition: all 0.4s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.nav-logo-image-header {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-image-header {
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(248, 249, 250, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--color-lightest-white);
}

/* Nav link active underline style */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-steel-blue);
    transition: width 0.3s ease;
}

.nav-link.active-link::after {
    width: 100%;
}

.nav-link.active-link {
    color: var(--color-lightest-white);
}

.nav-btn {
    background-color: var(--color-steel-blue);
    color: var(--color-lightest-white);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(102, 155, 188, 0.2);
}

.nav-btn::after {
    display: none !important;
}

.nav-btn:hover {
    background-color: #7aaecf;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(102, 155, 188, 0.3);
}

/* Mobile Menu Toggle Button (Hamburger) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 120;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-lightest-white);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh; /* Keeps menu container perfectly inside visible viewport boundary */
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 115;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay .nav-link {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-lightest-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-overlay .nav-link:hover {
    color: var(--color-steel-blue);
}

.mobile-menu-overlay .nav-btn {
    background-color: var(--color-steel-blue);
    color: var(--color-lightest-white);
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(102, 155, 188, 0.3);
}

@media (max-width: 992px) {
    .navbar {
        padding: 0 20px;
        height: 60px;
    }

    .nav-logo-image-header {
        height: 30px;
    }

    .nav-links {
        display: none !important;
    }

    .menu-toggle {
        display: flex;
    }
}

/* --- Pricing Section & Glassmorphic Pricing Card Styles --- */
.pricing-section {
    background-color: var(--color-deep-space-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh; /* Fits pricing grid nicely inside viewport boundaries */
    width: 100vw;
    padding: 110px 24px 40px 24px;
}

.pricing-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pricing-content-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.text-center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card-wrapper {
    margin-top: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.glass-pricing-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(248, 249, 250, 0.08);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1), border-color 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
}

.glass-pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 155, 188, 0.4);
    box-shadow: 0 30px 60px rgba(0, 48, 73, 0.5);
}

.card-highlight-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--color-steel-blue);
    color: var(--color-lightest-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(102, 155, 188, 0.2);
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-plan-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-papaya-whip);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.price-amount-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 20px;
}

.price-currency {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-lightest-white);
    margin-right: 4px;
}

.price-value {
    font-size: 4.5rem;
    font-weight: 850;
    color: var(--color-lightest-white);
    line-height: 1;
}

.price-duration {
    font-size: 1.1rem;
    color: var(--color-light-steel-blue);
    margin-left: 6px;
    font-weight: 600;
}

.price-caption {
    font-size: 0.92rem;
    color: rgba(248, 249, 250, 0.7);
    line-height: 1.6;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 35px 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-top: 1px solid rgba(248, 249, 250, 0.08);
    padding-top: 30px;
}

.pricing-features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(248, 249, 250, 0.85);
}

.check-icon {
    color: var(--color-green);
    flex-shrink: 0;
}

.pricing-cta-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 12px;
    background-color: var(--color-steel-blue);
    color: var(--color-lightest-white);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 155, 188, 0.2);
}

.pricing-cta-btn:hover {
    background-color: #7aaecf;
    transform: scale(1.01);
    box-shadow: 0 6px 20px rgba(102, 155, 188, 0.3);
}

/* Mobile responsive rules for Pricing Card */
@media (max-width: 768px) {
    .pricing-section {
        padding: 80px 16px 40px 16px !important;
        align-items: flex-start !important;
        overflow-y: auto !important;
    }

    .glass-pricing-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .price-value {
        font-size: 3.5rem;
    }

    .pricing-card-wrapper {
        margin-top: 24px;
    }
}

/* --- Promo Hook & Consent Note Styles --- */
.promo-hook {
    font-size: 1rem;
    color: var(--color-papaya-whip);
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.form-consent-note {
    font-size: 0.78rem;
    color: rgba(248, 249, 250, 0.45);
    margin-top: 15px;
    line-height: 1.4;
}

.form-consent-note a {
    color: rgba(248, 249, 250, 0.7);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.form-consent-note a:hover {
    color: var(--color-steel-blue);
}

/* --- Tooltip Styles --- */
.tooltip-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 6px;
    cursor: pointer;
}

.info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 1.2em;
    height: 1.2em;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--color-light-steel-blue);
    border-radius: 50%;
    color: var(--color-light-steel-blue);
    font-size: 0.85rem;
    font-weight: bold;
    line-height: 1;
    text-align: center;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    user-select: none;
    outline: none;
}

.info-icon:hover,
.info-icon:focus {
    background-color: var(--color-steel-blue);
    border-color: var(--color-lightest-white);
    color: var(--color-lightest-white);
    box-shadow: 0 0 12px rgba(102, 155, 188, 0.6);
    transform: scale(1.1);
}

.tooltip-box {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    width: 280px;
    z-index: 200;
    padding: 16px;
    background: rgba(0, 48, 73, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(248, 249, 250, 0.12);
    border-radius: 12px;
    color: var(--color-lightest-white);
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.3s;
}

/* Arrow pointer */
.tooltip-box::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(0, 48, 73, 0.96) transparent transparent transparent;
}

/* Hover/Focus display logic */
.tooltip-wrapper:hover .tooltip-box,
.info-icon:focus+.tooltip-box,
.tooltip-wrapper:focus-within .tooltip-box {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

/* Adjust tooltip position for mobile screens to prevent clipping */
@media (max-width: 768px) {
    .tooltip-box {
        left: auto;
        right: -30px;
        transform: translateY(10px) scale(0.95);
    }

    .tooltip-box::after {
        left: auto;
        right: 32px;
        transform: none;
    }

    .tooltip-wrapper:hover .tooltip-box,
    .info-icon:focus+.tooltip-box,
    .tooltip-wrapper:focus-within .tooltip-box {
        transform: translateY(0) scale(1);
    }
}