/* Blue Wolves Racing Team Template Styles */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #4cc9f0;
    --medium-blue: #0050d5;
    --dark-blue: #0504aa;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, 
        rgba(76, 201, 240, 0.1) 0%, 
        rgba(0, 80, 213, 0.1) 35%,
        rgba(255, 255, 255, 0.95) 35%,
        rgba(255, 255, 255, 0.95) 65%,
        rgba(0, 80, 213, 0.1) 65%,
        rgba(5, 4, 170, 0.1) 100%);
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

h1 {
    color: var(--dark-blue);
}

h2 {
    color: var(--medium-blue);
}

h3 {
    color: var(--primary-blue);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Racing Background Animation */
.racing-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, 
        rgba(76, 201, 240, 0.05) 0%, 
        rgba(0, 80, 213, 0.05) 50%, 
        rgba(5, 4, 170, 0.05) 100%);
    overflow: hidden;
}

.racing-wheel {
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url('../images/wheel.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    animation: rotate 12s linear infinite;
}

.wheel-1 {
    top: 20%;
    left: -30px;
    animation-duration: 9s;
    animation-delay: 0s;
}

.wheel-2 {
    top: 60%;
    right: -30px;
    animation-duration: 10s;
    animation-delay: 1s;
}

.wheel-3 {
    top: 80%;
    left: 50%;
    animation-duration: 11s;
    animation-delay: 2s;
}

@keyframes rotate {
    from { transform: rotate(0deg) translateX(300px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(300px) rotate(360deg); }
}

/* Header Styles */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 70px;
    height: 70px;
    opacity: 0; /* 👍 This prevents the logo from flashing on load */
    visibility: hidden; /* Add this to prevent any rendering */
}

/* Ensure logo is visible on return visits immediately */
.not-first-visit .logo {
    opacity: 1 !important;
    visibility: visible !important;
}

.brand-text,
#stem-team {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.brand-text.visible,
#stem-team.visible {
    opacity: 1;
}

/* ✅ On return visits: override BEFORE paint */
.not-first-visit .brand-text,
.not-first-visit #stem-team,
.not-first-visit .national-champions {
    opacity: 1 !important;
    transition: none !important;
}

/* Initial state for national champions text */
.national-champions {
    opacity: 1;
    transform: translateY(0);
}

/* Hide national champions on first visit until animated */
.brand-text:not(.visible) .national-champions {
    opacity: 0;
    transform: translateY(10px);
}

.brand-text span {
    font-size: 0.9rem;
    color: var(--medium-blue);
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-text h1 {
    font-size: 1.95rem;
    font-weight: 900;
    color: var(--dark-blue);
    margin: 0;
    font-family: 'Orbitron', monospace;
    letter-spacing: 1px;
}

/* Span letter animation inside h1 */
.brand-text h1 span {
    all: unset;
    font: inherit;
    color: inherit;
    letter-spacing: inherit;
    display: inline;
    opacity: 0;
    transition: opacity 0.15s ease-in;
}

.brand-text h1.typing::after {
    content: '|';
    animation: blink 1s step-start infinite;
    color: inherit;
    margin-left: 2px;
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* Updated #stem-team styles with proper German Flag alignment */
#stem-team {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start; /* Changed from center to flex-start for top alignment */
    gap: 8px;
    text-shadow: 0 2px 4px rgba(76, 201, 240, 0.75);
}

/* German Flag - positioned inline with proper top alignment */
#stem-team::before {
    content: '';
    width: 48px;
    height: 32px;
    background: 
        linear-gradient(to bottom, 
            #000000 0%, #000000 33.33%,
            #DD0000 33.33%, #DD0000 66.66%,
            #FFCE00 66.66%, #FFCE00 100%
        );
    border-radius: 3px;
    flex-shrink: 0;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.2),
        0 2px 6px rgba(76, 201, 240, 0.25);
    transform: skewX(-15deg);
    margin-top: 1px; /* Add 1px margin to position flag 1 pixel below the very top */
}

