.doctor-appointment-calendar .ui-datepicker {
    width: 100%;
}

.btn-block {
    width: 100%;
}

.doctor-appointment-widget .doctor-appointment-title {
    padding: 10px;
    background: #065a7f;
    color: #FFF;
}

.doctor-appointment-widget .form-control {
    padding: 5px 15px;
    font-size: 16px;
}

.doctor-appointment-datepicker .ui-widget.ui-widget-content {
    width: 100%;
    border: 0px;
    box-shadow: 0 2px 1px -1px rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 1px 3px 0 rgba(0, 0, 0, .12) !important;
}

.doctor-appointment-datepicker .ui-datepicker .ui-datepicker-header {
    background: none;
    border: 0px;
    color: #015c80;
}

.doctor-appointment-datepicker .ui-datepicker-header .ui-state-hover {
    cursor: pointer;
    background: transparent;
    border: 0px;
    right: 2px;
    top: 2px;
}

.doctor-appointment-datepicker .ui-widget-content {
    color: #015c80;
}

.doctor-appointment-datepicker .ui-state-default {
    background: transparent;
    border-color: transparent;
    font-weight: bold;
}

.doctor-appointment-datepicker .ui-widget-content .ui-state-disabled {
    cursor: not-allowed !important;
}

.doctor-appointment-datepicker .ui-widget-content td:not(.ui-datepicker-unselectable) .ui-state-default {
    color: #015c80;
}

.ui-datepicker td.ui-datepicker-current-day a {
    background: #015c80;
    color: #FFF !important;
}

.iframe-lightbox .content-holder {
    max-width: 800px !important;
}

.spesialisasi-wrap .spesialisasi-item {
    height: 170px;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    width: 302px;
    position: relative;
    border-radius: 10px;
    background-size: 100%;
    cursor: pointer;
}

.spesialisasi-wrap .spesialisasi-item .spesialisasi-title {
    font-size: 16px;
    font-weight: 600;
    z-index: 2;
    color: #FFF;
    position: absolute;
    width: 100%;
    margin: 0px;
    line-height: 24px;
}

.spesialisasi-wrap .spesialisasi-item:before {
    background: rgb(0 0 0 / 40%);
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    content: " ";
    border-radius: 10px;
    z-index: 2;
}

/* =============================================
   Doctor Search Page & Card Layout
   ============================================= */

.page-template-page-jadwal-doctor .call_wrapper {
    background-attachment: fixed;
    padding-top: 80px;
    padding-bottom: 50px;
    min-height: 73vh;
}

.find-doctor .search-box {
    padding: 30px 30px 10px 30px;
    border: 2px solid #898989;
    margin-bottom: 30px;
}

.find-doctor .search-box select,
.find-doctor .search-box input[type=text] {
    width: 100%;
    padding: 8px 18px;
    -webkit-box-shadow: inset 0px 5px 21px 0px rgba(0, 0, 0, 0.4);
    -moz-box-shadow: inset 0px 5px 21px 0px rgba(0, 0, 0, 0.4);
    box-shadow: inset 0px 5px 21px 0px rgba(0, 0, 0, 0.4);
    background: #dad8db;
    margin: 0 0 20px 0;
}

.find-doctor .search-box input[type=text] {
    border: 0;
}

.find-doctor .search-box .submit {
    width: 100%;
    padding: 8px 18px;
    margin: 0 0 7px 0;
    background: #065a7f;
    color: #ffffff;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
}

.find-doctor .search-box .submit:hover {
    opacity: 0.8;
}

/*
 * Doctor card — !important needed to override ASP plugin's
 * inline wildcard reset: div.asp_r.asp_r_1 * { border:0; border-radius:0; padding:0; margin:0 }
 */
.doctor-card {
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 0 !important;
}

.doctor-card-body {
    display: flex;
    align-items: flex-start;
    padding: 20px !important;
    gap: 20px;
}

.doctor-card-photo {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50% !important;
    overflow: hidden;
    background: #e8f4f8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.doctor-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.doctor-card-photo a {
    display: block;
    width: 100%;
    height: 100%;
}

.doctor-card-photo .fa-user-md {
    font-size: 40px;
    color: #065a7f;
}

.doctor-card-info {
    flex: 1;
    min-width: 0;
}

