/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-modal {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bg-gradient-brand {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-pink));
}

/* Form Styling - High Contrast Noir sur Blanc */
.glass-input,
input.glass-input,
select.glass-input,
textarea.glass-input,
input,
select,
textarea {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    color-scheme: light !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 1rem !important;
    padding: 1rem 1.5rem !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
    width: 100% !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    outline: none !important;
    opacity: 1 !important;
}

.glass-input:focus,
input.glass-input:focus,
select.glass-input:focus,
textarea.glass-input:focus,
input:focus,
select:focus,
textarea:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #000000 !important;
    color-scheme: light !important;
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 20px rgba(38, 178, 231, 0.4) !important;
}

.glass-input::placeholder,
textarea::placeholder,
input::placeholder {
    color: #6b7280 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    opacity: 1 !important;
}

.glass-input option {
    background-color: #ffffff !important;
    color: #000000 !important;
    padding: 0.75rem;
}

/* Chrome/Edge/Safari Autofill fix for black text on white bg */
.glass-input:-webkit-autofill,
.glass-input:-webkit-autofill:hover, 
.glass-input:-webkit-autofill:focus,
.glass-input:-webkit-autofill:active {
    -webkit-text-fill-color: #000000 !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Filter Tabs */
.filter-btn {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
    background: white;
    color: black;
    border-color: white;
}

/* FOMO & UI */
.fomo-badge {
    animation: pulse-glow 2s infinite;
}

/* Spider Web Layout */
.spider-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2.5s ease-out forwards;
}

.spider-center {
    animation: pulse-glow-center 4s infinite;
}

@keyframes pulse-glow-center {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.15); }
    50% { box-shadow: 0 0 0 25px rgba(255, 255, 255, 0); }
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* Split-Screen Interactive Classes */
.process-step.active .step-container {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-color: rgba(38, 178, 231, 0.3);
}

.process-step[data-step="2"].active .step-container,
.process-step[data-step="4"].active .step-container {
    border-color: rgba(216, 25, 146, 0.3);
}

.process-step.active .step-number {
    color: var(--brand-blue);
    text-shadow: 0 0 20px rgba(38, 178, 231, 0.4);
}

.process-step[data-step="2"].active .step-number,
.process-step[data-step="4"].active .step-number {
    color: var(--brand-pink);
    text-shadow: 0 0 20px rgba(216, 25, 146, 0.4);
}

.process-step.active .step-title {
    color: white;
}

.process-step .step-detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.process-step.active .step-detail {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
}