/* =============================================
   Doctor Floating Bar
   ============================================= */
.tnk-doctor-floating {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
    z-index: 9989; /* 1 dưới Brand Modal (9990) */
}

.tnk-doctor-floating__info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tnk-doctor-floating__avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 50% !important;
    object-fit: cover;
    flex-shrink: 0;
    display: block !important;
}

.tnk-doctor-floating__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tnk-doctor-floating__name {
    font-size: 14px;
    font-weight: 700;
    color: #00c5d7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    line-height: 1.2;
}

.tnk-doctor-floating__clinic {
    font-size: 11px;
    font-weight: 400;
    color: #2c3569;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    line-height: 1.2;
}

.tnk-doctor-floating__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tnk-doctor-floating__btn {
    border: none !important;
    border-radius: 50px !important;
    padding: 0 16px !important;
    margin: 0 !important;
    height: 40px !important;
    min-height: unset !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-transform: none !important;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    box-shadow: none !important;
    width: 180px !important;
    max-width: 180px !important;
}

.tnk-doctor-floating__btn--consult {
    background: #00c5d7;
    color: #fff !important;
}

.tnk-doctor-floating__btn--consult:hover {
    background: #00a8b8;
    color: #fff !important;
}

.tnk-doctor-floating__btn--call {
    background: #bb0303;
    color: #fff !important;
}

.tnk-doctor-floating__btn--call:hover {
    background: #a00202;
    color: #fff !important;
}

/* Mobile: ẩn số điện thoại */
@media (max-width: 480px) {
    .tnk-doctor-floating__clinic {
        display: none;
    }
}

/* Tablet: hiện tên phòng khám */
@media (min-width: 481px) {
    .tnk-doctor-floating__clinic {
        display: block;
    }
}

/* PC: tăng kích thước nổi bật hơn */
@media (min-width: 769px) {
    .tnk-doctor-floating {
        padding: 12px 16px;
        gap: 12px;
        border-radius: 20px;
        box-shadow: 0 6px 32px rgba(0, 0, 0, 0.22);
    }
    .tnk-doctor-floating__avatar {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
    }
    .tnk-doctor-floating__name {
        font-size: 16px;
        max-width: 220px;
    }
    .tnk-doctor-floating__clinic {
        font-size: 12px;
        max-width: 220px;
    }
    .tnk-doctor-floating__actions {
        gap: 10px;
    }
    .tnk-doctor-floating__btn {
        height: 52px !important;
        font-size: 16px !important;
        width: 300px !important;
        max-width: 300px !important;
        border-radius: 60px !important;
    }
}

/* =============================================
   Doctor Booking Modal
   ============================================= */
.tnk-doctor-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 99999;
    transition: visibility 0s, opacity 0.2s;
    padding: 16px;
    box-sizing: border-box;
}

.tnk-doctor-modal[aria-hidden="true"] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.tnk-doctor-modal[aria-hidden="false"] {
    visibility: visible;
    opacity: 1;
}

.tnk-doctor-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.tnk-doctor-modal__box {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px 32px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.25s ease;
}

.tnk-doctor-modal[aria-hidden="false"] .tnk-doctor-modal__box {
    transform: scale(1);
}

.tnk-doctor-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
}

.tnk-doctor-modal__header {
    text-align: center;
    margin-bottom: 20px;
}

.tnk-doctor-modal__avatar {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    object-fit: cover;
    display: block !important;
    margin: 0 auto 12px !important;
}

.tnk-doctor-modal__title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
    margin: 0 0 6px;
    line-height: 1.5;
}

.tnk-doctor-modal__subtitle {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Form fields — tái sử dụng class chung từ brand modal */
.tnk-doctor-modal__form .form-row {
    margin-bottom: 12px;
}

.tnk-doctor-modal__form .tnk-form-row--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tnk-doctor-modal__form input,
.tnk-doctor-modal__form select,
.tnk-doctor-modal__form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
}

.tnk-doctor-modal__form textarea {
    resize: vertical;
}

.tnk-doctor-modal__form button[type="submit"] {
    width: 100% !important;
    margin: 4px 0 0 0 !important;
    padding: 0 !important;
    border-radius: 8px !important;
    height: 44px !important;
    min-height: unset !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 44px !important;
    text-transform: none !important;
    box-sizing: border-box !important;
    display: block !important;
}

.tnk-doctor-modal__form .booking-message {
    font-size: 13px;
    margin-bottom: 8px;
    min-height: 18px;
}

.tnk-doctor-modal__form .booking-message.success { color: #2e7d32; }
.tnk-doctor-modal__form .booking-message.error   { color: #c62828; }
