@media (min-width: 768px) and (max-width: 1450px) {
    .h7_header-top-list {
        flex-wrap: wrap;
        row-gap: 6px;
    }

        .h7_header-top-list li {
            font-size: 13px;
        }

            .h7_header-top-list li:not(:last-child) {
                margin-right: 10px;
                padding-right: 14px;
            }
}

@media (min-width: 992px) {
    .h7_header-area .row.align-items-center {
        flex-wrap: nowrap;
    }

        .h7_header-area .row.align-items-center > [class*="col-"] {
            min-width: 0;
        }
}

@media (min-width: 1200px) {
    .h7_header-area .h7_main-menu ul li {
        margin-right: 22px;
    }

        .h7_header-area .h7_main-menu ul li a {
            font-size: 14.5px;
        }

    .h7_header-area .h7_header-right {
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
}

.enquiry-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #800000;
    color: #fff !important;
    border: 2px solid #FFD700;
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

    .enquiry-header-btn i {
        color: #FFD700;
    }

    .enquiry-header-btn:hover {
        background: #FFD700;
        color: #800000 !important;
        border-color: #800000;
    }

        .enquiry-header-btn:hover i {
            color: #800000;
        }

.enquiry-header-btn-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #800000;
    color: #FFD700 !important;
    border: 2px solid #FFD700;
    margin-right: 8px;
    font-size: 16px;
}

/* ---------- Modal shell ---------- */
.enquiry-modal .modal-dialog {
    max-width: 1000px !important;
}

.enquiry-modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

.enquiry-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    border: none;
}

    .enquiry-modal-close i {
        color: #800000;
        font-size: 16px;
    }
.enquiry-modal .modal-dialog {
    max-width: 1000px !important;
}

/* ---------- Left info panel ---------- */
.enquiry-modal-left {
    background: linear-gradient(150deg, rgba(128, 0, 0, 0.93) 0%, rgba(60, 0, 0, 0.95) 100%), url("../img/doctors/Doctor-Uniform.jpg") center/cover no-repeat;
    padding: 45px 35px;
    display: flex;
    align-items: center;
    position: relative;
    min-height: 100%;
}

    .enquiry-modal-left::after {
        content: "";
        position: absolute;
        inset: 10px;
        border: 1px solid rgba(255, 215, 0, 0.35);
        border-radius: 8px;
        pointer-events: none;
    }

.enquiry-left-inner {
    position: relative;
    z-index: 1;
}

.enquiry-left-logo {
    height: 55px;
    margin-bottom: 20px;
    background: #fff;
    border-radius: 50%;
    padding: 5px;
}

.enquiry-left-title {
    color: #fff;
    font-weight: 800;
    font-size: 26px;
    margin: 0;
}

.enquiry-left-batch {
    display: inline-block;
    color: #800000;
    background: #FFD700;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-top: 10px;
}

.enquiry-left-divider {
    width: 50px;
    height: 3px;
    background: #FFD700;
    margin: 22px 0;
}

.enquiry-left-info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    align-items: flex-start;
}

    .enquiry-left-info-item i {
        color: #FFD700;
        font-size: 20px;
        margin-top: 3px;
    }

    .enquiry-left-info-item span {
        display: block;
        color: rgba(255, 255, 255, 0.7);
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    .enquiry-left-info-item a {
        color: #fff;
        font-weight: 700;
        font-size: 16px;
    }

        .enquiry-left-info-item a:hover {
            color: #FFD700;
        }

.enquiry-left-note {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 10px;
    margin-bottom: 0;
}

/* ---------- Right form panel ---------- */
.enquiry-modal-right {
    background: #fff;
    padding: 40px 35px;
    max-height: 85vh;
    overflow-y: auto;
}

.enquiry-form-title {
    color: #800000;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 22px;
    border-bottom: 2px solid #FFD700;
    padding-bottom: 14px;
}

/* ---------- Form grid: 2 fields per row ---------- */
.enquiry-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 18px 20px !important;
}

.enquiry-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.enquiry-form-row-full {
    grid-column: 1 / -1 !important;
}

.enquiry-form-row label {
    color: #800000;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.enquiry-form-row input,
.enquiry-form-row select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease;
}

    .enquiry-form-row input:focus,
    .enquiry-form-row select:focus {
        border-color: #800000;
        background: #fff;
    }

.enquiry-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: #fdf7ec;
    border: 1px solid #f0e2b8;
    border-radius: 6px;
    padding: 12px 14px;
    font-size: 12.5px;
    color: #6b5a2a;
    line-height: 1.5;
    margin: 0;
}

    .enquiry-privacy-note i {
        color: #ae2320;
        margin-top: 2px;
    }