.doctor-card-name {
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.doctor-card-name a {
    color: #065a7f;
    text-decoration: none;
}

.doctor-card-name a:hover {
    text-decoration: underline;
}

.doctor-card-specialty,
.doctor-card-location {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px !important;
    line-height: 1.4;
}

.doctor-card-specialty .fa,
.doctor-card-location .fa {
    width: 18px;
    text-align: center;
    margin-right: 6px !important;
    color: #065a7f;
}

.doctor-card-actions {
    display: flex;
    gap: 10px;
    padding: 0 20px 16px !important;
}

.doctor-card-link-profile {
    display: inline-block;
    padding: 8px 20px !important;
    border: 2px solid #065a7f !important;
    color: #065a7f;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}

.doctor-card-link-profile:hover {
    background: #065a7f !important;
    color: #fff;
    text-decoration: none;
}

.btn-buat-janji {
    display: inline-block;
    padding: 8px 20px !important;
    background: #065a7f !important;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
    border: none !important;
}

.btn-buat-janji:hover {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}

/* Schedule section */
.doctor-card-schedule {
    border-top: 1px solid #e0e0e0 !important;
    padding: 16px 20px !important;
    background: #fafafa !important;
}

.doctor-card-schedule .result-table {
    display: block;
}

.doctor-card-schedule .loading-progress {
    text-align: center;
    padding: 10px 0 !important;
    color: #666;
    font-size: 14px;
}

.schedule-item {
    padding: 14px 0 !important;
    border-bottom: 1px solid #ddd !important;
}

.schedule-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.schedule-item:first-child {
    padding-top: 0 !important;
}

.schedule-hospital {
    font-weight: 700;
    font-size: 15px;
    color: #065a7f;
    margin-bottom: 25px !important;
    margin-top: 10px !important;
}

.schedule-hospital .fa {
    margin-right: 8px !important;
}

.schedule-poli {
    font-size: 14px;
    color: #222;
    font-weight: 600;
    margin-bottom: 10px !important;
    padding-left: 0 !important;
    background: #e8f0f4 !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    border-left: 3px solid #065a7f !important;
}

.schedule-days {
    padding: 0 !important;
    margin-top: 4px !important;
}

.schedule-day-row {
    display: flex;
    align-items: baseline;
    padding: 8px 12px !important;
    font-size: 14px;
    border-bottom: 1px solid #eee !important;
}

.schedule-day-row:last-child {
    border-bottom: none !important;
}

.schedule-day-row:nth-child(even) {
    background: #f5f8fa !important;
}

.schedule-day-label {
    flex-shrink: 0;
    width: 80px;
    font-weight: 700;
    color: #222;
}

.schedule-day-time {
    color: #333;
    line-height: 1.5;
    font-size: 14px;
}

.no-result {
    text-align: center;
    padding: 12px 0 !important;
    color: #666;
    font-size: 14px;
}

.no-result a {
    color: #065a7f;
    font-weight: 600;
}

/* Profile Doctor page */
.page-template-page-profile-doctor .call_wrapper,
.single-doctor .call_wrapper {
    background-attachment: fixed;
    padding-top: 80px;
    padding-bottom: 50px;
    min-height: 73vh;
}

.profile-doctor .profile-picture,
.profile-doctor .doctor-name {
    text-align: center;
}

.profile-doctor .doctor-name {
    margin: 1rem 0;
}

.profile-doctor .profile-picture img {
    max-width: 100%;
    width: auto;
    height: auto;
}

.profile-doctor .description,
.profile-doctor .jadwal {
    margin-bottom: 30px;
}

.profile-doctor .description td {
    padding-bottom: 1rem;
    vertical-align: top;
}

.profile-doctor .description td:first-child {
    min-width: 130px;
    font-weight: bold;
    font-size: 15px;
}

.profile-doctor .description td:first-child .fa {
    margin-right: 7px;
}

.profile-doctor .description td:nth-child(2) {
    padding: 0 10px;
}

.profile-doctor .desc-content:last-child p:last-child {
    margin-bottom: 0;
}

.profile-doctor .jadwal {
    width: 100%;
}

.profile-doctor .jadwal th {
    background: #4d4d4d;
    color: #FFF;
}

.profile-doctor .jadwal th .fa {
    margin-right: 7px;
}

.profile-doctor .jadwal th,
.profile-doctor .jadwal td {
    text-align: center;
    border: 1px solid #1a1a1a;
    padding: 8px 0;
}

@media (max-width: 767px) {
    .doctor-card-body {
        padding: 15px !important;
        gap: 15px;
    }

    .doctor-card-body {
        flex-wrap: wrap;
    }

    .doctor-card-photo {
        width: 100px;
        height: 100px;
    }

    .doctor-card-photo .fa-user-md {
        font-size: 42px;
    }

    .doctor-card-info {
        flex-basis: calc(100% - 115px);
    }

    .doctor-card-name {
        font-size: 16px;
    }

    .doctor-card-actions {
        padding: 0 15px 12px !important;
        gap: 8px;
    }

    .doctor-card-link-profile,
    .btn-buat-janji {
        padding: 6px 14px !important;
        font-size: 12px;
    }

    .doctor-card-schedule {
        padding: 12px 15px !important;
    }

    .schedule-day-row {
        flex-wrap: wrap;
    }
}