/**
 * Free Consultation Page Styles
 * CC Brain & Body Wellness
 */

/* Hero Section Animations */
.consultation-hero-section {
    position: relative;
    animation: fadeIn 0.8s ease-out;
}

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

/* Form Styling Enhancements */
.consultation-form-section input:focus,
.consultation-form-section select:focus,
.consultation-form-section textarea:focus {
    box-shadow: 0 0 0 3px rgba(203, 162, 125, 0.2);
}

.consultation-form-section input[type="radio"]:checked + span,
.consultation-form-section input[type="checkbox"]:checked + span {
    font-weight: 600;
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* What to Expect Cards */
.expect-card {
    animation: slideUp 0.6s ease-out;
    animation-fill-mode: both;
}

.expect-card:nth-child(1) { animation-delay: 0.1s; }
.expect-card:nth-child(2) { animation-delay: 0.2s; }
.expect-card:nth-child(3) { animation-delay: 0.3s; }
.expect-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timeline Styling */
.timeline-step {
    animation: fadeInLeft 0.8s ease-out;
    animation-fill-mode: both;
}

.timeline-step:nth-child(1) { animation-delay: 0.2s; }
.timeline-step:nth-child(2) { animation-delay: 0.4s; }
.timeline-step:nth-child(3) { animation-delay: 0.6s; }
.timeline-step:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.timeline-marker {
    position: relative;
    z-index: 2;
}

/* FAQ Styling */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.faq-icon svg {
    transition: transform 0.3s ease;
}

.faq-answer {
    animation: slideDown 0.3s ease-out;
}

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

/* CTA Section Enhancements */
.final-cta-section {
    position: relative;
    overflow: hidden;
}

.final-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 236, 228, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: moveBackground 20s linear infinite;
    pointer-events: none;
}

@keyframes moveBackground {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(20px, 20px);
    }
}

/* Form Radio/Checkbox Custom Styling */
input[type="radio"],
input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #E5E7EB;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
    background-color: #CBA27D;
    border-color: #CBA27D;
    position: relative;
}

input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-line {
        display: none !important;
    }
    
    .consultation-hero-section h1 {
        font-size: 2.5rem;
    }
    
    .final-cta-section h2 {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    .consultation-form-section,
    .final-cta-section,
    header,
    footer {
        display: none;
    }
}