/* ====================================
   CSS Variables & Root Styles
   ==================================== */
:root {
    /* Color Palette from SVG files */
    --primary-orange: #000000; /* Deep reddish-orange from warm gradient */
    --primary-red: #000000; /* Bold red from red section */
    --primary-blue: #335E9E; /* Cool medium blue from blue gradient */
    --primary-green: #6c6c6c; /* Rich emerald green from green gradient */
    --accent-gold: #fbb120; /* Accent gold */
    --accent-teal: #3acdfc; /* Accent teal */
    
    /* Neutral Colors */
    --dark-primary: #2b2b2b; /* Dark gray from patterns */
    --dark-secondary: #333132; /* Secondary dark */
    --gray-light: #757575; /* Light gray */
    --white: #ffffff;
    --black: #000000;
    
    /* Background Colors */
    --bg-primary: var(--white);
    --bg-secondary: #f8f9fa;
    --bg-dark: var(--dark-primary);
    
    /* Text Colors */
    --text-primary: var(--dark-primary);
    --text-secondary: var(--gray-light);
    --text-light: var(--white);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-red) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-teal) 100%);
    --gradient-warm: linear-gradient(135deg, #ffff00 0%, #ffa500 25%, #dc143c 75%, #800000 100%); /* Yellow to Orange to Deep Red to Dark Maroon */
    --gradient-cool-blue: linear-gradient(135deg, #00ffff 0%, #0000ff 50%, #000080 100%); /* Light Cyan to Medium Blue to Navy */
    --gradient-green: linear-gradient(135deg, #98fb98 0%, #008000 50%, #008080 100%); /* Mint Green to Emerald to Dark Teal */
    --gradient-footer: linear-gradient(to right, #de3912 0%, #e75b16 20%, #f3901c 40%, #0d8447 60%, #3a34ff 80%, #3a5efe 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(43, 43, 43, 0.1);
    --shadow-md: 0 4px 16px rgba(43, 43, 43, 0.15);
    --shadow-lg: 0 8px 32px rgba(43, 43, 43, 0.2);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Typography */
    --font-family: 'HTRakik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-base: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Container */
    --container-width: 1200px;
}

/* ====================================
   Font Faces
   ==================================== */
@font-face {
    font-family: 'HTRakik';
    src: url('fonts/htrakik/htrakik-light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HTRakik';
    src: url('fonts/htrakik/htrakik-reqular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HTRakik';
    src: url('fonts/htrakik/htrakik-medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HTRakik';
    src: url('fonts/htrakik/htrakik-semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'HTRakik';
    src: url('fonts/htrakik/htrakik-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ====================================
   Reset & Base Styles
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height-base);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background Hero Section */
.background-hero {
    height: 100vh;
    background-image: url('background-image-6.webp');
    background-size: cover;
    background-position: top left;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

@media (max-width: 767px) {
    .background-hero {
        background-attachment: scroll;
        height: 50vh;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .background-hero {
        background-attachment: scroll;
        height: 75vh;
    }
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* ====================================
   Typography
   ==================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-sm);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

@media (min-width: 768px) {
    h1 { font-size: var(--font-size-5xl); }
    h2 { font-size: var(--font-size-4xl); }
    h3 { font-size: var(--font-size-3xl); }
}

p {
    margin-bottom: var(--space-sm);
    line-height: var(--line-height-relaxed);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-red);
}

.gradient-text {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: var(--font-weight-bold);
}

/* ====================================
   Header
   ==================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(43, 43, 43, 0.1);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-img {
    height: 100px;
    width: auto;
}

.nav-list {
    display: none;
    list-style: none;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .nav-list {
        display: flex;
    }
}

.nav-link {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-base);
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 20px;
    padding-bottom: 20px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.699);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.hero-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    background: var(--primary-red);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: var(--space-lg);
    text-align: center;
    line-height: var(--line-height-tight);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-title-accent {
    background: var(--primary-orange);
    background-clip: text;
    display: block;
    margin-top: var(--space-sm);
    font-size: var(--font-size-5xl);
}

.welcome-text {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height-relaxed);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
}

.deadline-timer {
    text-align: center;
    margin: var(--space-xl) auto;
    max-width: 600px;
}

.deadline-timer h3 {
    font-size: var(--font-size-2xl);
    background: var(--primary-red);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: var(--space-md);
    font-weight: var(--font-weight-semibold);
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    background: var(--bg-secondary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-lg);
}

.timer-item {
    text-align: center;
    flex: 1;
    min-width: 70px;
}

.timer-number {
    display: block;
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-bold);
    color: var(--white);
    background: var(--primary-green);
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    border: none;
    margin-bottom: var(--space-xs);
    font-family: 'HTRakik', monospace;
}

.timer-label {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: var(--font-weight-bold);
}

@media (max-width: 768px) {
    .timer-display {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
        padding: var(--space-md);
    }
    
    .timer-item {
        min-width: 60px;
        flex: 1 1 auto;
    }
    
    .timer-number {
        font-size: var(--font-size-2xl);
        background: var(--gradient-warm);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
    }
}

/* Required Field Indicator */
.required {
    color: #ff1919;
    font-weight: var(--font-weight-bold);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Commissioned Projects Section */
.commissioned-section {
    border: 2px solid var(--primary-orange);
    background: linear-gradient(135deg, rgba(255, 190, 33, 0.05) 0%, rgba(222, 63, 29, 0.05) 100%);
}

/* Form Help Text */
.form-help {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-top: var(--space-xs);
}

/* ====================================
   Section Styles
   ==================================== */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    margin-bottom: var(--space-xxl);
    background-color: rgba(255, 255, 255, 0.699);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.section-title {
    margin-bottom: var(--space-md);
    background: var(--primary-red);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    max-width: 600px;
    margin: 0 auto;
}

/* ====================================
   Registration Section
   ==================================== */
.registration {
    padding: var(--space-xxl) 0;
}

/* Alert Messages */
.alert {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-weight: var(--font-weight-medium);
}

.alert-success {
    background: rgba(35, 212, 103, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(35, 212, 103, 0.2);
}

.alert-error {
    background: rgba(222, 63, 29, 0.1);
    color: var(--primary-red);
    border: 1px solid rgba(222, 63, 29, 0.2);
    max-width: 700px;
    margin: 0 auto var(--space-lg);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .alert-error {
        max-width: 100%;
        margin: 0 0 var(--space-lg);
        font-size: 14px;
    }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(222, 63, 29, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(222, 63, 29, 0); }
    100% { box-shadow: 0 0 0 0 rgba(222, 63, 29, 0); }
}

/* Form Styles */
.registration-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(43, 43, 43, 0.1);
    background: var(--primary-red);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.form-section-title i {
    color: var(--primary-orange);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
    padding: var(--space-sm);
    border: 2px solid rgba(43, 43, 43, 0.1);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(58, 52, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* File Upload */
.file-upload {
    position: relative;
}

.form-file {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    border: 2px dashed rgba(43, 43, 43, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-blue);
    background: rgba(58, 52, 255, 0.05);
}

.file-upload-label i {
    font-size: var(--font-size-2xl);
    color: var(--primary-blue);
    margin-bottom: var(--space-sm);
}

.file-upload-label span {
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-xs);
}

.file-upload-label small {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    line-height: var(--line-height-relaxed);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(43, 43, 43, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--gradient-primary);
    border-color: transparent;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: var(--white);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
}

.checkbox-label.required {
    margin-bottom: var(--space-sm);
}

/* commissioned labels */
.timeline-label {
    font-size: var(--font-size-sm);
}
/* Terms Section */
.terms-section {
    padding: var(--space-lg);
    background: rgba(58, 52, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(58, 52, 255, 0.1);
}

.terms-section .checkbox-label {
    color: var(--black);
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: var(--space-lg);
}

.submit-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    min-width: 200px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(38, 128, 77, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background: var(--primary-red);
    color: var(--text-light);
    padding: var(--space-xl) 0 var(--space-lg);
    clip-path: ellipse(120% 100% at 50% 100%);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: var(--space-lg);
}

.footer-section {
    max-width: 400px;
}

.footer-logo {
    height: 48px;
    width: auto;
    flex-shrink: 0;
}

.footer-section p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.footer-section a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    font-size: var(--font-size-xl);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.footer-bottom p {
    margin: 0;
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    display: inline-block;
}

.footer-bottom img {
    height: 18px;
    vertical-align: middle;
}

/* ====================================
   Utility Classes
   ==================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 767px) {
    :root {
        --space-xs: 0.25rem;
        --space-sm: 0.75rem;
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-xxl: 2.5rem;
    }
}

/* ====================================
   Loading States
   ==================================== */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid var(--white);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====================================
   Smooth Scrolling & Animations
   ==================================== */
@media (prefers-reduced-motion: no-preference) {
    .fade-in {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.6s ease;
    }
    
    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   Print Styles
   ==================================== */
@media print {
    .header,
    .hero,
    .about,
    .footer {
        display: none;
    }
    
    .registration {
        padding: 0;
    }
    
    .form-section {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* ====================================
   Custom Styles
   ==================================== */
@media (max-width: 768px) {
    .timer-display {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .timer-item {
        min-width: 60px;
    }
    
    .timer-number {
        font-size: var(--font-size-2xl);
    }
}

.form-progress {
    position: sticky;
    top: 20px; /* Below fixed header */
    z-index: 999;
    background: var(--white);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(43, 43, 43, 0.1);
}

.progress-fill {
    background: var(--primary-red) !important;
}

/* Enhanced File Upload Display */
.file-preview {
    display: none;
    margin-top: var(--space-md);
    transition: all 0.3s ease;
}

.file-preview.show {
    display: block;
}

.files-container {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    animation: slideInUp 0.4s ease-out;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.files-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.upload-success {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-green);
    font-weight: var(--font-weight-semibold);
}

.upload-success i {
    font-size: 1.2em;
}

.upload-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Enhanced Button Styles */
.clear-files-btn, .remove-file-btn, .add-more-btn {
    background: transparent;
    border: 2px solid rgba(139, 69, 19, 0.3);
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    min-height: 44px; /* Touch-friendly size */
    position: relative;
    overflow: hidden;
}

/* Clear Files Button */
.clear-files-btn {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.clear-files-btn:hover {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.2), rgba(220, 53, 69, 0.1));
    border-color: #dc3545;
    color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.clear-files-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.2);
}

/* Add More Files Button */
.add-more-btn {
    background: var(--gradient-green);
    border: none;
    color: white;
    font-weight: var(--font-weight-semibold);
    box-shadow: 0 2px 8px rgba(157, 48, 24, 0.3);
}

.add-more-btn:hover {
    background: var(--gradient-green);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(157, 48, 24, 0.4);
}

.add-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(210, 105, 30, 0.3);
}

/* Remove File Button */
.remove-file-btn {
    background: transparent;
    border-color: rgba(220, 53, 69, 0.3);
    color: rgba(220, 53, 69, 0.7);
    padding: var(--space-xs) var(--space-sm);
    min-height: 36px;
}

.remove-file-btn:hover {
    background: rgba(220, 53, 69, 0.2);
    border-color: #dc3545;
    color: #dc3545;
}

.files-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(139, 69, 19, 0.1);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.file-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(139, 69, 19, 0.2);
}

.file-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

.file-info i {
    font-size: 1.2em;
    color: var(--primary-blue);
    width: 20px;
    text-align: center;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.file-name {
    font-weight: var(--font-weight-medium);
    color: var(--text-primary);
    word-break: break-all;
}

.file-size {
    color: var(--text-secondary);
    font-size: var(--font-size-xs);
}

.file-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.file-status {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary-green);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.add-more-files {
    display: block ruby;
    margin-top: var(--space-md);
    padding: var(--space-md) var(--space-sm);
    background: rgba(139, 69, 19, 0.05);
    border-top: 2px dashed rgba(139, 69, 19, 0.2);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    text-align: center;
}

/* Enhanced Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.file-item {
    animation: fadeIn 0.3s ease-out;
}

.file-item:hover {
    animation: none;
}

.upload-success i {
    animation: pulse 2s infinite;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .files-container {
        padding: var(--space-sm);
    }
    
    .clear-files-btn, .add-more-btn {
        padding: var(--space-sm);
        font-size: var(--font-size-xs);
    }
}

@media (max-width: 768px) {
    .files-header {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }
    
    .upload-success {
        text-align: center;
        justify-content: center;
    }
    
    .upload-actions {
        width: 100%;
        justify-content: center;
    }
    
    .clear-files-btn {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
    
    .file-item {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
        padding: var(--space-md);
    }
    
    .file-info {
        text-align: center;
        justify-content: center;
    }
    
    .file-actions {
        width: 100%;
        justify-content: space-between;
        padding-top: var(--space-sm);
        border-top: 1px solid rgba(139, 69, 19, 0.1);
    }
    
    .file-status {
        flex: 1;
        justify-content: center;
    }
    
    .remove-file-btn {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        padding: 0;
    }
    
    .add-more-files {
        padding: var(--space-lg);
    }
    
    .add-more-btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: var(--space-md) var(--space-lg);
        font-size: var(--font-size-md);
    }
    
    .file-preview {
        margin-top: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .files-container {
        margin: 0 calc(-1 * var(--space-sm));
        border-radius: var(--radius-sm);
    }
    
    .files-header {
        gap: var(--space-sm);
    }
    
    .upload-success {
        font-size: var(--font-size-sm);
    }
    
    .upload-success i {
        font-size: 1em;
    }
    
    .file-item {
        margin: 0 calc(-1 * var(--space-xs));
        border-radius: var(--radius-xs);
    }
    
    .file-name {
        font-size: var(--font-size-sm);
        line-height: 1.4;
    }
    
    .file-size {
        font-size: 0.7rem;
    }
    
    .clear-files-btn, .add-more-btn {
        font-size: var(--font-size-sm);
        padding: var(--space-md);
        min-height: 48px; /* Larger touch target on mobile */
    }
    
    .remove-file-btn {
        width: 40px;
        height: 40px;
        font-size: var(--font-size-xs);
    }
}

/* Container Responsiveness */
.file-upload {
    position: relative;
    width: 100%;
}

.file-preview {
    width: 100%;
    overflow-x: auto;
}

.files-list {
    width: 100%;
}

/* Button Loading States */
.clear-files-btn:disabled, 
.add-more-btn:disabled, 
.remove-file-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.clear-files-btn:disabled:hover, 
.add-more-btn:disabled:hover, 
.remove-file-btn:disabled:hover {
    background: transparent;
    color: var(--text-secondary);
    border-color: rgba(139, 69, 19, 0.3);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--primary-red);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.cta-button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.cta-button i {
    transition: transform var(--transition-base);
}

.cta-button:hover i {
    transform: translateX(3px);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.cta-button:hover::before {
    left: 100%;
}