/* ==================== FIND TEST SECTION ==================== */

.find-test-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fb 0%, var(--bg-lighter) 100%);
    text-align: center;
    position: relative;
}

.find-test-section h2 {
    font-size: 44px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.description-large {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.search-box-wrapper {
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 153, 216, 0.2);
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease;
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 35px rgba(0, 153, 216, 0.3);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 16px 28px;
    font-size: 15px;
    outline: none;
    font-weight: 500;
}

.search-box input::placeholder {
    color: var(--text-lighter);
}

.search-box button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    padding: 16px 32px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    color: white;
    font-weight: 600;
}

.search-box button:hover {
    transform: scaleX(1.05);
}

.search-hint {
    color: var(--text-lighter);
    font-style: italic;
    font-size: 13px;
}

/* ==================== FAQ SECTION ==================== */

.faq-section {
    padding: 100px 0;
    background: white;
}

.faq-items {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease;
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(0, 153, 216, 0.15);
}

.faq-question {
    padding: 22px 28px;
    background: linear-gradient(135deg, #f9f9fb 0%, #ffffff 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    background: linear-gradient(135deg, #f0f4f8 0%, #f9f9fb 100%);
}

.faq-item.active .faq-question {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.faq-question h4 {
    color: var(--primary);
    font-size: 16px;
    margin: 0;
    font-weight: 700;
    flex: 1;
}

.faq-item.active .faq-question h4 {
    color: white;
}

.toggle {
    color: var(--primary);
    font-weight: bold;
    font-size: 20px;
    transition: transform 0.3s ease;
    min-width: 24px;
    text-align: center;
}

.faq-item.active .toggle {
    color: white;
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.35s ease;
    background-color: white;
}

.faq-item.active .faq-answer {
    padding: 24px 28px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* ==================== BOOKING SECTION ==================== */

.booking-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, #f0f4f8 100%);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.booking-form-section h2 {
    color: var(--primary);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.booking-form-section > p {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.contact-info-box {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border-left: 5px solid var(--primary);
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.contact-info-box p {
    color: var(--text-dark);
    font-size: 14px;
    margin: 12px 0;
    font-weight: 550;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
    padding: 14px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 153, 216, 0.1);
}

.booking-form select {
    cursor: pointer;
}

.booking-form textarea {
    resize: vertical;
    min-height: 120px;
}

.booking-map-section {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.map-placeholder {
    background: linear-gradient(135deg, #e8e8e8 0%, #d0d0d0 100%);
    border-radius: 12px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-lighter);
    font-weight: 600;
    border: 2px dashed var(--border-color);
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 153, 216, 0.05) 0%, transparent 100%);
}

/* ==================== DOCTORS SECTION ==================== */

.doctors-section {
    padding: 100px 0;
    background: white;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.doctor-card {
    background: white;
    padding: 32px 24px;
    border-radius: 14px;
    border: 1.5px solid var(--border-color);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInCard 0.6s ease;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--primary));
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    z-index: 10;
}

.doctor-card:hover::before {
    width: 100%;
}

.doctor-card:hover {
    border-color: var(--primary);
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0, 153, 216, 0.2);
}
.doctor-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8ecf0 100%);
    border-radius: 50%;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.doctor-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-avatar {
    transform: scale(1.1);
}

.doctor-card:hover .doctor-image {
    transform: scale(1.08);
}

