/* لودینگ استعلام بیمه — باکس روی کل بخش انتخاب بیمه */
.booking-section[data-section="insurance"] .section-content {
    position: relative;
}

.insurance-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    pointer-events: auto;
}

.insurance-loading-overlay .loading-inner {
    max-width: 360px;
    width: 100%;
}

.booking-restore-alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff7ed 0%, #fffbeb 100%);
    color: #7c2d12;
    box-shadow: 0 10px 24px rgba(251, 146, 60, 0.16);
}

.booking-restore-alert__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    background: #f97316;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.booking-restore-alert__body {
    flex: 1 1 auto;
    min-width: 0;
}

.booking-restore-alert__body p {
    margin: 0.25rem 0 0;
    color: #9a3412;
    font-size: 0.9rem;
}

.booking-restore-alert__meta {
    margin-top: 0.45rem;
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.7;
}

.booking-restore-alert__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.booking-selection-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
    font-size: 0.78rem;
}

.booking-selection-summary__item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

.booking-selection-summary__item:not(:last-child)::after {
    content: "،";
    color: #9ca3af;
    margin-right: 0.15rem;
}

.booking-selection-summary__label {
    display: inline;
    margin: 0;
    color: #6b7280;
    font-size: 0.74rem;
    line-height: 1.5;
}

.booking-selection-summary__label::after {
    content: ":";
}

.booking-selection-summary__value {
    display: inline;
    color: #111827;
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
}

.booking-selection-summary__item.is-pending .booking-selection-summary__value {
    color: #94a3b8;
    font-weight: 500;
}

@media (max-width: 576px) {
    .booking-restore-alert {
        align-items: flex-start;
        flex-direction: column;
    }

    .booking-restore-alert__actions,
    .booking-restore-alert__actions .btn {
        width: 100%;
    }

    .booking-selection-summary {
        display: flex;
        gap: 0.2rem 0.45rem;
        padding: 0.35rem 0.55rem;
    }

    .booking-selection-summary__item:not(:last-child)::after {
        display: inline;
    }
}

.booking-progress {
    display: none !important;
    background: #fff;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

    .progress-steps::before {
        content: '';
        position: absolute;
        top: 15px;
        right: 0;
        left: 0;
        height: 2px;
        background: #e0e0e0;
        z-index: 0;
    }

.progress-step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-weight: 600;
    color: #999;
    font-size: 12px;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: #4670CE;
    border-color: #4670CE;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(70, 112, 206, 0.2);
}

.progress-step.completed .step-circle {
    background: #34c5a1;
    border-color: #34c5a1;
    color: #fff;
    font-size: 10px;
}

    .progress-step.completed .step-circle::before {
        content: '\f00c';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 12px;
    }

.step-title {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    line-height: 1.2;
}

.progress-step.active .step-title {
    color: #4670CE;
    font-weight: 600;
}

