/* Dr Lize LoveIQ Quiz - Custom Styles */

/* Hero Gradient Background */
.hero-gradient {
    background: linear-gradient(135deg, #FFF0F5 0%, #FFFFFF 100%);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Quiz Option Styling */
.quiz-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 2px solid #E5E7EB;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.quiz-option:hover {
    border-color: #FF6B9D;
    background: #FFF0F5;
    transform: translateX(4px);
}

.quiz-option input[type="radio"]:checked ~ span {
    font-weight: 600;
    color: #FF6B9D;
}

.quiz-option input[type="radio"]:checked {
    accent-color: #FF6B9D;
}

.quiz-option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.quiz-option span {
    flex: 1;
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
}

/* Email Capture Fade In Animation */
#emailCapture.show {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Input Focus States */
input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: #FF6B9D;
    box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.1);
}

/* Button Hover Effects */
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button[type="submit"]:hover::before {
    width: 300px;
    height: 300px;
}

/* Success Message Styling */
#successMessage.show {
    display: block;
    animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Error Message Styling */
#errorMessage.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Video Card Hover Effects */
.video-card {
    transition: transform 0.3s ease;
}

.video-card:hover {
    transform: translateY(-8px);
}

/* Mobile Menu Toggle */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobileMenu.show {
    max-height: 300px;
}

/* Loading Spinner (for form submission) */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid #FF6B9D;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled Button State */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Accessibility: Focus Visible */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid #FF6B9D;
    outline-offset: 2px;
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.75rem;
    }

    .quiz-option {
        padding: 0.875rem 1rem;
    }

    .quiz-option span {
        font-size: 0.9375rem;
    }
}

/* Print Styles (for accessibility) */
@media print {
    header, footer, #quiz, #insights {
        display: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .quiz-option {
        border-width: 3px;
    }

    .quiz-option:hover {
        border-color: #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Custom Scrollbar (Webkit browsers) */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

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