/* Container for the text content */
.stem-text-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
    justify-content: flex-start; /* Ensure top alignment */
}

/* Main STEM RACING TEAM text */
.stem-main-text {
    font-size: 0.9rem;
    color: var(--medium-blue);
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.2;
}

/* National Champions text */
.national-champions {
    font-size: 0.75rem;
    color: var(--dark-blue);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(76, 201, 240, 0.75);
    background: linear-gradient(135deg, var(--dark-blue), var(--medium-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Alternative layout with flag inline */
#stem-team.inline-flag {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

#stem-team.inline-flag::before {
    position: static;
    transform: skewX(-15deg);
}

#stem-team.inline-flag .stem-text-container {
    display: flex;
    flex-direction: row;
    gap: 2px;
}

/* Larger flag version */
#stem-team.large::before {
    width: 40px;
    height: 25px;
}

.published {
    font-size: 0.5rem;
    color: var(--medium-blue);
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.visually-hidden {
   margin: 10px;
   text-transform: lowercase;
   color: red;
   display:none;
}

.article-info {
   margin: 10px;
}

.article-info-term {
    font-size: 0.5rem;
    color: var(--medium-blue);
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    text-decoration: none;
    color: var(--dark-blue);
    font-weight: 600;
    font-family: 'Orbitron', sans-serif;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.main-navigation a:hover {
    color: var(--primary-blue);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-blue);
    transition: var(--transition);
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-blue);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue), var(--medium-blue));
    color: var(--white);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/racing-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

/* Main Content */
.site-main {
    padding: 3rem 0;
    min-height: 60vh;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.main-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.sidebar {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Footer */
.site-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    display: inline-block;
    transition: var(--transition);
}

.social-links img {
    width: 32px;
    height: 32px;
    filter: brightness(1) invert(0);
    transition: var(--transition);
}

.social-links a:hover img {
    filter: brightness(1) invert(0) sepia(0) saturate(0) hue-rotate(45deg);
    transform: scale(1.25);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* ========================================
   ARTICLE FIGURE STYLES
   ======================================== */

/* Article Figure Container */
.article-figure {
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
    padding: 0;
    display: block;
    opacity: 0;
    animation: fadeInSlow 5s ease-in-out forwards;
}

/* Article Figure Image */
.article-figure img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 3px solid var(--primary-blue);
    box-shadow: 
        0 4px 20px rgba(76, 201, 240, 0.2),
        0 0 15px rgba(76, 201, 240, 0.1);
    transition: all 0.3s ease;
}

/* Optional hover effect for enhanced interactivity */
.article-figure img:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 30px rgba(76, 201, 240, 0.3),
        0 0 25px rgba(76, 201, 240, 0.15);
    border-color: var(--medium-blue);
}

/* Article Figure Caption */
.article-figure figcaption {
    margin-top: 0.75rem;
    padding: 0 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--medium-blue);
    font-style: italic;
    line-height: 1.4;
    opacity: 0;
    animation: fadeInCaption 5s ease-in-out 2.5s forwards;
}