.doctor-card h3 {
    color: var(--primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.doctor-title {
    color: var(--danger);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
}

.doctor-qualification {
    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* ==================== FOOTER ==================== */

.footer {
    background: linear-gradient(135deg, #1a2332 0%, #0f1419 100%);
    color: #aaaaaa;
    padding: 70px 0 20px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 153, 216, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-section h4 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.footer-section p {
    font-size: 13px;
    line-height: 1.8;
    color: #888888;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #888888;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 153, 216, 0.2), transparent);
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
    color: #666666;
    position: relative;
    z-index: 1;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .find-test-section,
    .faq-section,
    .booking-section,
    .doctors-section {
        padding: 80px 0;
    }

    .booking-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .map-placeholder {
        min-height: 400px;
    }

    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .find-test-section,
    .faq-section,
    .booking-section,
    .doctors-section {
        padding: 60px 0;
    }

    .find-test-section h2 {
        font-size: 32px;
    }

    .booking-form-section h2 {
        font-size: 28px;
    }

    .doctors-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .search-box-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .find-test-section,
    .faq-section,
    .booking-section,
    .doctors-section {
        padding: 40px 0;
    }

    .find-test-section h2 {
        font-size: 24px;
    }

    .booking-form-section h2 {
        font-size: 24px;
    }

    .faq-question,
    .contact-info-box {
        padding: 18px 20px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 20px;
    }

    .booking-form input,
    .booking-form select,
    .booking-form textarea {
        font-size: 13px;
    }

    .doctor-avatar {
        width: 100px;
        height: 100px;
    }

    .doctor-card h3 {
        font-size: 16px;
    }
}

/* ==================== SCROLL PROGRESS INDICATORS ==================== */

.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--danger));
    width: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 153, 216, 0.4);
    transition: width 0.1s linear;
}

.scroll-progress-circle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 153, 216, 0.25);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.scroll-progress-circle.show {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.scroll-progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    position: absolute;
}

.scroll-progress-svg circle.progress-bg {
    fill: none;
    stroke: #e8e8e8;
    stroke-width: 3;
}

.scroll-progress-svg circle.progress-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 3;
    stroke-dasharray: 282.7;
    stroke-dashoffset: 282.7;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.2s ease;
}

.scroll-percentage {
    position: relative;
    z-index: 2;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

/* Scrolling Indicator Text */
.scroll-indicator {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    z-index: 1;
}

.scroll-indicator-text {
    position: absolute;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: rotateText 8s linear infinite;
    transform-origin: 45px 45px;
}

@keyframes rotateText {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Animated Dots */
.scroll-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 153, 216, 0.4);
    animation: rotateDot 3s linear infinite;
}

.scroll-dot:nth-child(1) {
    animation-delay: 0s;
}

.scroll-dot:nth-child(2) {
    animation-delay: 0.75s;
}

.scroll-dot:nth-child(3) {
    animation-delay: 1.5s;
}

.scroll-dot:nth-child(4) {
    animation-delay: 2.25s;
}

@keyframes rotateDot {
    0% {
        top: 2px;
        left: 50%;
        transform: translateX(-50%);
    }
    25% {
        top: 50%;
        right: 2px;
        left: auto;
        transform: translateY(-50%);
    }
    50% {
        bottom: 2px;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    75% {
        top: 50%;
        left: 2px;
        right: auto;
        transform: translateY(-50%);
    }
    100% {
        top: 2px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 160px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 5px 20px rgba(0, 153, 216, 0.3);
    z-index: 997;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 153, 216, 0.4);
}

/* Section Highlight Animation */
@keyframes sectionHighlight {
    0% {
        background-color: rgba(0, 153, 216, 0.2);
    }
    50% {
        background-color: rgba(0, 153, 216, 0.4);
    }
    100% {
        background-color: transparent;
    }
}

.section-highlight {
    animation: sectionHighlight 2s ease;
}

/* Slide animations for notifications */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* Mobile adjustments for progress indicator */
@media (max-width: 768px) {
    .scroll-progress-circle {
        width: 80px;
        height: 80px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-progress-svg circle {
        stroke-width: 3;
    }

    .scroll-indicator-text {
        font-size: 9px;
        transform-origin: 40px 40px;
    }

    .scroll-dot {
        width: 5px;
        height: 5px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        font-size: 16px;
        bottom: 130px;
        right: 20px;
    }

    .scroll-progress-bar {
        height: 3px;
    }
}

@media (max-width: 480px) {
    .scroll-progress-circle {
        width: 70px;
        height: 70px;
        bottom: 15px;
        right: 15px;
    }

    .scroll-progress-svg circle {
        stroke-width: 2.5;
    }

    .scroll-indicator-text {
        font-size: 8px;
        letter-spacing: 1px;
        transform-origin: 35px 35px;
    }

    .scroll-dot {
        width: 4px;
        height: 4px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 14px;
        bottom: 115px;
        right: 15px;
    }
}
