/* online_booking.css — styles specific to the booking pages
   (.booking-* panel/grid + .doctor-item / .doctors-row cards).
   Requires main.css to be loaded first. Also needed on about.php, which
   reuses the doctor-list styling for its 'Meet Our Team' section. */

/* =========================================================
   BOOK APPOINTMENT
========================================================= */

.booking-section {
    /* max-width: var(--page-width); */
    margin: 20px auto;
    padding: 65px clamp(30px, 5vw, 80px);

    background: var(--light-blue);
}


/* Header */

.booking-header {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.booking-header h2 {
    margin-bottom: 18px;

    font-size: clamp(36px, 3.5vw, 54px);
    line-height: 1.1;

    color: var(--navy);
}

.booking-header>p:not(.eyebrow) {
    max-width: 650px;
    margin: 0 auto;

    font-size: 17px;
    line-height: 1.7;
}


/* Two Columns */

.booking-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 25px;
    /* max-width: 1200px; */
    margin: auto;
}


/* Panels */

.booking-panel {
    padding: 35px;

    background: var(--white);

    border-radius: var(--radius);
    border: 1px solid rgba(7, 62, 85, 0.08);

    box-shadow: 0 8px 25px rgba(7, 62, 85, 0.08);
}


/* Doctor Heading */

.booking-panel-heading {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 30px;
    padding-bottom: 20px;

    border-bottom: 1px solid rgba(7, 62, 85, 0.10);
}

.booking-heading-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 25px;

    background: var(--light-green);
    border-radius: 50%;
}

.booking-panel-heading h3 {
    margin: 0 0 4px;

    font-size: 24px;
    color: var(--navy);
}

.booking-panel-heading p {
    margin: 0;

    font-size: 14px;
}


/* Clinic Panel */

.booking-clinic-panel h3 {
    margin-bottom: 12px;

    font-size: 28px;
    color: var(--navy);
}

.booking-clinic-intro {
    margin-bottom: 30px;

    line-height: 1.65;
}


/* Contact Details */

.booking-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;

    padding: 16px 0;

    border-bottom: 1px solid rgba(7, 62, 85, 0.08);
}

.booking-contact-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    background: var(--light-green);
    border-radius: 50%;

    font-size: 19px;
}

.booking-contact-item strong {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;
    color: var(--navy);
}

.booking-contact-item p {
    margin: 0;

    line-height: 1.5;
}

.booking-contact-item a {
    color: var(--teal);
    text-decoration: none;
}

.booking-contact-item a:hover {
    text-decoration: underline;
}


/* Booking Button */

.booking-button {
    width: 100%;

    margin-top: 28px;

    text-align: center;
}


/* Contact item when the entire row is a link */
a.booking-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: inherit;
    text-decoration: none;
}

.booking-contact-item > div {
    flex: 1;
    min-width: 0;
}

.booking-contact-item .booking-contact-icon {
    flex-shrink: 0;
}

a.booking-contact-item:hover strong,
a.booking-contact-item:hover p {
    text-decoration: underline;
}


@media (max-width: 767px) {
    .booking-section {
        margin: 0;
        padding: 45px 22px;
    }

    .booking-header {
        margin-bottom: 35px;
    }

    .booking-header h2 {
        font-size: clamp(34px, 10vw, 44px);
    }

    .booking-header>p:not(.eyebrow) {
        font-size: 16px;
    }

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .booking-panel {
        padding: 25px 20px;
    }

    .booking-panel-heading h3,
    .booking-clinic-panel h3 {
        font-size: 22px;
    }

    .booking-button {
        width: 100%;
    }
}

/* Doctors List */

.doctors-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

.doctors-row.col-3-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.booking-doctors-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.doctor-item {
    display: flex;
    gap: 15px;
    align-items: center;
    border: solid 1px #e4e4e4;
    padding: 10px;
    border-radius: 0.5rem;
    box-shadow: 0 0px 20px #dee2e6;
    transition: all .3s ease-in-out;
    background-color: #fff;
}

.doctor-item:hover {
    background-color: #f7f7f7;
    transform: translateY(-5px);
}

.doctor-info {
    display: flex;
    flex-direction: column;
}

.doctor-info h4 {
    margin: 0;
    font-size: 1rem;
}

.doctor-info span {
    margin: 0;
    font-size: 0.8rem;
}

@media screen and (max-width:767px) {
    .doctors-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .doctors-row.col-3-items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px;
    }

    .doctor-item {
        flex-direction: column;
        gap: 10px;
    }

    .doctor-photo img {
        width: 40px;
    }

    .doctor-info h4 {
        font-size: 0.9rem;
        line-height: 1.2;
        margin-bottom: 5px;
    }
}