* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #1a1a1a; /* Back to dark background */
}



/* Utility Classes */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-center {
    text-align: center;
}

.text-uppercase {
    text-transform: uppercase;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.section-padding {
    padding: clamp(40px, 8vw, 80px) clamp(1rem, 4vw, 2rem);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(0.8rem, 3vw, 1.5rem);
}

.btn-primary {
    display: inline-block;
    padding: clamp(10px, 2.5vw, 15px) clamp(20px, 5vw, 40px);
    background: #ff6b35;
    color: white;
    text-decoration: none;
    border-radius: clamp(3px, 1vw, 5px);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 0.2vw, 1px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    font-size: clamp(0.8rem, 1.8vw, 1rem);
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 90, 43, 0.5);
}

.btn-gradient {
    background: linear-gradient(45deg, #ff6b35, #e55a2b);
    color: white !important;
}

.btn-gradient:hover {
    background: linear-gradient(45deg, #e55a2b, #cc4a1f);
    color: white !important;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 300;
}

.card-shadow {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Navigation */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 4vw, 2rem);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
    min-height: clamp(60px, 10vw, 80px);
}

.navbar > div:last-child {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 2rem);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.navbar.brown {
    background: rgba(54, 37, 18, 0.95);
    transition: background 0.3s ease;
}

.navbar.gray {
    background: rgba(70, 70, 70, 0.95);
    transition: background 0.3s ease;
}

.logo {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.3vw, 2px);
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 0;
    height: 100%;
}

.logo-img {
    height: clamp(30px, 6vw, 50px);
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(1rem, 3vw, 2rem);
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 0.2vw, 1px);
    transition: color 0.3s ease;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
}

