/* ==========================================================
   TCH ONLINE APPOINTMENT
   ========================================================== */

.tch-appointment-page {
    padding: 45px 0 70px;
    background: #fff;
}

.tch-appointment-page *,
.tch-appointment-page *::before,
.tch-appointment-page *::after {
    box-sizing: border-box;
}


/* Breadcrumb */

.tch-appointment-breadcrumb {
    margin-bottom: 35px;
    font-size: 14px;
}

.tch-appointment-breadcrumb a {
    color: #555;
    text-decoration: none;
}

.tch-appointment-breadcrumb span {
    margin-left: 8px;
}

.tch-appointment-breadcrumb .current {
    color: #164f91;
}


/* Steps */

.tch-appointment-steps {
    position: relative;
    display: flex;
    width: 100%;
    margin-bottom: 50px;
}

.tch-appointment-steps::before {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 19px;
    height: 8px;
    background: #ddd;
    border-radius: 10px;
}

.tch-appointment-progress {
    position: absolute;
    left: 20px;
    top: 19px;
    width: 16.66%;
    height: 8px;
    background: #00b894;
    border-radius: 10px;
}

.tch-appointment-step {
    position: relative;
    z-index: 2;
    width: 33.333%;
}

.tch-appointment-step-number {
    width: 40px;
    height: 40px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #ccc;
    border-radius: 50%;

    background: #fff;
    color: #999;
}

.tch-appointment-step.active
.tch-appointment-step-number {
    background: #00b894;
    border-color: #00b894;
    color: #fff;
}

.tch-appointment-step-label {
    margin-top: 3px;
    text-align: center;
    color: #999;
    font-size: 14px;
}


/* Title */

.tch-appointment-title {
    margin: 0 0 18px !important;
    color: #164f91 !important;
    font-size: 30px !important;
    font-weight: 700 !important;
}


/* Form */

.tch-appointment-form-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 30px;
}

.tch-appointment-field {
    width: 100%;
}

.tch-appointment-field label {
    display: block !important;
    margin-bottom: 8px !important;

    color: #111 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
}

.tch-appointment-field .required {
    color: #e32626;
}


/* Select / Input */

.tch-appointment-field select,
.tch-appointment-field input[type="date"] {

    display: block !important;

    width: 100% !important;
    height: 52px !important;

    margin: 0 !important;

    padding: 0 13px !important;

    border: 1px solid #ccc !important;
    border-radius: 6px !important;

    background: #fff !important;

    color: #555 !important;

    font-size: 15px !important;

    outline: none !important;

    box-shadow: none !important;
}

.tch-appointment-field select:focus,
.tch-appointment-field input[type="date"]:focus {
    border-color: #164f91 !important;
}


/* Booking */

.tch-appointment-booking {
    display: grid !important;
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 30px;

    margin-top: 45px;
}

.tch-appointment-section-title {
    margin: 0 0 10px !important;

    color: #222 !important;

    font-size: 23px !important;
    font-weight: 500 !important;
}


/* Doctor Card */

.tch-doctor-card {
    min-height: 325px;

    padding: 20px 15px;

    background: #f1f1f3;

    border: 1px solid #ddd;
    border-radius: 6px;
}

.tch-doctor-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tch-doctor-icon {
    width: 55px;
    min-width: 55px;

    color: #07539e;
    font-size: 42px;
    text-align: center;
}

.tch-doctor-info h3 {
    margin: 0 0 4px !important;

    color: #555 !important;
    font-size: 25px !important;
    font-weight: 700 !important;
}

.tch-doctor-info p {
    margin: 0 !important;
    color: #555;
    font-size: 14px;
}

.tch-doctor-divider {
    margin: 14px 0;
    border-top: 1px solid #ccc;
}

.tch-doctor-hospital {
    margin-bottom: 8px;

    color: #444;
    font-size: 12px;
    font-weight: 700;
}


/* Schedule */

.tch-doctor-schedule {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.tch-doctor-schedule-item {
    padding: 6px 8px;

    border: 1px solid #c9c9c9;
    border-radius: 5px;

    background: #f7f7f8;

    color: #555;
    font-size: 11px;
}


/* Empty */

.tch-doctor-empty {
    min-height: 280px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    text-align: center;
    color: #999;
}

.tch-doctor-empty i {
    margin-bottom: 15px;
    color: #164f91;
    font-size: 45px;
}

.tch-doctor-empty p {
    max-width: 230px;
    margin: 0;
    line-height: 22px;
}


/* Slots */

.tch-slot-box {
    min-height: 160px;

    display: flex !important;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;

    padding: 23px;

    border: 1px solid #ccc;
    border-radius: 10px;

    background: #fff;
}

.tch-slot {
    height: 34px;

    padding: 0 10px;

    border: 1px solid #ccc !important;
    border-radius: 4px;

    background: #f0f0f2 !important;

    color: #333 !important;

    font-size: 13px !important;

    cursor: pointer;
}

.tch-slot:hover,
.tch-slot.selected {
    background: #164f91 !important;
    border-color: #164f91 !important;
    color: #fff !important;
}

.tch-slot.disabled-slot {
    background: #ededed !important;
    color: #aaa !important;
    cursor: not-allowed;
}


/* Empty slots */

.tch-slot-empty {
    width: 100%;

    padding: 45px 10px;

    text-align: center;

    color: #999;
    font-size: 14px;
}


/* Legend */

.tch-slot-legend {
    display: flex;
    gap: 18px;

    margin-top: 10px;

    color: #444;
    font-size: 14px;
}

.tch-slot-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.tch-slot-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.tch-slot-dot.not-available {
    background: #ededed;
}

.tch-slot-dot.available {
    background: #fff;
    border: 1px solid #ccc;
}


/* Buttons */

.tch-appointment-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;

    margin-top: 30px;
}

.tch-reset-button,
.tch-next-button {
    min-width: 120px;
    height: 38px;

    border-radius: 5px;

    font-size: 14px;

    cursor: pointer;
}

.tch-reset-button {
    background: #fff;
    border: 1px solid #ccc;
    color: #444;
}

.tch-next-button {
    background: #bdbdbd;
    border: 1px solid #bdbdbd;
    color: #fff;
}

.tch-next-button:disabled {
    cursor: not-allowed;
    opacity: .8;
}

.tch-next-button:not(:disabled) {
    background: #164f91;
    border-color: #164f91;
}


/* Tablet */

@media (max-width: 991px) {

    .tch-appointment-booking {
        grid-template-columns: 1fr;
    }

    .tch-appointment-form-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* Mobile */

@media (max-width: 767px) {

    .tch-appointment-page {
        padding: 35px 15px 50px;
    }

    .tch-appointment-form-grid {
        grid-template-columns: 1fr;
    }

    .tch-appointment-booking {
        grid-template-columns: 1fr;
    }

    .tch-appointment-title {
        font-size: 26px !important;
    }

    .tch-appointment-step-label {
        font-size: 11px;
    }

    .tch-slot-box {
        padding: 15px;
    }

    .tch-doctor-schedule {
        grid-template-columns: 1fr;
    }

    .tch-appointment-actions {
        justify-content: stretch;
    }

    .tch-reset-button,
    .tch-next-button {
        flex: 1;
    }

}