﻿
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #f7fbfd;
    color: #203d59;
    font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select {
    font-family: inherit;
}


/* =========================================================
           HEADER
        ========================================================= */

.top-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #dce8ee;
    padding: 11px 30px;
}

.header-inner {
    max-width: 1500px;
    margin: auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* Logo */

.hospital-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .hospital-logo img {
        max-width: 365px;
        height: auto;
        display: block;
    }

.hospital-name {
    font-size: 22px;
    font-weight: 700;
    color: #243c50;
}

.hospital-tagline {
    margin-top: 4px;
    color: #07898b;
    font-size: 13px;
    font-style: italic;
}


/* Header links */

.header-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .header-menu a {
        color: #243e58;
        font-size: 13px;
        font-weight: 600;
        text-decoration: none;
    }

        .header-menu a:hover {
            color: #078b8d;
        }

.patient-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #078b8d;
    color: #ffffff !important;
    padding: 11px 20px;
    border-radius: 5px;
    font-weight: 700 !important;
}


/* =========================================================
           HERO
        ========================================================= */

.hero {
    width: 100%;
    min-height: 105px;
    background: linear-gradient( 90deg, #078b8d 0%, #0b9194 45%, rgba(11,145,148,.55) 100% );
    position: relative;
    overflow: hidden;
}

.hero-inner {
    max-width: 1500px;
    min-height: 105px;
    margin: auto;
    display: flex;
    align-items: center;
    padding: 0 35px;
    position: relative;
    z-index: 2;
}

.hero-icon {
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 31px;
    margin-right: 20px;
}

.hero-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 6px;
}

.hero-subtitle {
    color: #ffffff;
    font-size: 14px;
}


/* =========================================================
           MAIN
        ========================================================= */

.page-container {
    max-width: 1500px;
    margin: 18px auto 30px;
    padding: 0 20px;
}

.main-layout {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}


/* =========================================================
           LEFT PANEL
        ========================================================= */

.left-panel {
    background: #ffffff;
    border: 1px solid #d9e6ed;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 7px rgba(40,70,90,.04);
}


/* Doctor / Department tabs */

.search-tabs {
    padding: 1px 1px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    box-sizing: border-box;
}

.search-tab {
    height: 48px;
    border: none;
    outline: none;
    background: #edf4f7;
    color: #31516b;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    /* Important for LinkButton */
    text-decoration: none !important;
    /* Proper icon + text alignment */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

    /* Remove underline in every state */
    .search-tab,
    .search-tab:hover,
    .search-tab:focus,
    .search-tab:active,
    .search-tab:visited {
        text-decoration: none !important;
    }

        /* First tab */
        .search-tab:first-child {
            border-radius: 8px 0 0 8px;
        }

        /* Second tab */
        .search-tab:last-child {
            border-radius: 0 8px 8px 0;
        }

        /* Active tab */
        .search-tab.active {
            background: #078f91;
            color: #ffffff;
        }

        /* Hover */
        .search-tab:not(.active):hover {
            background: #e2edf1;
            color: #078f91;
        }

        /* Icons */
        .search-tab i {
            margin-right: 9px;
            font-size: 16px;
            line-height: 1;
        }

/* Mobile */
@media (max-width: 576px) {
    .search-tabs {
        padding: 10px 10px 0;
    }

    .search-tab {
        height: 46px;
        font-size: 14px;
    }

        .search-tab i {
            margin-right: 6px;
            font-size: 14px;
        }
}


/* Search area */

.doctor-search-area {
    padding: 14px;
}

.search-panel {
    display: none;
}

    .search-panel.active {
        display: block;
    }


/* =========================================================
           SELECT2
        ========================================================= */

.select2-container {
    width: 100% !important;
}

    .select2-container .select2-selection--single {
        height: 46px !important;
        border: 1px solid #d4e0e7 !important;
        border-radius: 6px !important;
        background: #ffffff !important;
    }

        .select2-container .select2-selection--single .select2-selection__rendered {
            line-height: 44px !important;
            padding-left: 14px !important;
            color: #334e65 !important;
            font-size: 14px;
        }

        .select2-container .select2-selection--single .select2-selection__arrow {
            height: 44px !important;
            right: 7px !important;
        }

.select2-dropdown {
    border-color: #cbdde6 !important;
    border-radius: 5px !important;
}

.select2-results__option {
    padding: 9px 12px !important;
    font-size: 13px;
}

.select2-results__option--highlighted {
    background: #078b8d !important;
}


/* =========================================================
           DOCTOR PROFILE
        ========================================================= */

.profile-title {
    background: #078b8d;
    color: #ffffff;
    padding: 14px 18px;
    font-size: 18px;
    font-weight: 700;
}


.doctor-profile {
    padding: 18px;
}


/* Doctor image */

.doctor-photo {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

    .doctor-photo img {
        width: 180px;
        height: 205px;
        object-fit: cover;
        border-radius: 9px;
        border: 1px solid #d8e5eb;
        background: #eef5f8;
        box-shadow: 0 3px 12px rgba(30,70,90,.12);
    }


/* Doctor basic details */

.doctor-basic {
    text-align: center;
    padding-bottom: 17px;
    border-bottom: 1px solid #e2ebef;
}

.doctor-name {
    font-size: 23px;
    font-weight: 700;
    color: #193d5d;
    margin-bottom: 9px;
}

.doctor-speciality {
    display: inline-block;
    background: #e5f7f7;
    color: #078487;
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 9px;
}

.doctor-rating {
    font-size: 13px;
    color: #577088;
}

    .doctor-rating i {
        color: #f3aa13;
        margin-right: 4px;
    }


/* Profile information */

.profile-details {
    padding-top: 5px;
}

.profile-row {
    display: grid;
    grid-template-columns: 32px 110px 1fr;
    gap: 7px;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f5;
    font-size: 13px;
    line-height: 1.45;
}

    .profile-row:last-child {
        border-bottom: 0;
    }

    .profile-row .icon {
        color: #078b8d;
        font-size: 16px;
        padding-top: 2px;
    }

.profile-label {
    color: #678096;
    font-weight: 600;
}

.profile-value {
    color: #2c4861;
    font-weight: 600;
}


/* About doctor */

.about-doctor {
    margin-top: 14px;
    padding-top: 15px;
    border-top: 1px solid #e2ebef;
}

    .about-doctor h4 {
        margin: 0 0 8px;
        color: #086f73;
        font-size: 15px;
    }

    .about-doctor p {
        margin: 0;
        color: #587087;
        font-size: 13px;
        line-height: 1.65;
    }


/* Full profile button */

.profile-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 15px;
    border: 1px solid #078b8d;
    border-radius: 6px;
    background: #ffffff;
    color: #078b8d;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

    .profile-button:hover {
        background: #078b8d;
        color: #ffffff;
    }


/* =========================================================
           RIGHT PANEL
        ========================================================= */

.right-panel {
    background: #ffffff;
    border: 1px solid #d9e6ed;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 7px rgba(40,70,90,.04);
}


/* Section title */

.section-title {
    color: #183d5d;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 13px;
}


/* =========================================================
           CONSULTATION TYPE
        ========================================================= */

.consultation-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e1e9ed;
}

.consultation-card {
    min-height: 88px;
    border: 1px solid #d5e2e8;
    border-radius: 8px;
    padding: 14px 17px;
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    cursor: pointer;
    background: #ffffff;
}

    .consultation-card.active {
        border: 2px solid #08a6a6;
        background: #f0fbfb;
    }

    .consultation-card:hover {
        border-color: #08a6a6;
    }

.consultation-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #078b8d;
    color: #ffffff;
    font-size: 21px;
    flex-shrink: 0;
}