/* Desktop-only hover effects */
@media (min-width: 1101px) {
    .nav-links a:hover {
        color: #ff6b35;
    }
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: white;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.dropdown-toggle:hover {
    color: #ff6b35;
}

.dropdown-arrow {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    padding: 0.2rem;
    margin-left: 0.2rem;
    cursor: pointer;
    border-radius: 2px;
}

.dropdown-arrow:hover {
    background: rgba(255, 107, 53, 0.2);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0.5rem 0;
    margin-top: 1rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

.dropdown-menu li a {
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.25rem;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
    margin-bottom: 0;
}

/* Mobile/Touch dropdown support */
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-icon:hover {
    color: #ff6b35;
    transform: translateY(-2px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

main {
    background: #f8f9fa;
}
/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    color: white;
    /* Uses .section-padding and .text-center */
}

.contact-section h2 {
    /* Uses .section-title */
    color: #00bcd4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #f0f0f0;
}

.contact-section a {
    color: #00bcd4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-section a:hover {
    color: #00acc1;
}

.contact-cta-btn {
    /* Extends .btn-primary with gradient */
    font-size: 1.1rem;
    font-weight: 600;
}

/* Footer */
footer {
    background: #222;
    color: #999;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-social-icons {
    display: flex;
    gap: 1rem;
}

.footer-social-icons .social-icon {
    color: #999;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-social-icons .social-icon:hover {
    color: #00bcd4;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }
}

/* Universal Header (for all pages except index.html) */
.universal-header {
    height: auto;
}

.universal-header .navbar {
    background: rgba(0, 0, 0, 0.95);
}

.team-title-section {
    background: #f8f9fa;
    padding: clamp(80px, 15vw, 120px) clamp(1rem, 4vw, 2rem) clamp(30px, 8vw, 60px) clamp(1rem, 4vw, 2rem);
    text-align: center;
}

.team-title-content h1 {
    font-size: clamp(1.8rem, 4vw, 4rem);
    color: #333;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.5vw, 3px);
    font-weight: 300;
}

.team-title-content p {
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: clamp(1.4, 0.3vw, 1.6);
}

.team-hero {
    height: 30vh;
    min-height: 250px;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('https://img.redbull.com/images/c_crop,w_3868,h_1934,x_0,y_361/c_auto,w_1200,h_630/f_auto,q_auto/redbullcom/2020/9/15/y2umijbh6rqy5chmlawf/motocross-world-championship') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    padding-top: 80px;
}

.team-section {
    background: #f8f9fa;
    padding: 40px 2rem 80px 2rem;
}

.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: start;
}

.team-member:nth-child(even) {
    grid-template-columns: 1fr 300px;
}

.team-member:nth-child(even) .team-image {
    order: 2;
}

.team-member:nth-child(even) .team-info {
    order: 1;
    text-align: right;
}

.team-image {
    position: relative;
}

.team-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.team-image:hover img {
    transform: translateY(-5px);
}

.team-info h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #333;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.team-info h3 {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #00bcd4;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.team-info p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.team-info p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
/* Desktop hover functionality - disabled on mobile to prevent conflicts */
@media (min-width: 1101px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .main-header .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .universal-header .dropdown:hover .dropdown-menu {
        display: block;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    background: none;
    border: none;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ff6b35;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

@media (max-width: 1100px) {
    .mobile-menu-toggle {
        display: flex;
    }

    /* Logo sizing for mobile */
    .logo-img {
        height: clamp(25px, 5vw, 35px);
        width: auto;
    }

    .navbar {
        padding: clamp(0.6rem, 2.5vw, 0.9rem) clamp(0.8rem, 4vw, 1.6rem);
        min-height: clamp(52px, 8vw, 72px);
        background: rgba(0, 0, 0, 0.92);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }

    .navbar > div:last-child,
    .nav-right {
        width: 100%;
        justify-content: flex-end;
        gap: clamp(0.75rem, 4vw, 1.25rem);
    }

    .nav-right .social-icons {
        display: flex;
        order: 1;
        gap: clamp(0.5rem, 3vw, 1rem);
    }

    .nav-right .social-icon svg {
        width: clamp(18px, 4vw, 22px);
        height: clamp(18px, 4vw, 22px);
    }

    .nav-right .mobile-menu-toggle {
        order: 2;
    }

    /* Universal header (other pages) mobile styles */
    .universal-header .navbar {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .universal-header .nav-links {
        position: fixed;
        top: clamp(50px, 8vw, 70px);
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: calc(100vh - clamp(50px, 8vw, 70px));
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.9) 100%);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: clamp(1.25rem, 5vw, 1.75rem);
        transform: translateX(-100%);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        padding: clamp(1.75rem, 6vw, 2.5rem) clamp(1.25rem, 6vw, 2rem) clamp(3rem, 12vw, 4rem);
        z-index: 999;
        overflow-y: auto;
        overflow-x: hidden;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    }

    .universal-header .nav-links.active {
        transform: translateX(0);
    }

    .universal-header .nav-links li {
        width: 100%;
        text-align: left;
        border-bottom: none;
        padding: 0;
        margin: 0;
    }

    .universal-header .nav-links li:last-child {
        border-bottom: none;
    }

    .universal-header .nav-links a {
        display: block;
        padding: clamp(0.85rem, 3.5vw, 1.25rem) clamp(1.5rem, 6vw, 2rem);
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        font-weight: 600;
        text-align: left; /* Left align menu items */
        color: white;
        text-decoration: none;
        transition: all 0.3s ease;
        border-radius: 12px;
        margin: 0;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.05);
        line-height: 1.4;
    }

    /* Desktop-only hover effects for universal header */
    @media (min-width: 1101px) {
        .universal-header .nav-links a:hover {
            background: rgba(255, 107, 53, 0.2);
            color: #ff6b35;
            transform: scale(1.05);
        }
    }
    
    .universal-header .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: clamp(0.85rem, 3.5vw, 1.25rem) clamp(1.5rem, 6vw, 2rem);
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        font-weight: 600;
        color: white;
        cursor: pointer;
        border-radius: 12px;
        margin: 0;
        transition: all 0.3s ease;
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.05);
        line-height: 1.4;
    }

    .universal-header .dropdown-arrow {
        transition: transform 0.3s ease;
        display: flex;
        align-items: center;
        margin-left: auto;
    }
    
    .universal-header .dropdown.active .dropdown-arrow {
        transform: rotate(180deg);
    }
    
    .universal-header .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.6);
        margin: 0.75rem 0 0;
        border-radius: 10px;
        display: none;
        border-left: none;
        border: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.75rem 0;
        text-align: left;
        backdrop-filter: blur(5px);
    }

    .universal-header .dropdown.active .dropdown-menu {
        display: block;
    }

    .universal-header .dropdown-menu a {
        font-size: clamp(1rem, 3vw, 1.4rem);
        color: #e0e0e0;
        padding: 0.75rem clamp(1.25rem, 6vw, 1.75rem);
        text-align: left;
        display: block;
        border-radius: 6px;
        margin: 0;
        transition: all 0.3s ease;
    }
    
    .universal-header .dropdown-menu a:hover {
        color: #ff6b35;
        background: rgba(255, 107, 53, 0.2);
        transform: scale(1.02);
    }
    
    .gallery-images {
        grid-template-columns: 1fr;
    }
    
    .gallery-section h2,
    .contact-section h2 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    /* Case study grid mobile adjustment */
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 3vw, 2rem);
    }
    
    /* Team page mobile styles */
    .team-member {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 3vw, 2rem);
        margin-bottom: clamp(2rem, 5vw, 4rem);
        text-align: center;
    }
    
    .team-member:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .team-member:nth-child(even) .team-image {
        order: 1;
    }
    
    .team-member:nth-child(even) .team-info {
        order: 2;
        text-align: center;
    }
    
    .team-image img {
        height: clamp(250px, 40vw, 300px);
    }
}

