/* Interactive Elements Styles for Dr. Bonakdar's Eyecare Center of Orange County */

/* Common styles for all interactive elements */
.interactive-element {
    margin: 3rem 0;
    padding: 2rem;
    border-radius: 15px;
    background-color: var(--light-purple);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.interactive-element:hover {
    box-shadow: 0 15px 40px rgba(138, 112, 214, 0.15);
    transform: translateY(-5px);
}

.interactive-element h3 {
    color: var(--dark-purple);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Symptom Checker Styles */
.symptom-checker-container {
    max-width: 800px;
    margin: 3rem auto;
}

.symptom-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.symptom-option {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.symptom-option:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.symptom-option input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-purple);
}

.symptom-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.symptom-results h4 {
    color: var(--dark-purple);
    margin-bottom: 1rem;
}

.symptom-results ul {
    list-style: none;
    padding: 0;
}

.symptom-results li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(138, 112, 214, 0.1);
}

.symptom-results li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.symptom-results .disclaimer {
    font-style: italic;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    color: #666;
}

/* Treatment Comparison Styles */
.treatment-comparison-container {
    max-width: 900px;
    margin: 3rem auto;
}

.treatment-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.treatment-checkbox {
    display: flex;
    align-items: center;
}

.treatment-checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-purple);
}

.comparison-results {
    margin-top: 2rem;
}

.comparison-note {
    font-style: italic;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    color: #666;
}

/* Before/After Slider Styles */
.before-after-container {
    max-width: 800px;
    margin: 3rem auto;
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.before-image, .after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.after-image {
    width: 50%;
    overflow: hidden;
    border-right: 2px solid white;
}

.before-image img, .after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    top: 50%;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle::before {
    content: '↔';
    color: var(--primary-purple);
    font-size: 1.2rem;
}

.slider-controls {
    width: 100%;
    margin: 1rem 0;
}

.slider-range {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    background: #ddd;
    outline: none;
    border-radius: 5px;
}

.slider-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-purple);
    cursor: pointer;
}

.slider-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-purple);
    cursor: pointer;
    border: none;
}

.image-label {
    position: absolute;
    top: 20px;
    padding: 5px 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
}

.before-image .image-label {
    left: 20px;
}

.after-image .image-label {
    right: 20px;
}

.slider-note {
    text-align: center;
    font-style: italic;
    font-size: 0.9rem;
    color: #666;
}

/* FAQ Interactive Styles */
.faq-interactive {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-interactive:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(138, 112, 214, 0.15);
}

.ask-question-container {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: var(--light-purple);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ask-question-container h3 {
    color: var(--dark-purple);
    margin-bottom: 1rem;
    text-align: center;
}

.question-success {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

/* Animated Statistics Styles */
.animated-stats-container {
    padding: 3rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat-card {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(138, 112, 214, 0.15);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-purple);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--dark-purple);
}

/* Personalized Recommendations Styles */
.personalized-recommendations {
    max-width: 800px;
    margin: 3rem auto;
    background-color: white;
    border: 2px solid var(--primary-purple);
}

.recommendations-list {
    margin-top: 1.5rem;
}

.recommendation-item {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: var(--light-purple);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.recommendation-item:hover {
    background-color: rgba(138, 112, 214, 0.2);
}

.recommendation-link {
    display: block;
    color: var(--dark-purple);
    font-weight: 500;
    text-decoration: none;
}

.recommendation-link:hover {
    color: var(--primary-purple);
}

/* Progressive Disclosure Styles */
.progressive-content {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Interactive Testimonials Styles */
.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    gap: 1rem;
}

.testimonial-prev, .testimonial-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-prev:hover, .testimonial-next:hover {
    background-color: var(--primary-purple);
    transform: translateY(-3px);
}

.testimonial-dots {
    display: flex;
    gap: 0.5rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.testimonial-dot.active {
    background-color: white;
    transform: scale(1.2);
}

.testimonial-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Service Explorer Styles */
.service-card-interactive {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-interactive:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(138, 112, 214, 0.2);
}

/* Sticky CTA Styles */
.sticky-cta {
    position: fixed;
    bottom: 80px;
    right: 0;
    z-index: 1000;
    max-width: 300px;
    transform: translateX(calc(100% - 40px));
    transition: transform 0.3s ease;
}

.sticky-cta:hover,
.sticky-cta.active {
    transform: translateX(0);
}

.sticky-cta-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 15px 0 0 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 5px solid var(--primary-purple);
    position: relative;
}

.sticky-cta-tab {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background-color: var(--primary-purple);
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.sticky-cta-tab i {
    color: white;
    font-size: 1.2rem;
}

.sticky-cta-content p {
    margin-bottom: 1rem;
    font-weight: 500;
}

.sticky-cta-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sticky-cta-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f5f5f5;
    border: none;
    color: #666;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.sticky-cta-close:hover {
    background-color: #e0e0e0;
}

@media (max-width: 768px) {
    .sticky-cta {
        bottom: 60px;
    }
    
    .sticky-cta-content {
        padding: 1rem;
    }
    
    .sticky-cta-buttons .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .interactive-element {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    
    .symptom-options {
        grid-template-columns: 1fr;
    }
    
    .before-after-slider {
        height: 300px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .sticky-cta {
        bottom: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .before-after-slider {
        height: 250px;
    }
    
    .treatment-checkboxes {
        flex-direction: column;
    }
}
