/* ========================================
   Tagoals Influencer Application - Main Styles
   Modern Cosmic Theme with Gradients
   ======================================== */

/* ========== CSS Variables ========== */
:root {
    /* Color Palette */
    --primary-purple: #5B4FFF;
    --primary-blue: #00D4FF;
    --accent-orange: #FF6B6B;
    --dark-bg: #0F0B1F;
    --light-text: #FFFFFF;
    --gray-text: #B8B8D1;
    --error-red: #FF4D4D;
    --success-green: #00D4AA;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5B4FFF 0%, #00D4FF 100%);
    --gradient-warm: linear-gradient(135deg, #FF6B6B 0%, #FFB347 100%);
    --gradient-cosmic: linear-gradient(180deg, #0F0B1F 0%, #1A1333 50%, #251852 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-xs: 0.875rem;
    --font-size-sm: 1rem;
    --font-size-md: 1.125rem;
    --font-size-lg: 1.5rem;
    --font-size-xl: 2rem;
    --font-size-2xl: 3rem;
    --font-size-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(91, 79, 255, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========== Global Styles ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--light-text);
    background: var(--gradient-cosmic); /* Unified cosmic background */
    background-attachment: fixed; /* Keep background fixed while scrolling */
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* ========== Landing Section ========== */
.landing-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--spacing-lg);
}

/* Cosmic Background */
.cosmic-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%; /* Extend to cover form section too */
    z-index: 1;
    background: transparent; /* No duplicate background */
    pointer-events: none;
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-purple) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    top: 50%;
    right: -5%;
    animation-delay: 5s;
}

.orb-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 70%);
    bottom: -30%; /* Extend to form section */
    left: 40%;
    animation-delay: 10s;
}

/* Additional orb for form section illumination */
.gradient-orb.orb-4 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    bottom: -60%;
    right: 10%;
    animation-delay: 15s;
}

/* Stars Effect */
.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 80%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 4s ease-in-out infinite;
    opacity: 0.5;
}

/* Landing Content */
.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0; /* Remove gap for tighter spacing */
    margin-top: 60px; /* Push content down */
}

.hero-title {
    font-size: clamp(2rem, 5vw, var(--font-size-3xl));
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px; /* Tighter - closer to sub-headline */
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, var(--font-size-xl));
    font-weight: 500;
    color: var(--gray-text);
    margin-bottom: 24px; /* More space before description */
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 720px;
    line-height: 1.8;
    margin-bottom: 40px; /* Space before CTA */
    font-weight: 400;
}

/* Stats Cards - Hidden for cleaner design */
.stats-container {
    display: none; /* Removed for smoother, cleaner look */
}

.stat-card {
    background: linear-gradient(135deg, rgba(91, 79, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(91, 79, 255, 0.3);
    border-radius: 16px;
    padding: var(--spacing-lg) var(--spacing-xl);
    text-align: center;
    min-width: 160px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(91, 79, 255, 0.6);
    box-shadow: 0 8px 24px rgba(91, 79, 255, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* CTA Button - Smooth & Clean */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 20px 52px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.35);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.01);
}

/* Scroll Indicator - Removed for cleaner design */
.scroll-indicator {
    display: none;
}

/* ========== Form Section ========== */
.form-section {
    position: relative;
    min-height: auto;
    padding: 60px var(--spacing-lg) 80px; /* Tighter, more glamorous */
    background: transparent; /* No separate background - seamless! */
    margin-top: -30px; /* Closer to hero */
}

.form-container {
    max-width: 1200px; /* WIDER for better horizontal space usage */
    margin: 0 auto;
    position: relative;
    z-index: 10; /* Above cosmic background */
}

.form-header {
    text-align: center;
    margin-bottom: 32px; /* Compact */
    position: relative;
    z-index: 10;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.form-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* Application Form - Glamorous Design */
.application-form {
    background: linear-gradient(135deg, rgba(91, 79, 255, 0.08) 0%, rgba(0, 212, 255, 0.04) 100%);
    backdrop-filter: blur(40px); /* Strong glass effect */
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(91, 79, 255, 0.25);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(91, 79, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1); /* Inner highlight */
    position: relative;
    z-index: 10;
}

.form-section-group {
    margin-bottom: 32px; /* Compact glamorous spacing */
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06); /* Very subtle */
}

.form-section-group:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px; /* Tight spacing */
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: var(--font-size-sm);
    font-weight: 700;
}

/* Form Layout - WIDE 3-Column Design */
.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 COLUMNS for width optimization */
    gap: 24px; /* Comfortable spacing */
    margin-bottom: 24px;
}

.form-row.two-column {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for some fields */
}

.form-row.social-media-row {
    grid-template-columns: 1.5fr 1fr; /* Handle: 60%, Followers: 40% */
    gap: 20px;
}

.form-row.single-column {
    grid-template-columns: 1fr; /* Full width for special fields */
}

.form-group {
    margin-bottom: 16px; /* Very compact */
    position: relative;
}