/* Contact Page Styles */
.contact-hero {
    background: #f8f9fa;
    padding: 80px 2rem;
    text-align: center;
}

.contact-hero h1 {
    font-family: 'Oswald', sans-serif;
    color: #333;
    margin-bottom: 4rem;
    font-weight: 600;
    font-size: clamp(3rem, 6vw, 5rem);
}

.contact-hero p {
    font-size: 1.3rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

.contact-cards-section {
    background: black;
    padding: 80px 2rem;
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    max-width: 900px;
    max-height: 900px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.contact-card {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-left: 4px solid #ff6b35;
    transition: all 0.3s ease;
    position: relative;
    aspect-ratio: 1;
}

.contact-icon-box {
    width: 80px;
    height: 80px;
    background: black;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-icon-box svg {
    width: 35px;
    height: 35px;
    fill: white;
}

.contact-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #ccc;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.contact-link {
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-location {
    color: #ff6b35;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
}

@media (max-width: 992px) {
    .contact-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .contact-hero {
        padding: 60px 1rem;
    }
    
    .contact-cards-section {
        padding: 40px 0.5rem;
    }
    
    .contact-card {
        padding: 1rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        text-align: left;
        aspect-ratio: unset;
    }
    
    .contact-card p {
        display: none; /* Hide description on mobile */
    }
    
    .contact-icon-box {
        width: 40px;
        height: 40px;
        margin: 0 1rem 0 0;
        flex-shrink: 0;
    }
    
    .contact-icon-box svg {
        width: 24px;
        height: 24px;
    }
    
    .contact-card-content {
        flex: 1;
    }
    
    .contact-card h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
        line-height: 1.2;
    }
    
    .contact-link, .contact-location {
        font-size: 0.9rem;
        line-height: 1.2;
        word-break: break-word;
    }
}

/* Contact Form Styles */
.contact-form-section {
    background: #2a2a2a;
    padding: 4rem 0;
}

.contact-form-container,
.track-reservation-form-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-form-container .alert {
    position: relative;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.35);
    color: #ffffff;
    outline: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-form-container .alert-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-form-container .alert-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: inherit;
}

.contact-form-container .alert-text {
    flex: 1;
}

.contact-form-container .alert-title {
    margin: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.contact-form-container .alert-message {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

.contact-form-container .alert-success {
    border-color: rgba(34, 197, 94, 0.55);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22), rgba(6, 95, 70, 0.4));
    box-shadow: 0 25px 45px rgba(16, 185, 129, 0.35);
}

.contact-form-container .alert-error {
    border-color: rgba(239, 68, 68, 0.55);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(127, 29, 29, 0.4));
    box-shadow: 0 25px 45px rgba(239, 68, 68, 0.35);
}

.contact-form-container .alert-hide {
    opacity: 0;
    transform: translateY(-6px);
}