/* Summary Box Styles */
.booking-summary {
    position: sticky;
    top: 20px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

    .summary-item:last-child {
        border-bottom: none;
    }

.summary-label {
    color: #666;
    font-size: 14px;
}

.summary-value {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Accordion Styles */
.booking-section {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .booking-section.active {
        border-color: #4670CE;
        box-shadow: 0 2px 8px rgba(70, 112, 206, 0.15);
    }

.section-header {
    padding: 20px;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.booking-section.active .section-header {
    background: #f0f7ff;
}

.section-header:hover {
    background: #f0f0f0;
}

.booking-section.active .section-header:hover {
    background: #e8f0ff;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4670CE;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
}

.section-status {
    font-size: 12px;
    color: #999;
}

.booking-section.completed .section-status {
    color: #34c5a1;
    font-weight: 600;
}

.section-content {
    padding: 0 20px 20px;
    display: none;
}

.booking-section {
    display: none;
}

    .booking-section.active {
        display: block;
    }

        .booking-section.active .section-content {
            display: block;
            animation: slideDown 0.3s ease;
        }

@@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Improvements */
.form-group {
    margin-bottom: 20px;
}

.form-control:focus {
    border-color: #4670CE;
    box-shadow: 0 0 0 0.2rem rgba(70, 112, 206, 0.25);
}

.form-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.has-error .form-control {
    border-color: #dc3545;
}

.form-group.has-error .form-error {
    display: block;
}

/* Button Improvements */
.btn-continue {
    background: #4670CE;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-continue:hover {
        background: #3658a8;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(70, 112, 206, 0.3);
    }

    .btn-continue:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
    }

/* Back Button Styles */
.btn-back-section {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-back-section:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

/* Card Selection Improvements */
.card-sty1, .card-sty2 {
    transition: all 0.3s ease;
}

    .card-sty1.selected, .card-sty2.selected {
        border-color: #4670CE;
        background: #f0f7ff;
        transform: scale(1.02);
    }

.service-option {
    cursor: pointer;
    user-select: none;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.8;
}

.service-option .title,
.booking-section[data-section="service"] .card-sty1 .title {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.8;
}

.booking-section[data-section="service"] .service-option.selected,
.booking-section[data-section="service"] .service-option.selected:hover,
.booking-section[data-section="service"] .service-option.selected:active {
    color: #334155;
}

.booking-section[data-section="service"] .service-option.selected .title,
.booking-section[data-section="service"] .service-option.selected:hover .title,
.booking-section[data-section="service"] .service-option.selected:active .title {
    color: #334155;
}

#btnContinueFromService {
    margin-right: auto;
}

    .service-option:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

@media (max-width: 576px) {
    .booking-section[data-section="service"] .section-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .booking-section[data-section="service"] .service-option {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Other Person Form */
.other-person {
    display: none;
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

    .other-person.show {
        display: block;
    }

/* Modal Styles — فرد دیگر */
#otherPersonModal .other-person-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
    border-bottom: 1px solid #dbeafe;
}

#otherPersonModal .other-person-modal-header__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

#otherPersonModal .other-person-modal-header__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4670CE 0%, #5b8def 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(70, 112, 206, 0.25);
}

#otherPersonModal .modal-title {
    color: #1e293b;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.5;
}

#otherPersonModal .other-person-modal-close {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    opacity: 1;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

#otherPersonModal .other-person-modal-close__icon {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

#otherPersonModal .other-person-modal-close:hover {
    background: linear-gradient(145deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.45);
}

#otherPersonModal .other-person-modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.45), 0 4px 14px rgba(220, 38, 38, 0.35);
}

#otherPersonModal .other-person-modal-close:active {
    transform: scale(0.95) rotate(90deg);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

#otherPersonModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#otherPersonModal .other-person-modal__hint {
    margin: 0 0 1rem;
    padding: 0.65rem 0.85rem;
    background: #f0f7ff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.7;
}

#otherPersonModal .modal-footer {
    border-top: 1px solid #e0e0e0;
    padding: 15px 20px;
}

.booking-identity-popup {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.booking-identity-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
    backdrop-filter: blur(2px);
}

.booking-identity-popup__card {
    position: relative;
    width: min(92vw, 430px);
    background: #fff;
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.25);
}

.booking-identity-popup-close {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.35);
    cursor: pointer;
}

.booking-identity-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
    color: #1e293b;
}

.booking-identity-status__icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: #4670ce;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.booking-identity-status__icon .material-icons {
    font-size: 20px;
}

.booking-identity-status__text {
    flex: 1 1 auto;
    line-height: 1.8;
    font-size: 0.92rem;
}

.booking-identity-status--loading .booking-identity-status__icon .material-icons {
    animation: booking-identity-spin 0.9s linear infinite;
}

.booking-identity-status--success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.booking-identity-status--success .booking-identity-status__icon {
    background: #22c55e;
}

.booking-identity-status--error {
    border-color: #fecaca;
    background: #fff7f7;
    color: #991b1b;
}

.booking-identity-status--error .booking-identity-status__icon {
    background: #ef4444;
}

.booking-identity-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
    width: 100%;
}

.booking-identity-retry,
.booking-identity-manual {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 0;
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    color: #fff;
    font-size: 0.85rem;
    cursor: pointer;
}

.booking-identity-retry {
    background: #4670ce;
}

.booking-identity-manual {
    background: #64748b;
}

@keyframes booking-identity-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 576px) {
    .booking-identity-status {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .booking-identity-actions,
    .booking-identity-retry,
    .booking-identity-manual {
        width: 100%;
    }
}

/* Calendar Toggle */
.doc-cal {
    display: none;
    margin-top: 20px;
    animation: slideDown 0.3s ease;
}

    .doc-cal.show {
        display: block;
    }

/* هفته‌بندی و ماهانه تقویم نوبت‌دهی */
.booking-calendar-shell {
    margin: 0 0 0.75rem;
}

.booking-calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.booking-calendar-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0.15rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.booking-calendar-view-btn {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.booking-calendar-view-btn.is-active {
    background: #fff;
    color: #4670ce;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.booking-calendar-period-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
}

.booking-calendar-nav {
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
}

.booking-calendar-nav--month {
    align-items: flex-start;
}

.booking-calendar-month-body {
    flex: 1 1 auto;
    min-width: 0;
}

.booking-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 0.15rem;
    text-align: center;
    font-size: 0.62rem;
    color: #94a3b8;
    font-weight: 600;
}

.booking-calendar-nav-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    min-width: 2rem;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #4670ce;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}

.booking-calendar-nav-btn:hover:not(:disabled) {
    background: rgb(245, 250, 255);
    border-color: #4670ce;
}

.booking-calendar-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    color: #94a3b8;
}