.enquiry-submit-btn {
    width: 100%;
    background: #800000;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.3s ease;
}

    .enquiry-submit-btn:hover {
        background: #ae2320;
    }

/* =========================================================
   Homepage inline Enquiry section (same fields, non-modal)
   ========================================================= */
.h7_home-enquiry-area {
    background: #fdf7ec;
    position: relative;
}

.h7_home-enquiry-wrap {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 55px rgba(128, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

    .h7_home-enquiry-wrap .enquiry-modal-left,
    .h7_home-enquiry-wrap .enquiry-modal-right {
        flex: 1 1 0;
    }

    .h7_home-enquiry-wrap .enquiry-modal-left {
        min-width: 320px;
    }

    .h7_home-enquiry-wrap .enquiry-modal-right {
        min-width: 320px;
        max-height: none;
    }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .enquiry-modal-left {
        padding: 32px 28px;
    }

    .enquiry-modal-right {
        padding: 32px 28px;
        max-height: none;
    }

    .h7_home-enquiry-wrap {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .enquiry-left-title {
        font-size: 22px;
    }

    .enquiry-header-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .enquiry-form {
        grid-template-columns: 1fr !important;
    }

    .enquiry-modal .modal-dialog {
        margin: 10px;
    }

    .enquiry-modal-left,
    .enquiry-modal-right {
        padding: 26px 20px;
    }
}

/* =========================================================
   Department Detail Pages
   ========================================================= */
.dept-detail-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

    .dept-detail-img img {
        width: 100%;
        height: 360px;
        object-fit: cover;
    }

.dept-detail-img-tag {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: #800000;
    color: #fff;
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid #FFD700;
}

    .dept-detail-img-tag i {
        color: #FFD700;
        margin-right: 6px;
    }

.dept-detail-title {
    color: #1E1E1E;
    font-weight: 800;
    font-size: 30px;
}

.dept-detail-text {
    color: rgba(30, 30, 30, 0.7);
    font-size: 16px;
    line-height: 1.8;
}

.dept-detail-subtitle {
    color: #800000;
    font-weight: 700;
    font-size: 19px;
    margin-bottom: 16px;
}

.dept-detail-highlight-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .dept-detail-highlight-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
        border-bottom: 1px dashed #e6e6e6;
        color: #333;
        font-size: 15px;
    }

        .dept-detail-highlight-list li i {
            color: #ae2320;
            margin-top: 3px;
        }

.dept-detail-cta {
    background: linear-gradient(135deg, #800000, #5c0000);
    border-radius: 12px;
    padding: 28px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

    .dept-detail-cta h5 {
        color: #fff;
        margin: 0;
        font-size: 17px;
        font-weight: 600;
        max-width: 380px;
    }

    .dept-detail-cta .theme-btn {
        background: #FFD700;
        color: #800000;
        font-weight: 700;
        padding: 12px 26px;
        border-radius: 30px;
        white-space: nowrap;
    }

        .dept-detail-cta .theme-btn:hover {
            background: #fff;
        }

/* Sidebar */
.dept-sidebar {
    background: #fdf7ec;
    border: 1px solid #f0e2b8;
    border-radius: 12px;
    padding: 26px;
}

.dept-sidebar-group {
    margin-bottom: 22px;
}

.dept-sidebar-group-title {
    color: #800000;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #FFD700;
}

.dept-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .dept-sidebar-list li a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 0;
        color: #444;
        font-size: 14.5px;
        transition: color 0.25s ease, padding-left 0.25s ease;
    }

        .dept-sidebar-list li a i {
            color: #ae2320;
            font-size: 12px;
        }

        .dept-sidebar-list li a:hover,
        .dept-sidebar-list li.active a {
            color: #800000;
            font-weight: 700;
            padding-left: 5px;
        }

.dept-sidebar-contact {
    background: #800000;
    border-radius: 10px;
    padding: 22px;
    text-align: center;
    margin-top: 10px;
}

    .dept-sidebar-contact h6 {
        color: #FFD700;
        font-weight: 700;
        margin-bottom: 6px;
    }

    .dept-sidebar-contact p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 13px;
        margin-bottom: 10px;
    }

    .dept-sidebar-contact a {
        color: #fff;
        font-weight: 700;
        font-size: 18px;
    }

@media (max-width: 991px) {
    .dept-detail-img img {
        height: 260px;
    }

    .dept-sidebar {
        margin-top: 30px;
    }
}

.dept-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

    .dept-gallery-item img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

    .dept-gallery-item:hover img {
        transform: scale(1.06);
    }

@media (max-width: 575px) {
    .dept-gallery-item img {
        height: 110px;
    }
}