@media (max-width: 600px) {
    .contact-form-container .alert {
        padding: 1rem 1.1rem;
    }

    .contact-form-container .alert-icon {
        width: 24px;
        height: 24px;
    }

    .contact-form-container .alert-title {
        font-size: 0.8rem;
    }

    .contact-form-container .alert-message {
        font-size: 0.9rem;
    }
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.form-header p {
    color: #cccccc;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid rgba(255, 102, 0, 0.3);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff8c42;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* Style dropdown options */
.form-group select option {
    background: #ffffff;
    color: #000000;
    padding: 8px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Legacy checkbox styles (keeping for fallback) */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #ccc;
    user-select: none;
    gap: 12px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 107, 53, 0.5);
    border-radius: 4px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #ff6b35;
    border-color: #ff6b35;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    opacity: 1;
}

.checkbox-label:hover .checkmark {
    border-color: #ff6b35;
    background: rgba(255, 107, 53, 0.1);
}

/* Pricing Summary Styles */
.pricing-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.pricing-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 0.75rem;
    margin-top: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.pricing-label {
    color: #ccc;
}

.pricing-value {
    color: #ff6b35;
    font-weight: 600;
}

.pricing-row.total .pricing-value {
    color: #fff;
    font-size: 1.2rem;
}

/* Add rider button disabled state */
.btn-secondary:disabled {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #999 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    cursor: not-allowed !important;
    transition: all 0.3s ease;
}

.btn-secondary:disabled:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #999 !important;
    transform: none !important;
}

.form-submit {
    text-align: center;
    margin-top: 1rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Mobile form styles */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        gap: 1rem;
    }
}

/* Apply Page Styles */
.apply-page {
    background-color: #1a1a1a;
    color: white;
    min-height: 100vh;
}

.apply-container {
    background-color: #1a1a1a;
    min-height: 100vh;
    padding-top: 120px;
}

.back-button-center {
    text-align: center;
    margin-bottom: 40px;
}

.back-btn-simple {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff6600;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn-simple:hover {
    background: #e55a00;
    color: white;
    text-decoration: none;
    transform: translateX(-3px);
}

.back-btn-simple svg {
    transition: transform 0.3s ease;
}

.back-btn-simple:hover svg {
    transform: translateX(-2px);
}

.application-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 60px;
}