.booking-calendar-nav .booking-calendar-days,
.booking-calendar-nav--week .booking-calendar-days {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.booking-calendar-days--month {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    flex-wrap: unset !important;
    overflow-x: visible !important;
    gap: 0.12rem;
}

.booking-calendar-days--month .book-day--month-cell {
    flex: unset;
    min-width: 0;
    width: auto;
    min-height: 0;
    aspect-ratio: unset;
    padding: 0.15rem 0.1rem 0.2rem;
    border-radius: 6px;
    border: 1px solid #eef2f7;
    border-bottom: 2px solid #eef2f7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.05rem;
}

.booking-calendar-days--month .book-day--month-cell .book-day-num {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.booking-calendar-days--month .book-day--month-cell .book-day-slots {
    font-size: 0.55rem !important;
    line-height: 1.1;
    margin: 0;
    font-weight: 600;
    color: #059669;
}

.booking-calendar-days--month .book-day--month-cell .book-day-status {
    font-size: 0.52rem;
    line-height: 1.1;
    margin: 0;
    color: #94a3b8;
}

.booking-calendar-days--month .book-day--month-cell.open {
    background: #ecfdf5;
    border-color: #a7f3d0;
    border-bottom-color: #6ee7b7;
    color: #065f46;
}

.booking-calendar-days--month .book-day--month-cell.open .book-day-num {
    color: #047857;
}

.booking-calendar-days--month .book-day--month-cell.open:hover {
    background: #d1fae5;
    color: #065f46;
}

.booking-calendar-days--month .book-day--month-cell.open.active,
.booking-calendar-days--month .book-day--month-cell.open.is-selected,
.booking-calendar-days--month .book-day--month-cell.open[aria-selected="true"] {
    background: #bbf7d0 !important;
    border-color: #34d399 !important;
    border-bottom-color: #10b981 !important;
    color: #065f46 !important;
    opacity: 1 !important;
}

.booking-calendar-days--month .book-day--month-cell.open.active .book-day-num,
.booking-calendar-days--month .book-day--month-cell.open.is-selected .book-day-num,
.booking-calendar-days--month .book-day--month-cell.open.active .book-day-slots,
.booking-calendar-days--month .book-day--month-cell.open.is-selected .book-day-slots {
    color: #047857 !important;
}

.booking-calendar-days--month .book-day--pad {
    pointer-events: none;
    visibility: hidden;
    border-color: transparent;
    background: transparent;
    min-height: 2rem;
    padding: 0;
}

.booking-calendar-days--month .book-day--month-cell.book-day--past {
    opacity: 0.3;
}

.booking-calendar-days .book-day.book-day--past {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

/* نوار انتخاب روز — همیشه visible، اسکرول افقی در موبایل */
.booking-calendar-days {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 0 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
    scrollbar-width: thin;
}

.booking-calendar-days .book-day {
    flex: 1 1 0;
    min-width: 68px;
    padding: 0.55rem 0.35rem 0.7rem;
    text-align: center;
    cursor: pointer;
    border: none;
    border-bottom: 3px solid rgb(245, 250, 255);
    border-radius: 0;
    color: rgba(149, 157, 165, 0.95);
    text-decoration: none;
    background: transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.booking-calendar-days .book-day:hover {
    background: rgb(245, 250, 255);
    color: rgb(52, 64, 84);
}

.booking-calendar-days .book-day.open {
    color: rgb(52, 64, 84);
}

.booking-calendar-days .book-day.active,
.booking-calendar-days .book-day.is-selected,
.booking-calendar-days .book-day[aria-selected="true"],
#bookingModal .booking-calendar-days .book-day.active,
#bookingModal .booking-calendar-days .book-day.is-selected,
#bookingModal .booking-calendar-days .book-day[aria-selected="true"],
.doc-cal .booking-calendar-days .book-day.active,
.doc-cal .booking-calendar-days .book-day.is-selected {
    background: rgb(245, 250, 255) !important;
    border-bottom: 3px solid #4670CE !important;
    color: #4670CE !important;
    opacity: 1 !important;
}

.booking-calendar-days .book-day.active p,
.booking-calendar-days .book-day.active .book-date,
.booking-calendar-days .book-day.is-selected p,
.booking-calendar-days .book-day.is-selected .book-date,
.booking-calendar-days .book-day[aria-selected="true"] p,
.booking-calendar-days .book-day[aria-selected="true"] .book-date {
    color: #4670CE !important;
}

.booking-calendar-days .book-day.active .text-primary,
.booking-calendar-days .book-day.is-selected .text-primary,
.booking-calendar-days .book-day[aria-selected="true"] .text-primary {
    color: #4670CE !important;
}

.booking-calendar-days .book-day.open.active,
.booking-calendar-days .book-day.open.is-selected {
    color: #4670CE !important;
}

.booking-calendar-days .book-day.book-day--holiday {
    opacity: 0.45;
    pointer-events: none;
}

.booking-calendar-days .book-day.book-day--empty,
.booking-calendar-days .book-day.book-day--full {
    opacity: 0.65;
}

.booking-calendar-days .book-day p {
    margin: 0.2rem auto;
    font-size: 0.75rem;
    line-height: 1.35;
    white-space: nowrap;
}

.booking-calendar-days .book-day .book-date {
    font-weight: 600;
}

.doc-cal .book-times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.doc-cal .book-times li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .booking-calendar-toolbar {
        gap: 0.5rem;
    }

    .booking-calendar-view-btn {
        font-size: 0.72rem;
        padding: 0.3rem 0.55rem;
    }

    .booking-calendar-period-title {
        width: 100%;
        text-align: center;
    }

    .booking-calendar-nav-btn {
        width: 1.75rem;
        min-width: 1.75rem;
        border-radius: 6px;
    }

    .booking-calendar-days--month {
        gap: 0.08rem;
    }

    .booking-calendar-days--month .book-day--month-cell {
        padding: 0.1rem 0.05rem 0.12rem;
    }

    .booking-calendar-days--month .book-day--month-cell .book-day-num {
        font-size: 0.66rem;
    }

    .booking-calendar-days--month .book-day--month-cell .book-day-slots {
        font-size: 0.5rem !important;
    }

    .booking-calendar-days .book-day {
        flex: 0 0 auto;
        min-width: 76px;
        padding: 0.5rem 0.45rem;
    }

    .booking-calendar-days .book-day p {
        font-size: 0.7rem;
    }

    .doc-cal .book-times li a.butn {
        width: auto;
        min-width: 72px;
        font-size: 0.8125rem;
        padding: 0.45rem 0.65rem;
        margin: 0;
    }
}

/* Loading State */
.section-loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

/* Responsive */
@@media (max-width: 768px) {
    .booking-progress {
        padding: 8px 10px;
    }

    .progress-steps {
        flex-direction: row;
        gap: 5px;
        padding: 0 5px;
    }

        .progress-steps::before {
            top: 12px;
        }

    .step-circle {
        width: 25px;
        height: 25px;
        font-size: 10px;
        margin-bottom: 3px;
    }

    .step-title {
        font-size: 9px;
    }

    .booking-summary {
        position: relative;
        margin-top: 20px;
    }
}

/* باکس ورود در مرحله انتخاب بیمار */
#loginRequiredAlert {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0 1rem;
}

.booking-login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    margin: 0 auto;
    padding: 1.75rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #e8f4fc 0%, #d6ecfa 100%);
    border: 2px solid #009ae0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 154, 224, 0.15);
}

.booking-login-prompt-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #009ae0;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin: 0 auto;
}

