.doctor-appointment-modal .modal-dialog {
    max-width: 920px;
}

.doctor-appointment-modal .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(30, 49, 77, 0.16);
}

.doctor-appointment-modal .modal-header {
    padding: 18px 20px 14px;
    border-bottom: 1px solid #eef3f7;
    background: linear-gradient(135deg, #f7fbfd 0%, #eef8fb 100%);
}

.doctor-appointment-modal .modal-title {
    color: #17324d;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.doctor-appointment-modal .modal-subtitle {
    margin-top: 6px;
    color: #5d7286;
    font-size: 14px;
    line-height: 1.5;
}

.doctor-appointment-modal .close {
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    color: #3d556d;
    opacity: 1;
    box-shadow: 0 6px 14px rgba(23, 50, 77, 0.1);
}

.doctor-appointment-modal .modal-body {
    padding: 18px;
    background: #f8fbfd;
}

.doctor-appointment-panel {
    padding: 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(39, 72, 104, 0.08);
}

.doctor-appointment-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #17324d 0%, #1e5d7a 100%);
    color: #fff;
}

.doctor-appointment-summary-label {
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.doctor-appointment-summary-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.doctor-appointment-summary-meta {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.doctor-appointment-price {
    min-width: 128px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    text-align: right;
}

.doctor-appointment-price small {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.doctor-appointment-price strong {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.doctor-appointment-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

.doctor-appointment-section {
    padding: 16px;
    border: 1px solid #e8f0f5;
    border-radius: 14px;
    background: #fff;
}

.doctor-appointment-section-title {
    margin-bottom: 4px;
    color: #17324d;
    font-size: 17px;
    font-weight: 700;
}

.doctor-appointment-section-note {
    margin-bottom: 14px;
    color: #64778c;
    font-size: 13px;
    line-height: 1.5;
}

.doctor-slot-date-list,
.doctor-slot-time-list {
    display: flex;
    gap: 8px;
}

.doctor-slot-date-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: #b8d7e0 transparent;
}

.doctor-slot-date-list::-webkit-scrollbar {
    height: 8px;
}

.doctor-slot-date-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #b8d7e0;
}

.doctor-slot-date-list::-webkit-scrollbar-track {
    background: transparent;
}

.doctor-slot-time-list {
    flex-wrap: wrap;
}

.doctor-slot-date,
.doctor-slot-time {
    margin: 0;
    padding: 9px 13px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.18s ease;
}

.doctor-slot-date:hover,
.doctor-slot-time:hover {
    transform: translateY(-1px);
}

.doctor-slot-date.active,
.doctor-slot-time.active {
    color: #fff;
    background-color: #17a2b8;
    border-color: #17a2b8;
    box-shadow: 0 8px 18px rgba(23, 162, 184, 0.22);
}

.doctor-slot-date {
    flex: 0 0 auto;
    white-space: nowrap;
}

.doctor-appointment-selection {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eef8fb;
    color: #21526f;
    font-size: 13px;
    line-height: 1.5;
}

.doctor-appointment-selection strong {
    color: #17324d;
}

.doctor-appointment-form .form-group {
    margin-bottom: 14px;
}

.doctor-appointment-form label {
    margin-bottom: 6px;
    color: #17324d;
    font-weight: 600;
    font-size: 14px;
}

.doctor-appointment-form .form-control {
    height: auto;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d5e3ec;
    border-radius: 12px;
    box-shadow: none;
}

.doctor-appointment-form textarea.form-control {
    min-height: 88px;
}

.doctor-appointment-form .form-control:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.14);
}

.doctor-appointment-consent {
    display: block;
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7fafc;
    color: #53687d;
    font-size: 13px;
    line-height: 1.5;
}

.doctor-appointment-consent input {
    transform: translateY(1px);
}

.doctor-appointment-actions {
    margin-top: 14px;
}

.doctor-appointment-actions .btn {
    min-width: 180px;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
}

.doctor-appointment-loading,
.doctor-appointment-empty,
.doctor-appointment-success {
    padding: 24px 20px;
    border-radius: 16px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 30px rgba(39, 72, 104, 0.08);
}

.doctor-appointment-loading-title,
.doctor-appointment-success-title {
    margin-bottom: 8px;
    color: #17324d;
    font-size: 21px;
    font-weight: 700;
}

.doctor-appointment-loading-text,
.doctor-appointment-empty-text,
.doctor-appointment-success-text {
    color: #617489;
    font-size: 14px;
    line-height: 1.6;
}

.doctor-appointment-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    border: 4px solid #d8eef2;
    border-top-color: #17a2b8;
    border-radius: 50%;
    animation: doctorAppointmentSpin 0.8s linear infinite;
}

.doctor-appointment-success-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #e9f9f0;
    color: #20a65a;
    font-size: 28px;
    font-weight: 700;
}

.doctor-appointment-success-card {
    max-width: 420px;
    margin: 16px auto 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f6fafc;
    text-align: left;
    font-size: 14px;
}

.doctor-appointment-success-card div + div {
    margin-top: 8px;
}

.doctor-appointment-empty .btn {
    min-width: 180px;
    margin-top: 14px;
    border-radius: 12px;
    font-weight: 700;
}

.doctor-service-doctor-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doctor-service-doctor-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e7eef4;
    border-radius: 14px;
    background: #fff;
}

.doctor-service-doctor-name {
    color: #17324d;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.doctor-service-doctor-meta {
    margin-top: 4px;
    color: #62778d;
    font-size: 13px;
    line-height: 1.5;
}

.doctor-service-doctor-type {
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eef8fb;
    color: #21526f;
    font-size: 12px;
    font-weight: 700;
}

@keyframes doctorAppointmentSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 991px) {
    .doctor-appointment-modal .modal-header,
    .doctor-appointment-modal .modal-body {
        padding: 16px;
    }

    .doctor-appointment-summary {
        grid-template-columns: 1fr;
    }

    .doctor-appointment-price {
        text-align: left;
    }
}

@media (max-width: 575px) {
    .doctor-appointment-modal .modal-title {
        font-size: 21px;
    }

    .doctor-appointment-panel,
    .doctor-appointment-section,
    .doctor-appointment-loading,
    .doctor-appointment-empty,
    .doctor-appointment-success {
        padding: 14px;
        border-radius: 14px;
    }

    .doctor-slot-time,
    .doctor-appointment-actions .btn,
    .doctor-appointment-empty .btn,
    .doctor-service-doctor-item .btn {
        width: 100%;
    }

    .doctor-slot-date {
        width: auto;
    }

    .doctor-service-doctor-item {
        flex-direction: column;
        align-items: stretch;
    }
}
