/* Modern React-like Design - MA FunRun 2025 Theme */
:root {
    --primary-green: #2d8659;
    --primary-orange: #ff6b35;
    --dark-green: #1f5d3f;
    --light-green: #f0f9f4;
    --light-orange: #fff5f2;
    --text-dark: #1a1a1a;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --border-focus: #2d8659;
    --white: #ffffff;
    --error: #ef4444;
    --success: #10b981;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
    background-color: #ffffff;
}

/* Header Styles */
.header {
    background-color: var(--white);
    padding: 80px 10px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    width: 100%;
    min-height: 300px;
    display: flex;
    overflow-x: hidden;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 15px;
    box-sizing: border-box;
    max-width: 100%;
}

.logo-box {
    background-color: var(--white);
    border-radius: 16px;
    padding: 40px 60px;
    display: inline-block;
    position: relative;
    animation: logoBoxGlow 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3),
                0 0 60px rgba(0, 255, 170, 0.2),
                0 0 90px rgba(0, 232, 192, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 255, 136, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.logo-box:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4),
                0 0 80px rgba(0, 255, 170, 0.3),
                0 0 120px rgba(0, 232, 192, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
}

.logo-image {
    max-height: 400px;
    height: auto;
    width: 100%;
    max-width: 100%;
    min-width: 900px;
    object-fit: contain;
    display: block;
    animation: logoFloat 3s ease-in-out infinite;
    transition: transform 0.3s ease;
    padding: 0;
    position: relative;
}

