/* SECTION: DOCTOR HERO */

.find-doctor .doctor-hero .container {
    margin: 0 auto;
}

.find-doctor .doctor-hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* COMPONENT: DOCTOR BENEFIT LIST */
.find-doctor .doctor-benefit {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: start;
    gap: 30px;
    font-size: 14px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.find-doctor .doctor-benefit li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.find-doctor .icon-check {
    width: 16px;
    height: 16px;
}

/* COMPONENT: SEARCH FORM */
.find-doctor .doctor-search-form .input-group {
    display: flex;
    max-width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.find-doctor .doctor-search-form input[type="text"] {
    flex: 1;
    padding: 14px 16px;
    border: none;
    outline: none;
    font-size: 14px;
}

.find-doctor .doctor-search-form input:first-child {
    border-right: 1px solid #ccc;
}

.find-doctor .doctor-search-form .submit-button {
    background: #ffc107;
    border: none;
    color: black;
    font-weight: bold;
    padding: 0 24px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.find-doctor .doctor-search-form .submit-button:hover {
    background: #e0a800;
}

.find-doctor .select-wrapper {
    position: relative;
    flex: 1;
    max-height: 60px;
}

.find-doctor .select-wrapper.with-border {
    border-left: 1px solid #ccc;
}

.find-doctor .select-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #555;
    pointer-events: none;
}

.find-doctor .custom-select {
    width: 100%;
    padding: 1px 16px 14px 42px;
    border: none;
    outline: none;
    font-size: 14px;
    appearance: none;
    background-color: white;
    color: #333;
}

.find-doctor .detect-location-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #f1f1f1;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* SECTION: DOCTOR LIST SECTION */
.find-doctor .doctor-list-section {
    background: #fff;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    margin-top: -100px;
    padding: 60px 20px;
    position: relative;
    z-index: 2;
}

/* COMPONENT: FILTER SIDEBAR */
.find-doctor .sticky-sidebar {
    position: sticky;
    top: 120px;
    align-self: flex-start;
    z-index: 10;
    background-color: #fff;
    height: fit-content;
}

.find-doctor .filter-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.find-doctor .filter-box h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.find-doctor .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
}

.find-doctor .filter-group label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
    cursor: pointer;
}

input[type="radio"].custom-radio {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    transition: border 0.3s;
    flex-shrink: 0;
    margin-top: 2px;
}

input[type="radio"].custom-radio:checked {
    border-color: #014e78;
}

input[type="radio"].custom-radio:checked::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    background-color: #014e78;
    border-radius: 50%;
}

input[type="radio"].custom-radio:hover {
    border-color: #014e78;
}

.find-doctor .scrollable-filter {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px;
}

.find-doctor .search-skill {
    padding: 8px 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* COMPONENT: DOCTOR CARD */
.find-doctor .doctor-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.find-doctor .doctor-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    min-height: 230px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.find-doctor .doctor-profile {
    min-width: 200px;
    border-left: 2px solid #e4e4e4;
    padding-left: 10px;
    min-height: 127px;
    height: 100%;
}

.doctor-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px !important;
    /* line-height: 1.5; */
}

.schedule-item {
    display: grid;
    grid-template-columns: 50px auto; /* kolom kiri = hari, kanan = jam */
    align-items: center;
}

.find-doctor .doctor-info {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.find-doctor .doctor-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.find-doctor .doctor-meta h5 {
    margin: 0;
    font-size: 16px;
}

.find-doctor .specialist,
.hospital {
    font-size: 13px;
    margin: 4px 0;
}

.find-doctor .profile-link {
    font-size: 13px;
    color: #005073;
    text-decoration: none;
    position: absolute !important;
    left: 25px;
    bottom: 25px;
}

.find-doctor .profile-link:hover {
    color: #000;
    text-decoration: underline;
}

.find-doctor .profile-link:hover img {
    filter: brightness(0) saturate(100%);
}

/* COMPONENT: DOCTOR EXTRA INFO */
.find-doctor .doctor-extra {
    text-align: left;
    font-size: 13px;
    max-width: 200px;
}

.find-doctor .doctor-extra p {
    margin: 0 0 8px;
}

.find-doctor .text-span-experience {
    color: #1890ff;
}

.find-doctor .btn-book {
    background: #005073;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.find-doctor .btn-book:hover {
    background: #003d5a;
}

/* COMPONENT: PAGINATION */
.find-doctor .pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 14px;
}