.form-row .form-group {
    margin-bottom: 0; /* No extra margin in rows */
}

/* Extra spacing for select dropdowns to prevent overlap */
.form-group:has(.form-select) {
    margin-bottom: 24px;
    z-index: 1;
}

.form-label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    color: var(--light-text);
}

.required {
    color: var(--accent-orange);
}

/* Form Inputs - Clean & Stable */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(91, 79, 255, 0.25);
    border-radius: 10px;
    color: var(--light-text);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
    border-color: rgba(91, 79, 255, 0.4);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(91, 79, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(91, 79, 255, 0.15);
}

/* Autofill styling fix */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--light-text) !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(91, 79, 255, 0.1) inset !important;
    transition: background-color 5000s ease-in-out 0s;
    border: 1.5px solid rgba(91, 79, 255, 0.25);
}

/* Select dropdown - ensure good contrast */
.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    padding-right: 45px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    z-index: 10;
}

/* When dropdown is open, increase z-index */
.form-select:focus {
    z-index: 1000;
    position: relative;
}

/* Select dropdown options - FIXED THEME */
.form-select option {
    background-color: #0F1729 !important; /* Dark navy - matches theme */
    color: #ffffff !important; /* White text */
    padding: 10px;
    font-size: 0.95rem;
}

.form-select option:hover {
    background-color: #1a1a2e !important; /* Slightly lighter on hover */
}

.form-select option:checked,
.form-select option[selected] {
    background-color: #5B4FFF !important; /* Purple for selected */
    color: #ffffff !important;
    font-weight: 600;
}

/* First option (placeholder) styling */
.form-select option[value=""] {
    background-color: #0F1729 !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Disabled state */
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

/* Remove number input spinners */
.form-input[type="number"]::-webkit-inner-spin-button,
.form-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.form-input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray-text);
    opacity: 0.6;
}

/* Input with Prefix */
.input-with-prefix {
    position: relative;
    display: flex;
    align-items: center;
}

.input-prefix {
    position: absolute;
    left: 16px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.form-input.with-prefix {
    padding-left: 38px;
}

/* When input has error, change prefix color using :has() */
.input-with-prefix:has(.form-input.error) .input-prefix {
    color: var(--error-red);
}

/* Textarea */
.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Form Hints */
.form-hint {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--gray-text);
    margin-top: var(--spacing-xs);
    opacity: 0.8;
}

/* Warning Box - Redesigned */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 87, 34, 0.08) 100%);
    border: 2px solid rgba(255, 152, 0, 0.3);
    border-left: 5px solid #FF9800;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 28px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
}

.warning-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 152, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-icon svg {
    color: #FFB74D;
}

.warning-content {
    flex: 1;
}

.warning-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFD54F;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.warning-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
}

.warning-content strong {
    color: #FFB74D;
    font-weight: 600;
}

/* Info Box - Redesigned */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(63, 81, 181, 0.08) 100%);
    border: 2px solid rgba(33, 150, 243, 0.3);
    border-left: 5px solid #2196F3;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

.info-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(33, 150, 243, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    color: #64B5F6;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #90CAF9;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Naming Grid */
.naming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.naming-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.naming-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(33, 150, 243, 0.3);
    transform: translateY(-2px);
}

.naming-item code {
    background: rgba(91, 79, 255, 0.2);
    color: #B39DDB;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    font-weight: 600;
    display: block;
    text-align: center;
}

/* Platform Badges */
.platform-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.instagram-badge {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
    color: #ffffff;
}

.tiktok-badge {
    background: linear-gradient(135deg, #000000, #00F2EA);
    color: #ffffff;
}

.youtube-badge {
    background: linear-gradient(135deg, #FF0000, #CC0000);
    color: #ffffff;
}

.twitter-badge {
    background: linear-gradient(135deg, #1DA1F2, #0D8BD9);
    color: #ffffff;
}

/* Info Note */
.info-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 152, 0, 0.08);
    border-left: 3px solid #FFB74D;
    border-radius: 6px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
}

.info-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: #FFB74D;
}

.info-note strong {
    color: #FFD54F;
}

/* Required Screenshots Display */
.required-screenshots {
    margin-top: 16px;
    padding: 16px;
    background: rgba(76, 175, 80, 0.08);
    border: 2px solid rgba(76, 175, 80, 0.3);
    border-left: 5px solid #4CAF50;
    border-radius: 10px;
}

.required-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.required-item:last-child {
    border-bottom: none;
}

.platform-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
    min-width: 80px;
    text-align: center;
}

.required-item code {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Optional Badge */
.optional-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
}

/* Other Platforms Section */
.other-platforms-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.other-platforms-section > .form-label {
    font-size: 1rem;
    margin-bottom: 8px;
    display: block;
}

.other-platforms-section > .form-hint {
    margin-bottom: 16px;
}

/* Add Platform Button */
.add-platform-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(91, 79, 255, 0.1);
    border: 1.5px solid rgba(91, 79, 255, 0.3);
    color: var(--primary-purple);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.add-platform-btn:hover {
    background: rgba(91, 79, 255, 0.2);
    border-color: rgba(91, 79, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 79, 255, 0.2);
}

