/* =========================================================
   DOCTORS PAGE — COMPACT BANNER + SEARCH
   Independent from homepage dco-* classes
========================================================= */

body.landing-mode2 {
   --doctor-page-shell-max-width: 1600px;
   --doctor-page-shell-padding: clamp(14px, 3vw, 28px);
}

body.landing-mode2 .doc-search-shell,
body.landing-mode2 .public-page-main,
body.landing-mode2 #footer-container .footer-container {
   width: min(100%, var(--doctor-page-shell-max-width));
   max-width: var(--doctor-page-shell-max-width);
   margin-left: auto;
   margin-right: auto;
   padding-left: var(--doctor-page-shell-padding);
   padding-right: var(--doctor-page-shell-padding);
   box-sizing: border-box;
}

body.landing-mode2 #footer-container .footer {
    padding-left: 0;
    padding-right: 0;
}

.doc-search-shell {
   width: 100%;
   padding: 0px 0px 24px;
   box-sizing: border-box;
   background: #f8fbff;
}

.doc-appointment-banner,
.doc-search-bar {
   width: 100%;
   max-width: none;
   margin-left: auto;
   margin-right: auto;
}


/* =========================================================
   APPOINTMENT BANNER
========================================================= */

.doc-appointment-banner {
    position: relative;

    min-height: 138px;

    display: grid;
    grid-template-columns:
        minmax(320px, 1.35fr)
        300px
        minmax(430px, 1fr);

    align-items: stretch;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #e5edf6;
    border-radius: 18px;

    box-shadow: 0 8px 24px rgba(11, 63, 117, 0.06);
    padding: 0;
}


/* Left text */

.doc-banner-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 20px 0;
}

.doc-banner-copy h2 {
    margin: 0;

    color: #0b3f75;

    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.doc-banner-copy h2 span {
    display: block;
    margin-top: 4px;
}

.doc-banner-copy p {
    margin: 10px 0 0;

    color: #53657a;

    font-size: 18px;
    font-weight: 500;
}

.doc-red {
    color: #ef233c;
}

.doc-green {
    color: #00a64f;
}


/* Doctor */

.doc-banner-doctor {
    background-image: url("/public/images/hospital-background-v2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;

    width: 100%;
    min-width: 300px;
    height: 138px;

    overflow: hidden;

    background: linear-gradient(
        90deg,
        #f8fbff 0%,
        #eef7fb 50%,
        #f8fbff 100%
    );
}

.doc-banner-doctor-visual {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translateX(-50%);
    z-index: 2;
}

.doc-banner-doctor img.doc-banner-doctor-img {
    position: absolute;
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    object-fit: contain;
    object-position: center top;
    transform-origin: center top;
}

/* Female doctor */

.doc-banner-doctor img.doc-banner-female {
    top: 0;
    left: 72%;
    height: 410px;
    transform: translateX(-50%);
    z-index: 2;
}

/* Male doctor */

.doc-banner-doctor img.doc-banner-male {
    top: 0;
    left: 42%;
    height: 410px;
    transform: translateX(-50%);
    z-index: 1;
}


/* Benefits */

.doc-banner-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.doc-benefit {
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 14px 10px;

    color: #ffffff;
    text-align: center;
}

.doc-benefit-red {
    background: #f32232;
}

.doc-benefit-green {
    background: #02a758;
}

.doc-benefit-blue {
    background: #0b3f7c;
}

.doc-benefit-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 8px;

    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;

    font-size: 17px;
}

.doc-benefit span {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}


/* =========================================================
   SEARCH BAR
========================================================= */

.doc-search-bar {
    position: relative;
    z-index: 20;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr))
        minmax(190px, auto);

    gap: 10px;

    margin-top: 16px;

    padding: 0;

    background: #ffffff;

    border: 1px solid #e2ebf5;
    border-radius: 18px;

    box-shadow: 0 8px 24px rgba(11, 63, 117, 0.08);
}


/* Field */

.doc-search-field {
    position: relative;

    min-width: 0;
    min-height: 62px;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 8px 12px;

    background: #f6f9fd;

    border: 1px solid transparent;
    border-radius: 14px;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.doc-search-field:focus-within {
    z-index: 30;

    background: #ffffff;

    border-color: #bfd7f6;

    box-shadow: 0 4px 14px rgba(10, 75, 161, 0.08);
}


/* Icons */

.doc-search-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    font-size: 16px;
}