.application-header h1 {
    color: white;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.application-subtitle {
    color: #ccc;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Application form container styling for apply page */
.apply-page .contact-form-container {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.apply-page .form-header h2 {
    color: white;
    font-family: 'Oswald', sans-serif;
    margin-bottom: 1rem;
}

.apply-page .form-header p {
    color: #ccc;
    margin-bottom: 2rem;
}

/* Application form specific styling */
.application-form .form-group label {
    color: white !important;
}

.application-form .form-group input,
.application-form .form-group select,
.application-form .form-group textarea {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 102, 0, 0.3) !important;
    color: white !important;
}

.application-form .form-group input::placeholder,
.application-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.application-form .form-group input:focus,
.application-form .form-group select:focus,
.application-form .form-group textarea:focus {
    border-color: #ff6600 !important;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1) !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

/* Application form section headers */
.form-section-header {
    margin: 2rem 0 1.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 102, 0, 0.3);
}

.form-section-header h3 {
    color: #ff6600 !important;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Supporter form sections */
.supporter-form-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.supporter-form-section .form-section-header {
    margin-top: 0;
}

/* File input styling for apply page */
.application-form input[type="file"] {
    display: none;
}

.application-form .file-upload-wrapper {
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 2px solid rgba(255, 102, 0, 0.3) !important;
    color: white !important;
    padding: 0.75rem !important;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.application-form .file-upload-wrapper:hover {
    border-color: #ff6600 !important;
    background: rgba(255, 255, 255, 0.15) !important;
}

.application-form .file-upload-wrapper.has-file {
    color: #ff6600 !important;
    border-color: #ff6600 !important;
}

.application-form .file-upload-text {
    color: rgba(255, 255, 255, 0.8);
}

.application-form .file-upload-wrapper.has-file .file-upload-text {
    color: #ff6600;
    font-weight: 500;
}

/* Apply page footer override */
.apply-page footer {
    background: #111 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cost breakdown styling for track reservation */
.cost-breakdown {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 10px;
}

.cost-breakdown p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem;
    margin: 0;
}

.cost-breakdown strong {
    color: #ff6600;
}

/* Total cost display styling */
.total-cost-display {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    min-height: 50px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}

.total-cost-display.calculated {
    color: #ff6600;
    font-weight: 700;
    font-size: 1.4rem;
}

/* Mobile responsiveness for apply page */
@media (max-width: 768px) {
    .back-btn-simple {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .apply-container {
        padding-top: 100px;
    }
    
    .back-button-center {
        margin-bottom: 30px;
    }
    
    .apply-page .contact-form-container {
        padding: 30px 20px;
        margin: 0 15px;
    }
}

@media (max-width: 480px) {
    .back-btn-simple {
        padding: 8px 12px;
        font-size: 13px;
        gap: 6px;
    }
    
    .back-btn-simple svg {
        width: 16px;
        height: 16px;
    }
}

/* Mobile-only paragraph center alignment */
@media (max-width: 768px) {
    p {
        text-align: center !important;
    }
    
    /* Center the US training camp heading and apply button on mobile */
    .detail-info h3 {
        text-align: center !important;
    }
    
    .top-apply-cta {
        text-align: center !important;
    }
    
    /* Center section headers on mobile */
    .section-header {
        text-align: center !important;
    }
    
    /* Center facility features on mobile */
    .facility-feature h6,
    .facility-feature p {
        text-align: center !important;
    }
    
    /* Center package titles and reorganize price layout on mobile */
    .package-header {
        text-align: center !important;
        padding-bottom: 1rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #333;
    }
    
    .package-title {
        padding-right: 0 !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    .package-price {
        position: static !important;
        display: block !important;
        text-align: center !important;
        margin-top: 0.5rem !important;
        font-size: 1.3rem !important;
    }
    
    /* Keep additional information section left-aligned on mobile */
    .info-item p {
        text-align: left !important;
    }
}

/* Track Reservation Styles */
.rider-section {
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.05);
}

.rider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rider-header h4 {
    color: white;
    margin: 0;
    font-size: 1.1em;
}

.remove-rider-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.remove-rider-btn:hover {
    background-color: #c82333;
}

.form-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff6b35, #f8552e);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-register:hover {
    background: linear-gradient(135deg, #ff824f, #ff5e2b);
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(255, 107, 53, 0.45);
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* Australian date input styling */
input[type="text"][pattern*="DD/MM/YYYY"],
input[placeholder="DD/MM/YYYY"] {
    font-family: 'Roboto Condensed', monospace;
    letter-spacing: 0.5px;
}

input[type="text"][pattern*="DD/MM/YYYY"]:invalid,
input[placeholder="DD/MM/YYYY"]:invalid {
    border-color: #ff6b35;
    box-shadow: 0 0 5px rgba(255, 107, 53, 0.3);
}

input[type="text"][pattern*="DD/MM/YYYY"]:valid,
input[placeholder="DD/MM/YYYY"]:valid {
    border-color: #28a745;
}

/* Success Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    text-align: center;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
}

.modal-header p {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-body {
    margin-top: 1.5rem;
    text-align: left;
    color: #d9d9d9;
}

.calendar-action-intro {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #f0f0f0;
    font-weight: 600;
}

.calendar-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-action-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.calendar-action-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.calendar-action-meta {
    font-size: 0.9rem;
    color: #cccccc;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.calendar-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.btn-calendar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #ffffff;
}

.btn-calendar.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-calendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

.btn-calendar.secondary:hover {
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.15);
}

.calendar-action-note {
    font-size: 0.85rem;
    color: #ffcf99;
    line-height: 1.5;
}

.modal-actions {
    margin-top: 2rem;
}

.btn-home {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
    background: linear-gradient(135deg, #e55a2b 0%, #d44820 100%);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Payment Method Selector Styles */
.payment-method-selector {
    margin: 20px 0;
}

.payment-method-selector h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.payment-methods {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-method-btn {
    flex: 1;
    padding: 12px 8px;
    border: 2px solid #555;
    background: #2a2a2a;
    color: #ccc;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
    font-weight: 500;
}

.payment-method-btn:hover:not(:disabled) {
    border-color: #ff6600;
    background: rgba(255, 102, 0, 0.1);
    color: #ff6600;
}

.payment-method-btn.active {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    color: white !important;
}

.payment-method-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payment-method-btn svg {
    flex-shrink: 0;
}

/* Stripe Elements Styling */
#payment-element,
#apple-pay-button,
#afterpay-element {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #555;
}

.payment-element-container {
    margin: 20px 0;
    min-height: 60px;
}

#apple-pay-button {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 56px;
}

/* Payment method container transitions */
#card-element-container,
#apple-pay-container,
#afterpay-container {
    transition: opacity 0.3s ease;
}

/* Mobile responsive for payment methods */
@media (max-width: 480px) {
    .payment-methods {
        flex-direction: column;
        gap: 8px;
    }
    
    .payment-method-btn {
        padding: 14px 12px;
        font-size: 15px;
    }
    
    .payment-method-selector h4 {
        font-size: 1rem;
    }
}

/* Modal responsive styles */
@media (max-width: 480px) {
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .btn-home {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