.consultation-card.video .consultation-icon {
    background: #3775ba;
}

.consultation-info h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #183c59;
}

.consultation-info p {
    margin: 0;
    font-size: 12px;
    color: #62778b;
}

.consultation-check {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 20px;
    height: 20px;
    background: #078b8d;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
}


/* =========================================================
           DATE
        ========================================================= */

.date-section {
    padding-top: 17px;
}

.date-label {
    display: block;
    margin-bottom: 9px;
    font-size: 17px;
    font-weight: 700;
    color: #183d5d;
}


.date-input-wrapper {
    position: relative;
    width: 100%;
}

.date-input {
    width: 100%;
    height: 48px;
    border: 1px solid #d5e2e9;
    border-radius: 7px;
    padding: 0 45px 0 14px;
    font-size: 14px;
    color: #38546c;
    background: #ffffff;
    outline: none;
}

    .date-input:focus {
        border-color: #078b8d;
        box-shadow: 0 0 0 3px rgba(8,139,141,.08);
    }

.date-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a7393;
    font-size: 18px;
    pointer-events: none;
}


/* =========================================================
           SLOTS
        ========================================================= */

.slots-section {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #e1e9ed;
}

.slots-heading {
    color: #087276;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 13px;
}

    .slots-heading strong {
        color: #087f82;
    }

    .slots-heading span {
        color: #61788c;
        font-size: 12px;
        font-weight: 500;
    }


/* Five columns */

.slot-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(100px, 1fr));
    gap: 9px;
}