.add-platform-btn svg {
    flex-shrink: 0;
}

/* Platform Row */
.platform-row {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr auto;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    align-items: end; /* Align everything to bottom (input field level) */
}

.platform-row .form-group {
    margin-bottom: 0;
}

.remove-platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 2px; /* Align with input field bottom */
    background: rgba(255, 77, 77, 0.1);
    border: 1.5px solid rgba(255, 77, 77, 0.3);
    border-radius: 8px;
    color: #FF4D4D;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.remove-platform-btn:hover {
    background: rgba(255, 77, 77, 0.2);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.3);
}

.remove-platform-btn svg {
    width: 20px;
    height: 20px;
}

/* Character Counter */
.char-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-xs);
    color: var(--gray-text);
    margin-top: var(--spacing-xs);
}

.char-hint {
    opacity: 0.7;
}

/* Error Messages */
.error-message {
    display: block;
    color: var(--error-red);
    font-size: var(--font-size-xs);
    margin-top: var(--spacing-xs);
    min-height: 20px;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--error-red) !important;
    background: rgba(255, 77, 77, 0.05);
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.15);
}

/* File Upload */
.file-upload-area {
    position: relative;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-purple);
    background: rgba(91, 79, 255, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-blue);
    background: rgba(0, 212, 255, 0.1);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 100;
}

.upload-placeholder {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.upload-icon {
    margin: 0 auto var(--spacing-sm);
    color: var(--primary-blue);
}

.upload-text {
    font-size: var(--font-size-md);
    color: var(--light-text);
    margin-bottom: var(--spacing-xs);
}

.upload-browse {
    color: var(--primary-blue);
    font-weight: 600;
}

.upload-hint {
    font-size: var(--font-size-xs);
    color: var(--gray-text);
}

/* File Preview */
.file-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.file-preview-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.05);
}

.file-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-preview-item .file-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.file-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 77, 77, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: all var(--transition-fast);
    z-index: 10;
}

.file-remove:hover {
    background: var(--error-red);
    transform: scale(1.1);
}

/* Submit Button - Clean & Smooth */
.form-actions {
    margin-top: 40px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 20px 60px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.35);
    min-width: 260px;
}

.submit-button:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.submit-button:active:not(:disabled) {
    transform: translateY(-1px) scale(1.01);
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.button-loader {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Spinner */
.spinner {
    animation: rotate 2s linear infinite;
}

.spinner .path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

/* ========== Modal Styles ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
}

.modal.show {
    display: flex;
    animation: fadeIn var(--transition-normal);
}

.modal-content {
    background: rgba(26, 19, 51, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: slideUp var(--transition-normal);
}

.modal-icon {
    margin: 0 auto var(--spacing-lg);
    width: 64px;
    height: 64px;
}

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

.error-icon {
    color: var(--error-red);
}

.modal-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.modal-message {
    font-size: var(--font-size-md);
    color: var(--gray-text);
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
}

.modal-button {
    background: var(--gradient-primary);
    color: var(--light-text);
    font-size: var(--font-size-md);
    font-weight: 600;
    padding: var(--spacing-md) var(--spacing-xl);
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(91, 79, 255, 0.4);
}

/* ========== Responsive Design ========== */

/* Tablet */
@media (max-width: 1024px) {
    .landing-section,
    .form-section {
        padding: var(--spacing-xl) var(--spacing-md);
    }
    
    .form-row {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
    
    .application-form {
        padding: 40px 32px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --font-size-3xl: 2.5rem;
        --font-size-2xl: 2rem;
        --font-size-xl: 1.5rem;
    }
    
    .landing-section {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .stats-container {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .stat-card {
        width: 100%;
    }
    
    .form-row,
    .form-row.two-column,
    .form-row.social-media-row {
        grid-template-columns: 1fr;
    }
    
    .application-form {
        padding: var(--spacing-md);
    }
    
    .section-title {
        font-size: var(--font-size-md);
    }
    
    .section-number {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-xs);
    }
    
    .cta-button,
    .submit-button {
        width: 100%;
        justify-content: center;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Platform rows on mobile */
    .platform-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .remove-platform-btn {
        margin-top: 0;
        width: 100%;
        height: 40px;
    }
    
    /* Warning and info boxes on mobile */
    .warning-box,
    .info-box {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }
    
    .warning-icon,
    .info-icon {
        width: 40px;
        height: 40px;
    }
    
    .warning-title,
    .info-title {
        font-size: 0.95rem;
    }
    
    .warning-content p,
    .info-note {
        font-size: 0.85rem;
    }
    
    .naming-grid {
        grid-template-columns: 1fr;
    }
    
    .naming-item {
        padding: 10px;
    }
    
    .naming-item code {
        font-size: 0.8rem;
    }
    
    .platform-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: var(--spacing-lg);
    }
    
    .file-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}
