/* InstantQuote - Shared Styles */

/* Material Symbols Font Configuration */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Glassmorphism Effects */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-effect {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Velocity Background */
.velocity-bg {
    background: 
        radial-gradient(circle at 0% 0%, hsla(210, 100%, 98%, 1) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, hsla(220, 100%, 97%, 1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, hsla(190, 100%, 98%, 1) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, hsla(200, 100%, 99%, 1) 0%, transparent 50%),
        #f8f9ff;
    background-attachment: fixed;
}

/* Animations */
@keyframes pulse-subtle {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.95; 
        transform: scale(0.995); 
    }
}

.animate-pulse-subtle {
    animation: pulse-subtle 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Support Widget Toggle */
#help-panel {
    display: none;
}

#help-checkbox:checked ~ #help-panel {
    display: block;
}

#help-checkbox:checked ~ label .close-icon {
    display: inline-block;
}

#help-checkbox:checked ~ label .help-icon {
    display: none;
}

.close-icon {
    display: none;
}

/* Form Progress Indicator */
.progress-step {
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: #0049e6;
    color: white;
}

.progress-step.completed {
    background-color: #10B981;
    color: white;
}

/* Selection Cards */
.selection-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.selection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 73, 230, 0.15);
}

.selection-card.selected {
    border-color: #0049e6;
    background-color: rgba(0, 73, 230, 0.05);
}

/* Live Savings Bar */
.live-savings-bar {
    background: linear-gradient(135deg, #00E5FF 0%, #00d4ec 100%);
    box-shadow: 0 -4px 20px rgba(0, 229, 255, 0.3);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .mobile-nav {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .velocity-bg {
        background-attachment: scroll;
    }
}

/* Focus States for Accessibility */
input:focus,
button:focus,
select:focus {
    outline: 2px solid #0049e6;
    outline-offset: 2px;
}

/* Loading States */
.loading-spinner {
    border: 3px solid rgba(0, 73, 230, 0.1);
    border-top-color: #0049e6;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #10B981;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scale-in 0.5s ease-out;
}

@keyframes scale-in {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}