.booking-login-prompt-title {
    display: block;
    width: 100%;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

.booking-login-prompt-text {
    width: 100%;
    max-width: 360px;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    line-height: 1.65;
    text-align: center;
}

.booking-login-prompt-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-weight: 700;
    margin: 0.35rem auto 0;
    float: none !important;
}

@media (max-width: 575px) {
    .booking-login-prompt {
        padding: 1.35rem 1rem;
    }

    .booking-login-prompt-text {
        max-width: 100%;
    }

    .booking-login-prompt-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* پیام «در حال حاضر امکان دریافت نوبت وجود ندارد» */
.booking-no-appointment {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-right: 4px solid #ffc107;
}
.booking-no-appointment .alert-heading {
    color: #856404;
    font-size: 1rem;
}
.booking-no-appointment-icon {
    opacity: 0.9;
}

/* دکمه حذف در کارت بیمار */
.btn-delete-subset {
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 6px;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.btn-delete-subset:hover {
    opacity: 1;
}
.card-sty2 .btn-delete-subset {
    position: relative;
    z-index: 2;
}

/* استایل بیمار فعال */
.person[data-patient-type="self"].active .title {
    color: #4670CE;
}
.person.subset-person.active .title {
    color: #4670CE;
}

/* کارت‌های انتخاب زمان: جزئیات نوبت در موبایل باید داخل کارت شکسته شود */
.booking-section[data-section="time"] .btn-apmt-type {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.8;
}

.booking-section[data-section="time"] .btn-apmt-type > span {
    display: block;
    margin-top: 0.35rem;
}

/* Modal size overrides: make modals a bit wider */
.modal-dialog {
    max-width: 900px;
    width: 100%;
}

.modal-dialog.modal-lg {
    max-width: 1100px;
}

@media (max-width: 1200px) {
    .modal-dialog.modal-lg {
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .modal-dialog {
        max-width: 95%;
    }
}