/* Make logo responsive on mobile */
@media (max-width: 768px) {
    .header {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .header-content {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .logo-section {
        width: 100% !important;
        padding: 0 16px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .logo-box {
        padding: 30px 40px !important;
        max-width: 95% !important;
        width: 95% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        display: block !important;
        text-align: center !important;
    }
    
    .logo-image {
        min-width: 0 !important;
        max-width: 100% !important;
        width: auto !important;
        max-height: 200px !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 20px 10px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        overflow-x: hidden !important;
    }
    
    .header-content {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .logo-section {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .logo-box {
        padding: 25px 30px !important;
        width: 95% !important;
        max-width: 95% !important;
        margin: 0 auto !important;
        display: block !important;
        text-align: center !important;
    }
    
    .logo-image {
        max-height: 150px !important;
        min-width: 0 !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

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

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes logoPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.98;
    }
}

@keyframes logoBoxGlow {
    0% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.3),
                    0 0 60px rgba(0, 255, 170, 0.2),
                    0 0 90px rgba(0, 232, 192, 0.1);
        border-color: rgba(0, 255, 136, 0.2);
    }
    25% {
        box-shadow: 0 0 35px rgba(0, 255, 170, 0.4),
                    0 0 70px rgba(0, 232, 192, 0.3),
                    0 0 105px rgba(0, 212, 184, 0.2);
        border-color: rgba(0, 255, 170, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 232, 192, 0.3),
                    0 0 60px rgba(0, 212, 184, 0.2),
                    0 0 90px rgba(0, 230, 217, 0.1);
        border-color: rgba(0, 232, 192, 0.2);
    }
    75% {
        box-shadow: 0 0 35px rgba(0, 212, 184, 0.4),
                    0 0 70px rgba(0, 230, 217, 0.3),
                    0 0 105px rgba(0, 240, 232, 0.2);
        border-color: rgba(0, 212, 184, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.3),
                    0 0 60px rgba(0, 255, 170, 0.2),
                    0 0 90px rgba(0, 232, 192, 0.1);
        border-color: rgba(0, 255, 136, 0.2);
    }
}

/* Form Title Section */
.form-title-section {
    text-align: center;
    margin-bottom: 48px;
    padding: 0 20px 32px 20px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.form-title-section::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-orange) 100%);
}

.form-title-section .form-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.form-subtitle {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
    letter-spacing: -0.5px;
}

.logo-year {
    color: var(--primary-orange);
    font-size: 20px;
    font-weight: 600;
}

.subtitle {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Affiliation Styles */
.affiliation-container {
    margin-top: 20px;
}

.affiliation-category {
    margin-bottom: 20px;
}

.category-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.affiliation-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 20px;
}

/* Race Category Images */
.race-image-container {
    margin: 24px 0;
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.race-image {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInImage 0.5s ease-in;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* QR Code Images */
.qr-code-container {
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.qr-code-item {
    text-align: center;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    animation: fadeInImage 0.5s ease-in;
    max-width: 400px;
    width: 100%;
}

.qr-code-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-code-image {
    max-width: 100%;
    width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--white);
    padding: 10px;
}

/* Form Styles */
.form-container {
    background-color: var(--white);
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 40px;
}

/* Step Indicators */
.step-indicators {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    margin-top: 20px;
    padding: 24px 32px 20px 32px;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Background line connecting all steps - between circles only */
.step-indicators::before {
    content: '';
    position: absolute;
    top: 44px;
    left: calc(10% + 24px);
    right: calc(10% + 24px);
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    z-index: 0;
    transition: all 0.3s ease;
}

/* Progress line - connects between circles, not through them */
.step-indicators::after {
    content: '';
    position: absolute;
    top: 44px;
    left: calc(10% + 24px);
    height: 4px;
    background: linear-gradient(to right, 
        #00FF88 0%, 
        #00FF88 20%,
        #00FFAA 20%, 
        #00FFAA 40%,
        #00E8C0 40%, 
        #00E8C0 60%,
        #00D4B8 60%, 
        #00D4B8 80%,
        #00E6D9 80%, 
        #00E6D9 100%);
    border-radius: 2px;
    z-index: 1;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: var(--progress-width, 0%);
    box-shadow: 0 2px 8px rgba(0, 255, 136, 0.3);
}

.step-item {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 150px;
    visibility: visible !important;
    opacity: 1 !important;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 12px;
    position: relative;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 3;
    background-clip: padding-box;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Green Palette for Steps - Stronger, More Vibrant Colors */
.step-item[data-step="1"] .step-number {
    background: linear-gradient(135deg, #00FF88 0%, #00E677 100%); /* Bright Kelly Green - 8C */
    border-color: #00FF88;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.4);
}

.step-item[data-step="2"] .step-number {
    background: linear-gradient(135deg, #00FFAA 0%, #00E699 100%); /* Bright Green - 9C */
    border-color: #00FFAA;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 255, 170, 0.4);
}

.step-item[data-step="3"] .step-number {
    background: linear-gradient(135deg, #00E8C0 0%, #00D4AC 100%); /* Seafoam - 10C */
    border-color: #00E8C0;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 232, 192, 0.4);
}

.step-item[data-step="4"] .step-number {
    background: linear-gradient(135deg, #00D4B8 0%, #00C0A4 100%); /* Medium Turquoise */
    border-color: #00D4B8;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 212, 184, 0.4);
}

.step-item[data-step="5"] .step-number {
    background: linear-gradient(135deg, #00E6D9 0%, #00D2C5 100%); /* Soft Turquoise - 11C */
    border-color: #00E6D9;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 230, 217, 0.4);
}

.step-item[data-step="6"] .step-number {
    background: linear-gradient(135deg, #00F0E8 0%, #00DCD4 100%); /* Light Turquoise */
    border-color: #00F0E8;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 240, 232, 0.4);
}

/* Inactive state - lighter opacity */
.step-item:not(.active):not(.completed) .step-number {
    opacity: 0.5;
    transform: scale(0.9);
}

.step-label {
    font-size: 13px;
    color: var(--text-light);
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-item.active .step-number {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(0, 255, 136, 0.2), 0 8px 20px rgba(0, 255, 136, 0.4);
    font-weight: 800;
    z-index: 10;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 6px rgba(0, 255, 136, 0.2), 0 8px 20px rgba(0, 255, 136, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(0, 255, 136, 0.15), 0 8px 20px rgba(0, 255, 136, 0.5);
    }
}

.step-item.completed .step-number {
    opacity: 1;
    transform: scale(1.05);
    position: relative;
}

.step-item.completed .step-number::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.step-item.completed .step-number::before {
    content: '✓';
    position: absolute;
    top: 2px;
    left: 2px;
    background: rgba(255, 255, 255, 1);
    color: #10b981;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 5;
    animation: checkmarkAppear 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

@keyframes checkmarkAppear {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.step-item.completed .step-number::after {
    content: '✓';
    font-size: 18px;
}

.step-item.active .step-label {
    color: var(--text-dark);
    font-weight: 700;
    transform: scale(1.05);
}

.step-item.completed .step-label {
    color: var(--text-dark);
    font-weight: 600;
}

/* Step-specific label colors matching the circles - Stronger colors */
.step-item[data-step="1"].active .step-label,
.step-item[data-step="1"].completed .step-label {
    color: #00CC6A;
}

.step-item[data-step="2"].active .step-label,
.step-item[data-step="2"].completed .step-label {
    color: #00CC88;
}

.step-item[data-step="3"].active .step-label,
.step-item[data-step="3"].completed .step-label {
    color: #00B89A;
}

.step-item[data-step="4"].active .step-label,
.step-item[data-step="4"].completed .step-label {
    color: #00A68C;
}

.step-item[data-step="5"].active .step-label,
.step-item[data-step="5"].completed .step-label {
    color: #00B8A8;
}

.step-item[data-step="6"].active .step-label,
.step-item[data-step="6"].completed .step-label {
    color: #00C8B8;
}

/* Step Panels */
.step-panel {
    display: none;
}

.step-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 40px;
    padding: 0 32px 32px 32px;
    gap: 16px;
}

.step-navigation .btn {
    min-width: 120px;
}

#prevBtn {
    margin-right: auto;
}

/* Ensure buttons are responsive */
@media (max-width: 768px) {
    .step-navigation .btn {
        min-width: 0;
    }
}

.step-navigation {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

/* Responsive Step Indicators */
@media (max-width: 768px) {
    .step-indicators {
        padding: 20px 12px 16px 12px;
        margin-bottom: 20px;
        margin-top: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }
    
    /* Keep gray background line, remove progress line on mobile */
    .step-indicators::before {
        display: block !important;
        height: 2px;
        top: 38px;
        left: calc(12px + 18px);
        right: calc(12px + 18px);
        z-index: 0 !important;
        background-color: #e5e7eb !important;
    }
    
    .step-indicators::after {
        display: none !important;
    }
    
    .step-item {
        min-width: 60px;
        flex: 0 0 auto;
        margin: 0 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        z-index: 2 !important;
        position: relative;
    }
    
    .step-label {
        font-size: 10px;
        margin-top: 8px;
        line-height: 1.3;
        padding: 0 2px;
        word-break: break-word;
        max-width: 70px;
        text-align: center;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 13px;
        border-width: 2px;
        margin: 0;
        position: relative;
        z-index: 3 !important;
    }
    
    .step-item.active .step-number {
        transform: scale(1.1);
    }
    
    .step-item.completed .step-number::before {
        width: 16px;
        height: 16px;
        font-size: 11px;
        top: -3px;
        right: -3px;
    }
    
    .step-navigation {
        padding: 0 16px 20px 16px;
        flex-direction: row;
        justify-content: flex-end;
        gap: 12px;
        position: sticky;
        bottom: 0;
        background: var(--white);
        border-top: 1px solid var(--border-color);
        margin-top: 20px;
        padding-top: 16px;
        z-index: 10;
    }
    
    #prevBtn {
        margin-right: auto;
    }
    
    .step-navigation .btn {
        min-width: 100px;
        min-height: 48px;
        font-size: 16px;
        padding: 14px 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    
    #nextBtn,
    #submitBtn {
        margin-left: auto;
    }
}

/* Legacy form-title class - kept for compatibility */
.form-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.5px;
}

.form-section {
    margin-bottom: 32px;
    padding: 0;
    border: none;
    background-color: var(--white);
    padding: 32px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.form-section:hover {
    border-color: #d1d5db;
    box-shadow: var(--shadow-md);
}

.form-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 0;
}

/* Modern Input Styles */
label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
    letter-spacing: -0.2px;
}

input[type="text"],
input[type="date"],
input[type="number"],
input[type="tel"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    font-family: inherit;
    background-color: var(--white);
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
    background-color: var(--white);
}

input.error,
textarea.error,
select.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.radio-group.error,
.checkbox-item.error {
    border-color: var(--error);
}

input:hover,
textarea:hover,
select:hover {
    border-color: #d1d5db;
}

textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Checkbox and Radio Styles */
.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.checkbox-item,
.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--white);
}

.checkbox-item:hover,
.radio-item:hover {
    border-color: var(--primary-green);
    background-color: var(--light-green);
}

.checkbox-item input[type="checkbox"]:checked + label,
.radio-item input[type="radio"]:checked + label {
    color: var(--primary-green);
    font-weight: 600;
}

.checkbox-item.active,
.radio-item.active {
    border-color: var(--primary-green);
    background-color: var(--light-green);
}

.checkbox-item input[type="checkbox"]:checked ~ label,
.radio-item input[type="radio"]:checked ~ label {
    color: var(--primary-green);
    font-weight: 600;
}

.checkbox-item input[type="checkbox"],
.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-green);
    margin: 0;
}

.checkbox-item label,
.radio-item label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
}

input[type="radio"]:checked ~ .radio-item,
input[type="checkbox"]:checked ~ .checkbox-item {
    border-color: var(--primary-green);
    background-color: var(--light-green);
}

/* File Upload */
.file-upload {
    position: relative;
    display: block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
    color: var(--text-light);
    font-size: 14px;
    min-height: 140px;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.file-upload-label::before {
    content: '📎';
    font-size: 40px;
    opacity: 0.6;
    display: block;
}

.file-upload-label span {
    display: block;
}

.file-upload-label:hover {
    border-color: var(--primary-green);
    background-color: var(--light-green);
    color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.file-upload-label.has-file {
    border-color: var(--primary-green);
    background-color: var(--light-green);
    color: var(--primary-green);
    border-style: solid;
}

.file-upload-label.has-file::before {
    content: '✓';
    color: var(--success);
    font-size: 32px;
    opacity: 1;
}

/* Button Styles */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    letter-spacing: -0.2px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-icon {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--dark-green);
}

.btn-secondary {
    background-color: var(--primary-orange);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-weight: 500;
}

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

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    height: 28px;
    transition: all 0.2s ease;
}

.btn-block {
    width: 100%;
    padding: 16px 32px;
    font-size: 16px;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

/* Admin Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px;
    background-color: #f9fafb;
    min-height: 100vh;
}

.admin-header {
    background-color: var(--white);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-logo-container {
    display: flex;
    align-items: center;
}

.admin-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.admin-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-green);
    letter-spacing: -0.3px;
    margin: 0;
}

.admin-subtitle {
    color: var(--text-light);
    font-size: 13px;
    margin: 0;
}

.admin-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-nav a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 13px;
    font-weight: 500;
}

.admin-nav a:hover,
.admin-nav a.active {
    background-color: var(--light-green);
    color: var(--primary-green);
}

/* Statistics Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background-color: var(--white);
    padding: 14px 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-total {
    color: var(--primary-green);
}

.stat-pending {
    color: var(--primary-orange);
}

.stat-approved {
    color: var(--success);
}

.stat-rejected {
    color: var(--error);
}

.stat-fee {
    color: var(--primary-green);
    font-size: 20px;
}

.stat-pending-fee {
    color: var(--primary-orange);
    font-size: 20px;
}

.stat-label {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Table Styles */
.table-container {
    background-color: var(--white);
    padding: 16px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

.table-title {
    margin: 0;
    color: var(--primary-green);
    font-size: 16px;
    font-weight: 600;
}

.table-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-form {
    margin-bottom: 12px;
}

.search-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-input,
.filter-select,
.filter-date,
.filter-number {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    min-width: 120px;
    transition: all 0.2s ease;
}

.filter-input:focus,
.filter-select:focus,
.filter-date:focus,
.filter-number:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(45, 134, 89, 0.1);
}

.filter-input {
    flex: 1;
    min-width: 180px;
}

.filter-select {
    min-width: 130px;
}

.filter-date,
.filter-number {
    min-width: 140px;
}

.filter-number {
    max-width: 150px;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

thead {
    background-color: #f9fafb;
}

th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
}

td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
    font-size: 13px;
    white-space: nowrap;
}

.action-cell {
    white-space: nowrap;
}

tbody tr {
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #f9fafb;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.action-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-right: 6px;
    display: inline-block;
}

.view-link:hover {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.approve-link:hover {
    background-color: #d1fae5;
    color: var(--success);
}

.reject-link:hover {
    background-color: #fee2e2;
    color: var(--error);
}

/* View Registration Styles */
.view-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 24px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.view-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.view-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.view-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--light-green);
}

.view-field {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.view-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

.view-row .view-field {
    margin-bottom: 0;
}

.view-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}

.view-value {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    padding: 0;
    line-height: 1.4;
    margin-top: 0;
}

.view-value a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.view-value a:hover {
    color: var(--dark-green);
    text-decoration: underline;
}

.view-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .view-container {
        padding: 16px;
        margin: 0 16px;
    }
    
    .view-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .view-actions {
        flex-direction: column;
    }
    
    .view-actions .btn {
        width: 100%;
    }
}

.status-pending {
    background-color: #fef3c7;
    color: #92400e;
}

.status-approved {
    background-color: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Login Form */
.login-container {
    max-width: 420px;
    margin: 80px auto;
    background-color: var(--white);
    padding: 48px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

.login-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 32px;
    letter-spacing: -0.5px;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.pagination-info {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 12px;
    transition: all 0.2s ease;
    min-width: 32px;
    text-align: center;
    display: inline-block;
}

.pagination span:not(.active) {
    border: none;
    color: var(--text-light);
    padding: 6px 4px;
}

.pagination a:hover {
    background-color: var(--light-green);
    border-color: var(--primary-green);
    color: var(--primary-green);
}

.pagination .active {
    background-color: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* Waiver Section */
.waiver-text {
    font-style: italic;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9fafb;
    border-left: 4px solid var(--primary-green);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dark);
}

.minor-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.minor-title {
    font-weight: 600;
    font-style: italic;
    margin-bottom: 16px;
    color: var(--primary-green);
    font-size: 14px;
}

.minor-text {
    font-style: italic;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9fafb;
    border-left: 4px solid var(--primary-orange);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-dark);
}

.footer-text {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
}

.footer-text p {
    margin-bottom: 8px;
}

.footer-text .highlight {
    font-weight: 600;
}

/* Screen reader only - for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
    color: var(--primary-green);
    margin-top: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 0;
        margin: 0;
    }
    
    .form-section {
        padding: 20px 16px;
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .header {
        padding: 30px 15px;
        min-height: 180px;
        overflow-x: hidden;
        width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 0;
    }
    
    .header {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .header-content {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .logo-section {
        width: 100% !important;
        padding: 0 16px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .logo-box {
        padding: 30px 40px !important;
        max-width: 95% !important;
        width: 95% !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
        display: block !important;
        text-align: center !important;
    }
    
    .logo-image {
        max-height: 200px !important;
        width: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 !important;
        animation: logoFloat 3s ease-in-out infinite;
        margin: 0 auto !important;
        display: block !important;
    }
    
    .form-title-section {
        margin-bottom: 20px;
        padding-bottom: 16px;
        padding: 0 16px 16px 16px;
    }
    
    .form-title-section .form-title {
        font-size: 16px;
    }
    
    .form-subtitle {
        font-size: 11px;
    }
    
    /* Form Inputs - Mobile */
    input[type="text"],
    input[type="date"],
    input[type="number"],
    input[type="tel"],
    input[type="email"],
    textarea,
    select {
        padding: 14px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }

    /* iOS/Safari fix: date inputs can render shorter than other inputs */
    input[type="date"] {
        min-height: 48px;
        line-height: 1.2;
    }
    
    /* Radio and Checkbox - Mobile */
    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .radio-option,
    .checkbox-option {
        padding: 12px;
        border-radius: 8px;
    }
    
    /* File Upload - Mobile */
    input[type="file"] {
        padding: 12px;
        font-size: 14px;
    }
    
    .file-upload-label {
        padding: 16px;
        font-size: 14px;
    }
    
    /* Buttons - Mobile */
    .btn {
        padding: 14px 24px;
        font-size: 16px;
        width: 100%;
        min-height: 48px; /* Better touch target */
    }
    
    .btn-icon {
        font-size: 20px;
    }
    
    /* Step Panels - Mobile */
    .step-panel {
        padding: 20px 16px;
    }
    
    .section-title {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    /* Race Category Images - Mobile */
    .race-image {
        max-width: 100%;
        height: auto;
        margin: 16px 0;
    }
    
    /* QR Code Images - Mobile */
    .qr-code-image {
        max-width: 100%;
        height: auto;
        margin: 16px 0;
    }
    
    /* Admin Panel - Mobile */
    .admin-container {
        padding: 12px;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 12px 16px;
    }
    
    .admin-header-left {
        width: 100%;
    }
    
    .admin-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .admin-nav a {
        font-size: 12px;
        padding: 6px 10px;
        flex: 1;
        text-align: center;
        min-width: calc(50% - 3px);
    }
    
    .admin-title {
        font-size: 16px;
    }
    
    .admin-subtitle {
        font-size: 12px;
    }
    
    .admin-logo {
        max-height: 80px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-fee,
    .stat-pending-fee {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .table-container {
        padding: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .table-title {
        font-size: 14px;
    }
    
    .table-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .search-filter {
        gap: 10px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-input,
    .filter-select,
    .filter-date,
    .filter-number {
        width: 100%;
        min-width: 100%;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 10px 12px;
    }
    
    table {
        font-size: 12px;
        min-width: 800px; /* Force horizontal scroll on small screens */
    }
    
    th, td {
        padding: 8px 6px;
        font-size: 11px;
    }
    
    .action-cell {
        white-space: nowrap;
    }
    
    .action-link {
        font-size: 11px;
        padding: 4px 6px;
        margin-right: 4px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pagination-info {
        font-size: 11px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-fee {
        font-size: 18px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
    .table-container {
        padding: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .table-title {
        font-size: 16px;
    }
    
    .table-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    
    .table-actions .btn {
        width: 100%;
    }
    
    table {
        font-size: 12px;
        min-width: 600px; /* Allow horizontal scroll */
    }
    
    th, td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    
    .filter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-filter {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-input,
    .filter-select,
    .filter-date,
    .filter-number {
        width: 100%;
        min-width: auto;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    .btn-sm {
        padding: 10px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .container {
        padding: 16px;
        max-width: 100%;
    }
    
    /* Alert Messages - Mobile */
    .alert {
        padding: 14px 16px;
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    /* Pagination - Mobile */
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 12px;
        font-size: 14px;
        min-width: 40px;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .pagination-info {
        font-size: 13px;
        text-align: center;
    }
    
    /* Login Form - Mobile */
    .login-container {
        padding: 32px 24px;
        margin: 40px 16px;
        max-width: 100%;
    }
    
    .login-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    /* Additional Mobile Optimizations for Small Screens */
    @media (max-width: 480px) {
        .header {
            padding: 20px 10px;
            min-height: 150px;
        }
        
        .header {
            padding: 20px 10px !important;
            overflow-x: hidden !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            min-height: 150px !important;
        }
        
        .header-content {
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            width: 100% !important;
            text-align: center !important;
            margin: 0 auto !important;
            padding: 0 !important;
        }
        
        .logo-section {
            padding: 0 12px !important;
            display: flex !important;
            justify-content: center !important;
            align-items: center !important;
            width: 100% !important;
            text-align: center !important;
            margin: 0 auto !important;
        }
        
        .logo-box {
            padding: 25px 30px !important;
            width: 95% !important;
            max-width: 95% !important;
            margin: 0 auto !important;
            display: block !important;
            text-align: center !important;
        }
        
        .logo-image {
            max-height: 150px !important;
            min-width: 0 !important;
            width: auto !important;
            max-width: 100% !important;
            margin: 0 auto !important;
            display: block !important;
        }
        
        .form-section {
            padding: 16px 12px;
        }
        
        .step-indicators {
            padding: 16px 8px 12px 8px;
            margin-top: 12px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .step-item {
            min-width: 50px;
            flex: 0 0 auto;
            margin: 0 2px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .step-number {
            width: 32px;
            height: 32px;
            font-size: 12px;
            margin: 0 auto;
        }
        
        .step-label {
            font-size: 9px;
            margin-top: 6px;
            max-width: 60px;
            line-height: 1.2;
            text-align: center;
        }
        
        /* Keep gray background line, remove progress line on small mobile */
        .step-indicators::before {
            display: block !important;
            height: 2px;
            top: 32px;
            left: calc(8px + 16px);
            right: calc(8px + 16px);
            z-index: 0 !important;
            background-color: #e5e7eb !important;
        }
        
        .step-indicators::after {
            display: none !important;
        }
        
        .step-item {
            z-index: 2 !important;
        }
        
        .step-number {
            z-index: 3 !important;
        }
        
        .stats-grid {
            grid-template-columns: 1fr;
        }
        
        .btn {
            padding: 12px 20px;
            font-size: 15px;
            width: 100% !important;
            min-width: 0 !important;
        }
        
        .step-navigation {
            flex-direction: row;
            justify-content: flex-end;
        }
        
        #prevBtn {
            margin-right: auto;
        }
        
        .step-navigation .btn {
            min-width: 90px;
            min-height: 48px;
        }
        
        #nextBtn,
        #submitBtn {
            margin-left: auto;
        }
        
        input[type="text"],
        input[type="date"],
        input[type="number"],
        input[type="tel"],
        input[type="email"],
        textarea,
        select {
            padding: 12px 14px;
            font-size: 16px;
        }

        /* iOS/Safari fix: keep date input height consistent */
        input[type="date"] {
            min-height: 48px;
            line-height: 1.2;
        }
        
        .form-title-section {
            margin-bottom: 16px;
            padding-bottom: 12px;
            padding: 0 12px 12px 12px;
        }
        
        .form-title-section .form-title {
            font-size: 14px;
        }
        
        .form-subtitle {
            font-size: 10px;
        }
        
        .table-container {
            padding: 8px;
        }
        
        table {
            font-size: 11px;
        }
        
        /* Login Form - Mobile */
        .login-container {
            padding: 24px 16px;
            margin: 20px 16px;
        }
        
        .login-title {
            font-size: 24px;
            margin-bottom: 24px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            font-size: 14px;
            margin-bottom: 8px;
        }
        
        .form-group input {
            font-size: 16px; /* Prevents zoom on iOS */
            padding: 14px 16px;
        }
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Additional Mobile Styles for Admin Dashboard - Small Screens */
@media (max-width: 480px) {
    .admin-container {
        padding: 8px;
    }
    
    .admin-header {
        padding: 10px 12px;
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-header-left {
        width: 100%;
    }
    
    .admin-logo {
        max-height: 60px;
    }
    
    .admin-title {
        font-size: 14px;
    }
    
    .admin-subtitle {
        font-size: 11px;
    }
    
    .admin-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .admin-nav a {
        font-size: 11px;
        padding: 6px 8px;
        flex: 1;
        text-align: center;
        min-width: calc(50% - 3px);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stat-card {
        padding: 10px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .stat-fee,
    .stat-pending-fee {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 10px;
    }
    
    .table-container {
        padding: 10px;
    }
    
    .table-title {
        font-size: 13px;
    }
    
    .table-actions {
        width: 100%;
        flex-direction: column;
        gap: 6px;
    }
    
    .table-actions .btn {
        width: 100%;
    }
    
    .filter-input,
    .filter-select,
    .filter-date,
    .filter-number {
        font-size: 16px;
        padding: 10px;
    }
    
    table {
        font-size: 11px;
        min-width: 700px;
    }
    
    th, td {
        padding: 6px 4px;
        font-size: 10px;
    }
    
    .action-link {
        font-size: 10px;
        padding: 4px 6px;
        margin-right: 4px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .pagination-info {
        font-size: 11px;
    }
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}