/* Fade-in Animation for Figure */
@keyframes fadeInSlow {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Fade-in Animation for Caption (delayed) */
@keyframes fadeInCaption {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Alternative centered version for smaller images */
.article-figure.centered {
    max-width: 80%;
    text-align: center;
}


/* Alternative full-width version for hero images */
.article-figure.full-width {
    margin: 2rem -2rem;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .article-figure {
        margin: 1.5rem auto;
    }
    
    .article-figure img {
        border-radius: 8px;
        border-width: 2px;
    }
    
    .article-figure figcaption {
        font-size: 0.85rem;
        margin-top: 0.5rem;
    }

    .article-figure.full-width {
        margin: 1.5rem -1rem;
    }
    
    #stem-team::before {
        width: 36px;
        height: 28px;
        margin-top: 1px; /* Maintain 1px offset on tablet */
    }
    
    .stem-main-text {
        font-size: 0.8rem;
    }
    
    .national-champions {
        font-size: 0.65rem;
    }

    .brand-text h1 {
        font-size: 1.65rem;
        font-family: 'Orbitron', monospace;
    }

    .header-content {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 10px;
        padding-top: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .article-figure {
        margin: 1rem auto;
    }
    
    .article-figure img {
        border-radius: 6px;
    }
    
    .article-figure figcaption {
        font-size: 0.8rem;
        padding: 0 0.25rem;
    }

    .article-figure.full-width {
        margin: 1rem 0;
    }

    #stem-team {
        flex-direction: row; /* Stack horizontally on mobile */
        align-items: center;
        gap: 4px;
    }
    
    #stem-team::before {
        width: 36px;
        height: 24px;
	border-radius: 2px;
        margin-top: 0; /* Remove margin on mobile when stacked */
    }
    
    .stem-text-container {
        align-items: flex-start;
    }
    
    .stem-main-text {
        font-size: 0.75rem;
        text-align: left;
    }
    
    .national-champions {
        font-size: 0.6rem;
        text-align: left;
    }

    .brand-text h1 {
        font-size: 1.55rem;
        font-family: 'Orbitron', monospace;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .main-content,
    .sidebar {
        padding: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Component Enhancements */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--medium-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 201, 240, 0.4);
}

.btn-secondary {
    background: var(--medium-blue);
}

.btn-secondary:hover {
    background: var(--dark-blue);
}

/* Logo Roll-in on Load */
@keyframes rollIn {
    0% {
        transform: translateX(-150px) rotate(-720deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1 !important;
    }
}

/* Logo Spin on Scroll (eased) */
@keyframes easedSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo.animated-roll-in {
    animation: rollIn 1s ease-out forwards;
}

.logo.eased-spin {
    animation: easedSpin 0.8s ease-in-out;
}

@keyframes logoNod {
    0%   { transform: rotate(0deg); }
    30%  { transform: rotate(10deg); }
    60%  { transform: rotate(-5deg); }
    100% { transform: rotate(0deg); }
}

.logo.nod {
    animation: logoNod 0.6s ease-out;
}

/* ========================================
   RACING CONTACT FORM STYLES
   ======================================== */

/* Racing Contact Form Container */
.racing-contact-form {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(248, 249, 250, 0.95) 100%);
    border-radius: 15px;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(76, 201, 240, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    margin: 2rem 0;
}

/* Contact Form Header */
.contact-form-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--medium-blue));
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-form-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.05) 10px,
            rgba(255, 255, 255, 0.05) 20px
        );
    animation: race-pattern 20s linear infinite;
}

@keyframes race-pattern {
    0% { transform: translateX(-20px) translateY(-20px); }
    100% { transform: translateX(20px) translateY(20px); }
}

.racing-stripe {
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--white) 20%, 
        var(--white) 80%, 
        transparent 100%);
    margin: 1rem auto;
    width: 100px;
    position: relative;
    z-index: 1;
}

.racing-stripe.mini {
    width: 50px;
    height: 2px;
    margin: 0.5rem auto;
}