.time-slot {
    width: 100%;
    height: 42px;
    border: 1px solid #28b4b5;
    border-radius: 5px;
    background: #effafa;
    color: #087b7e;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

    .time-slot:hover {
        background: #078b8d;
        border-color: #078b8d;
        color: #ffffff;
    }

    .time-slot.selected {
        background: #078b8d;
        border-color: #078b8d;
        color: #ffffff;
    }


    /* Booked */

    .time-slot.Booked {
        background: #eef1f4;
        border-color: #d9e0e5;
        color: #a5afb8;
        text-decoration: line-through;
        cursor: not-allowed;
    }

        .time-slot.Booked:hover {
            background: #eef1f4;
            border-color: #d9e0e5;
            color: #a5afb8;
        }


    /* Not Available */

    .time-slot.NotAvailable {
        background: #f4f5f6;
        border-color: #e5e8ea;
        color: #bac1c7;
        cursor: not-allowed;
    }


/* =========================================================
           BOOKING FOOTER
        ========================================================= */

.booking-footer {
    margin-top: 16px;
    background: #f1f7fc;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.booking-message {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #56728b;
    font-size: 12px;
    line-height: 1.5;
}

    .booking-message i {
        color: #4187c1;
        font-size: 19px;
    }

.book-button {
    min-width: 180px;
    height: 43px;
    border: 0;
    border-radius: 5px;
    background: #078b8d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

    .book-button:hover {
        background: #066f72;
    }


/* =========================================================
           FOOTER
        ========================================================= */

.page-footer {
    background: #076c70;
    color: #ffffff;
    text-align: center;
    padding: 13px;
    font-size: 12px;
    margin-top: 30px;
}


/* =========================================================
           TABLET
        ========================================================= */

@media (max-width: 1100px) {

    .main-layout {
        grid-template-columns: 350px 1fr;
    }

    .slot-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .header-menu {
        gap: 15px;
    }

    .hospital-logo img {
        max-width: 300px;
    }
}


/* =========================================================
           MOBILE
        ========================================================= */

@media (max-width: 800px) {

    .top-header {
        padding: 12px 15px;
    }

    .header-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .hospital-logo {
        justify-content: center;
    }

        .hospital-logo img {
            max-width: 280px;
        }

    .header-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    .hero-inner {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 21px;
    }

    .main-layout {
        grid-template-columns: 1fr;
    }

    .consultation-types {
        grid-template-columns: 1fr;
    }

    .slot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
           SMALL MOBILE
        ========================================================= */

@media (max-width: 450px) {

    .page-container {
        padding: 0 10px;
    }

    .right-panel {
        padding: 13px;
    }

    .left-panel {
        width: 100%;
    }

    .doctor-name {
        font-size: 20px;
    }

    .doctor-photo img {
        width: 150px;
        height: 175px;
    }

    .profile-row {
        grid-template-columns: 28px 90px 1fr;
        font-size: 12px;
    }

    .slot-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 7px;
    }

    .time-slot {
        height: 40px;
        font-size: 12px;
    }

    .booking-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .book-button {
        width: 100%;
    }
}

.consultation-fees-box {
    margin-top: 16px;
    padding: 15px;
    background: #fffaf4;
    border: 1px solid #f1d7b7;
    border-radius: 8px;
}

.fees-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9a5b18;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

    .fees-title i {
        color: #078b8d;
        font-size: 15px;
    }

.fee-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid #f1e4d5;
}

    .fee-row:last-child {
        border-bottom: 0;
    }

.fee-label {
    color: #587087;
    font-size: 13px;
}

.fee-amount {
    color: #087d80;
    font-size: 14px;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #ead9c7;
    border-radius: 5px;
    padding: 5px 10px;
}

/* =========================================
   SGRH APPOINTMENT TIME SLOTS
   Unique class names - no conflict
   ========================================= */

.appointment-slots {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin-top: 12px;
}

.appointment-time {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px;
    padding: 0 6px !important;
    margin: 0 !important;
    box-sizing: border-box;
    background: #f8fcfc !important;
    border: 1px solid #07999d !important;
    border-radius: 5px !important;
    color: #111 !important;
    font-family: "Segoe UI", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Hover */
/*.appointment-time:hover {
                background: #07999d !important;
                border-color: #07999d !important;
                color: #ffffff !important;
            }*/

/* Selected */
.appointment-time-selected {
    background: #07999d !important;
    border-color: #07999d !important;
    color: #ffffff !important;
}

/* Disabled */
.appointment-time-disabled {
    background: #e7e7e7 !important;
    border: 1px solid #d0d0d0 !important;
    color: #8d817b !important;
    text-decoration: line-through;
    cursor: not-allowed;
    opacity: 1 !important;
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .appointment-slots {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .appointment-time {
        height: 40px !important;
        font-size: 12px !important;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .appointment-slots {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .appointment-time {
        height: 40px !important;
        min-height: 40px;
        font-size: 12px !important;
    }
}

/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 400px) {

    .appointment-slots {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .appointment-time {
        height: 42px !important;
        font-size: 12px !important;
    }
}

.slot-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin: 10px 0 18px 0;
    background: #fff8e6;
    border: 1px solid #f0c36d;
    border-radius: 10px;
    color: #664d03;
    font-size: 14px;
    line-height: 1.5;
}

.slot-warning-icon {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}

.slot-warning-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .slot-warning-content strong {
        font-size: 15px;
    }

.slot-warning-note {
    font-size: 13px;
    color: #7a5c00;
}

@media (max-width: 576px) {
    .slot-warning {
        padding: 12px;
        font-size: 13px;
    }

    .slot-warning-content strong {
        font-size: 14px;
    }

    .slot-warning-note {
        font-size: 12px;
    }
}

.slot-message {
    width: 100%;
    margin: 12px 0;
    padding: 12px 16px;
    background: #fff8e1;
    border: 1px solid #f0c36d;
    border-radius: 8px;
    text-align: center;
    box-sizing: border-box;
}

.slot-message-text {
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    color: #8a5a00;
}
