/* Custom Styles for sxzw.com */

/* Base Styles */
body {
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Telephone Input CSS Fix */
.iti {
    width: 100%;
}

/* Cookie Toggle Styling */
.cookie-toggle-slider {
    transition: transform 0.15s ease;
}

input:checked + label .cookie-toggle-slider {
    transform: translateX(28px);
}

input:checked + label.cookie-toggle {
    background-color: #00FFFF;
}

/* Range Input Styling */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: #333333;
    border-radius: 3px;
    outline: none;
    padding: 0;
    margin: 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #8A2BE2;
    cursor: pointer;
    transition: background 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #FF1493;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 50%;
    background: #8A2BE2;
    cursor: pointer;
    transition: background 0.15s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #FF1493;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1E1E1E;
}

::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 5px;
}

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

/* FAQ Toggle Animation */
.faq-toggle i {
    transition: transform 0.3s ease;
}

.faq-toggle.active i {
    transform: rotate(45deg);
}

/* Hover Effects */
.hover-glow:hover {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

/* Gradient Text */
.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, #00FFFF, #8A2BE2);
}

/* Mobile Navbar Animation */
@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#nav-links.show {
    display: flex;
    animation: slideDown 0.3s ease forwards;
}

/* Focus States for Accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #00FFFF;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .no-print {
        display: none;
    }
    
    a {
        color: blue;
        text-decoration: underline;
    }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.neon-border {
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

/* Animation for Calculator */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#calculator-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Grid Layout Improvements */
.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Improve form elements on mobile */
@media (max-width: 640px) {
    input, select, textarea {
        font-size: 16px; /* Prevents zooming on iOS */
    }
}

/* Fix for sticky navigation on iOS */
.sticky {
    position: -webkit-sticky;
    position: sticky;
}

/* Neon glow effects for interactive elements */
.glow-on-hover:hover {
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
}

/* Fix for mobile Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .min-h-screen {
        min-height: -webkit-fill-available;
    }
}