.contact-title {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.contact-icon {
    font-size: 1.5rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.contact-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Form Container */
.form-container {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.racing-fieldset {
    border: none;
    margin: 0 0 2rem 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.racing-legend {
    border: none;
    padding: 0 0 1rem 0;
    margin: 0 0 1rem 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legend-text {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: var(--medium-blue);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.legend-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-blue) 0%, 
        transparent 100%);
}

.fields-grid {
    display: grid;
    gap: 1rem;
}

.racing-field-wrapper {
    position: relative;
}

.racing-field-wrapper .control-group {
    margin-bottom: 0;
}

.racing-field-wrapper .control-label {
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.racing-field-wrapper .controls {
    position: relative;
}

.racing-field-wrapper input[type="text"],
.racing-field-wrapper input[type="email"],
.racing-field-wrapper input[type="tel"],
.racing-field-wrapper textarea,
.racing-field-wrapper select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.racing-field-wrapper input:focus,
.racing-field-wrapper textarea:focus,
.racing-field-wrapper select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 
        0 0 0 3px rgba(76, 201, 240, 0.2),
        0 2px 10px rgba(76, 201, 240, 0.1);
    transform: translateY(-1px);
}

.racing-field-wrapper textarea {
    min-height: 120px;
    resize: vertical;
}

.field-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--medium-blue));
    transition: width 0.3s ease;
}

.racing-field-wrapper input:focus + .field-accent,
.racing-field-wrapper textarea:focus + .field-accent {
    width: 100%;
}

/* Captcha Section */
.captcha-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(76, 201, 240, 0.05);
    border-radius: 10px;
    border: 1px dashed var(--primary-blue);
    text-align: center;
}

/* Submit Section */
.submit-section {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(76, 201, 240, 0.05) 0%, 
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.racing-checkered-flag {
    width: 40px;
    height: 40px;
    background: 
        repeating-conic-gradient(
            from 0deg,
            #000 0deg 90deg,
            #fff 90deg 180deg
        );
    background-size: 10px 10px;
    border-radius: 50%;
    margin: 0 auto 1rem auto;
    animation: spin 3s linear infinite;
}

.btn-racing {
    background: linear-gradient(135deg, var(--primary-blue), var(--medium-blue));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(76, 201, 240, 0.3),
        0 0 20px rgba(76, 201, 240, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    justify-content: center;
}

.btn-racing:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(76, 201, 240, 0.4),
        0 0 30px rgba(76, 201, 240, 0.2);
    background: linear-gradient(135deg, var(--medium-blue), var(--dark-blue));
}

.btn-racing:active {
    transform: translateY(-1px);
}

.btn-text {
    position: relative;
    z-index: 2;
}

.btn-icon {
    font-size: 1.2rem;
    animation: rocket 2s ease-in-out infinite;
}

@keyframes rocket {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

.btn-racing-stripe {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.btn-racing:hover .btn-racing-stripe {
    left: 100%;
}

/* Racing Elements */
.form-racing-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.racing-wheel {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 50%;
    opacity: 0.1;
}

.wheel-form-1 {
    top: 20%;
    right: 10px;
    animation: float 4s ease-in-out infinite;
}

.wheel-form-2 {
    bottom: 30%;
    left: 10px;
    animation: float 4s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.speed-lines {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.speed-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--primary-blue) 0%, 
        transparent 100%);
    margin: 3px 0;
    opacity: 0.3;
    animation: speed 2s ease-in-out infinite;
}

.speed-line.line-2 {
    animation-delay: 0.2s;
    width: 25px;
}

.speed-line.line-3 {
    animation-delay: 0.4s;
    width: 20px;
}

@keyframes speed {
    0%, 100% { opacity: 0.3; transform: translateX(0); }
    50% { opacity: 0.8; transform: translateX(-5px); }
}

/* Contact Form Responsive Design */
@media (max-width: 1024px) {
    .contact-title {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .racing-fieldset {
        padding: 1rem;
    }
    
    .btn-racing {
        min-width: auto;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .fields-grid {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .contact-form-header {
        padding: 1.5rem 1rem;
    }
    
    .contact-title {
        font-size: 1.3rem;
    }
    
    .contact-subtitle {
        font-size: 1rem;
    }
}

/* Form Validation Enhancements */
.racing-field-wrapper .invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
}

.racing-field-wrapper .valid {
    border-color: #27ae60 !important;
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.2) !important;
}

/* Loading State */
.btn-racing.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-racing.loading .btn-icon {
    animation: spin 1s linear infinite;
}