.find-doctor .page-links a {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
}

.find-doctor .page-links span {
    display: inline-block;
    margin-left: 8px;
    padding: 4px 10px;
    background: #fff;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
}

.find-doctor .page-links a.active {
    background: #005073;
    color: white;
    border-color: #005073;
}

.find-doctor .page-links span.active {
    background: #005073;
    color: white;
    border-color: #005073;
}

.find-doctor .page-links .chevron-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 6px;
    margin-left: 8px;
    background: #fff;
    transition: background 0.2s ease;
}

.find-doctor .page-links .chevron-btn:hover {
    background: #f0f0f0;
}

.find-doctor .page-links .chevron-btn img {
    display: block;
}

.find-doctor .page-links .chevron-btn .rotate-left {
    transform: rotate(180deg);
}

/* COMPONENT: POPOVER (JADWAL PRAKTIK) */
.find-doctor .schedule-with-popover {
    position: relative;
}

.find-doctor .schedule-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    margin-bottom: 4px;
}

.find-doctor .popover-trigger {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.find-doctor .popover-trigger img {
    filter: brightness(0) saturate(100%);
}

.find-doctor .popover-content {
    display: none;
    position: absolute;
    top: 130%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background-color: #fff;
    color: #333;
    padding: 12px 16px;
    font-size: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    white-space: normal;
    z-index: 10;
}

.find-doctor .popover-trigger:hover .popover-content {
    display: block;
}

.find-doctor .popover-content h3 {
    font-size: 14px;
    margin: 0 0 4px;
    font-weight: 600;
}

.find-doctor .popover-content span {
    font-size: 12px;
    display: block;
    color: #555;
}

.btn-formSearch:hover,
.btn-outline-primary:hover,
.btn-book:hover {
    text-decoration: none;
}

@media (max-width: 1200px) {
    .find-doctor .doctor-hero {
        margin-top: 57px !important;
    }
}

/* HIDE SIDEBAR DI BAWAH 992px (Bootstrap breakpoint lg) */
@media (max-width: 991.98px) {
    .find-doctor .col-4 {
        display: none;
    }

    .find-doctor .col-8 {
        width: 100%;
    }

    .doctor-schedule-list {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        row-gap: 10px;
        column-gap: 37px;
    }

    .find-doctor .profile-link {
        position: relative !important;
        left: 0;
        bottom: 0;
    }
    .find-doctor .doctor-profile {
        border-left: 0px;
        padding-left: 0px;
        min-height: unset;
        height: unset;
    }
}

.find-doctor .mobile-filter {
    display: none !important;
}

.select2-container--bootstrap-5 .select2-dropdown.select2-dropdown--below {
    min-width: 178px;
}

@media (max-width: 991.98px) {
    .find-doctor .mobile-filter {
        display: flex !important;
    }
    .find-doctor .doctor-extra {
        width: 100%;
        max-width: unset;
    }
}

@media (max-width: 768px) {
    .find-doctor .doctor-search-form .input-group {
        flex-direction: column;
        gap: 10px;
        padding: 0px;
    }

    .find-doctor .doctor-search-form .select-wrapper,
    .find-doctor .doctor-search-form .submit-button {
        width: 100%;
        /* border: 1px solid #ced4da !important; */
        border: none !important;
    }

    .find-doctor .doctor-search-form .submit-button {
        height: 50px;
        border-radius: 8px;
    }

    /* hilangkan border kiri antar select biar nggak aneh di layout vertikal */
    .find-doctor .doctor-search-form .select-wrapper.with-border {
        border-left: none;
    }

    /* adjust ikon posisi */
    .find-doctor .select-icon {
        left: 12px;
    }

    .find-doctor .doctor-search-form .input-group {
        background: none !important;
    }
}

@media (max-width: 580px) {
    .find-doctor .doctor-hero h1 {
        font-size: 30px;
    }
    .find-doctor .doctor-info {
        flex-direction: column;
    }

    .find-doctor .doctor-benefit {
        list-style: none;
        gap: 20px;
        font-size: 14px;
        margin-bottom: 30px;
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    .profile-link span {
        font-size: 9pt;
    }
}