.doc-icon-blue {
    background: #0a58ca;
}

.doc-icon-green {
    background: #09a95b;
}

.doc-icon-red {
    background: #f12d37;
}


/* Content */

.doc-search-content {
    min-width: 0;
    flex: 1;
}

.doc-search-content label {
    display: block;

    margin: 0 0 3px;

    color: #0b3f75;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.doc-search-content input {
    width: 100%;
    min-width: 0;

    margin: 0;
    padding: 0;

    border: 0;
    outline: none;

    background: transparent;

    color: #26384a;

    font-family: inherit;
    font-size: 12px;
    line-height: 1.3;
}

.doc-search-content input::placeholder {
    color: #8996a8;
}


/* Search Button */

.doc-search-button {
    min-height: 62px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 22px;

    border: 0;
    border-radius: 30px;

    background: #0a438c;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.doc-search-button:hover {
    background: #083773;

    transform: translateY(-1px);

    box-shadow: 0 7px 16px rgba(10, 67, 140, 0.18);
}

.doc-search-button:focus-visible {
    outline: 3px solid rgba(10, 88, 202, 0.22);
    outline-offset: 2px;
}


/* =========================================================
   DROPDOWNS
========================================================= */

.doc-search-dropdown {
    position: absolute;

    top: calc(100% + 6px);
    left: 0;

    width: 100%;
    max-height: 260px;

    overflow-y: auto;

    display: none;

    background: #ffffff;

    border: 1px solid #dae5f0;
    border-radius: 12px;

    box-shadow: 0 12px 30px rgba(15, 42, 77, 0.14);

    z-index: 1000;
}

.doc-search-dropdown.show,
.doc-search-dropdown.active {
    display: block;
}


/* Compatibility with locate_special.js if it injects generic items */

.doc-search-dropdown .dropdown-item,
.doc-search-dropdown .suggestion-item {
    padding: 10px 12px;

    color: #26384a;

    font-size: 12px;

    cursor: pointer;
}

.doc-search-dropdown .dropdown-item:hover,
.doc-search-dropdown .suggestion-item:hover {
    background: #f2f7fd;
}


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

@media (max-width: 1150px) {

     .doc-appointment-banner {
        grid-template-columns:
            minmax(270px, 1.2fr)
            240px
            minmax(390px, 1fr);
    }

    .doc-banner-copy {
        padding: 20px 24px;
    }

    .doc-banner-copy h2 {
        font-size: 22px;
    }

    .doc-banner-doctor {
    min-width: 240px;
    height: 138px;
}

.doc-banner-doctor img.doc-banner-doctor-img {
    height: 330px;
}

.doc-banner-doctor img.doc-banner-female {
    left: 54%;
}

.doc-banner-doctor img.doc-banner-male {
    left: 40%;
}

     .doc-search-bar {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .doc-search-button {
        grid-column: 1 / -1;
        min-height: 50px;
        border-radius: 14px;
    }
}


@media (max-width: 800px) {

    .doc-search-shell {
        padding: 12px 14px 20px;
    }

    .doc-appointment-banner {
        grid-template-columns: 1fr;
    }

    .doc-banner-copy {
        text-align: center;
    }

   .doc-banner-doctor {
    width: 100%;
    min-width: 0;
    height: 175px;
}

.doc-banner-doctor img.doc-banner-doctor-img {
    height: 280px;
}

.doc-banner-doctor img.doc-banner-female {
    left: 54%;
}

.doc-banner-doctor img.doc-banner-male {
    left: 40%;
}

    .doc-banner-benefits {
        min-height: 120px;
    }

    .doc-search-bar {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 560px) {

    .doc-banner-copy {
        padding: 20px 16px;
    }

    .doc-banner-copy h2 {
        font-size: 20px;
    }

    .doc-banner-benefits {
        grid-template-columns: 1fr;
    }

    .doc-benefit {
        min-height: 82px;
    }

    .doc-search-bar {
        grid-template-columns: 1fr;

        gap: 8px;

        padding: 8px;
    }

    .doc-search-button {
        grid-column: auto;
        width: 100%;
    }

    .doc-banner-doctor {
    height: 160px;
}

.doc-banner-doctor img.doc-banner-male {
    height: 220px;
}

.doc-banner-doctor img.doc-banner-female {
    top: 0;
    left: 54%;
    height: 220px;
}

}