/* =========================================================
   KAIRALAI'S CONSULTATION BOOKING MODAL & WIZARD STYLES
   ========================================================= */

/* Modal Backdrop */
#booking-modal {
    transition: opacity 0.3s ease;
}

/* Modal Box Container */
.booking-modal-card {
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    max-width: 720px;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: bookingModalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bookingModalSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Progress Step Bar */
.booking-step-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #F9F7F2;
    border-bottom: 1px solid #EDE4D4;
}

.booking-step-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #888888;
    transition: color 0.2s ease;
}

.booking-step-item.active {
    color: #0F4C3A;
}

.booking-step-item.completed {
    color: #0096A5;
}

.booking-step-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #E2DDD5;
    color: #555555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.booking-step-item.active .booking-step-badge {
    background: #0F4C3A;
    color: #ffffff;
}

.booking-step-item.completed .booking-step-badge {
    background: #0096A5;
    color: #ffffff;
}

.booking-step-line {
    flex: 1;
    height: 2px;
    background: #E2DDD5;
    margin: 0 8px;
}

.booking-step-line.completed {
    background: #0096A5;
}

/* Modal Content Area */
.booking-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* STEP 1: CITY SELECTION GRID */
.city-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 16px;
}

@media (min-width: 640px) {
    .city-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.city-card {
    position: relative;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.city-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.city-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(15, 76, 58, 0.85) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    transition: background 0.25s ease;
}

.city-card-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.city-card-tag {
    color: #EDE4D4;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.9;
}

.city-card:hover {
    transform: translateY(-4px);
    border-color: #0F4C3A;
    box-shadow: 0 10px 24px rgba(15, 76, 58, 0.25);
}

.city-card:hover img {
    transform: scale(1.08);
}

.city-card.selected {
    border-color: #0096A5;
    box-shadow: 0 0 0 3px rgba(0, 150, 165, 0.3);
}

.city-card.selected .city-card-overlay {
    background: linear-gradient(180deg, rgba(0, 150, 165, 0.3) 0%, rgba(15, 76, 58, 0.92) 100%);
}

.city-selected-check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    background: #0096A5;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* STEP 2: DATE SELECTION GRID (IMAGE 2 STYLE) */
.date-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
}

@media (min-width: 640px) {
    .date-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.date-card {
    border: 1.5px solid #0096A5;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    background: #ffffff;
    transition: all 0.2s ease;
    color: #0096A5;
}

.date-card:hover {
    background: rgba(0, 150, 165, 0.08);
    transform: translateY(-2px);
}

.date-card.selected {
    background: #0096A5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 150, 165, 0.3);
}

.date-card-day {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.date-card-num {
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

/* STEP 3: TIME SLOT GRID (IMAGE 3 STYLE) */
.slot-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #777777;
    margin-top: 18px;
    margin-bottom: 10px;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 640px) {
    .slot-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.slot-card {
    border: 1.5px solid #0096A5;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: #0096A5;
    background: #ffffff;
    transition: all 0.2s ease;
}

.slot-card:hover {
    background: rgba(0, 150, 165, 0.08);
    transform: translateY(-2px);
}

.slot-card.selected {
    background: #0096A5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 150, 165, 0.3);
}

/* STEP 4: PATIENT FORM (IMAGE 4 STYLE) */
.patient-form-group {
    margin-bottom: 14px;
}

.patient-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #555555;
    margin-bottom: 4px;
}

.patient-input {
    width: 100%;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1F2937;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.patient-input:focus {
    outline: none;
    border-color: #0096A5;
    box-shadow: 0 0 0 3px rgba(0, 150, 165, 0.15);
}

.disease-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 6px;
}

.disease-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #374151;
    cursor: pointer;
}

.disease-checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: #0096A5;
    cursor: pointer;
}

/* STEP 5: PAYMENT & BOOKING TYPE */
.booking-type-card {
    border: 2px solid #E5E7EB;
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #ffffff;
    position: relative;
}

.booking-type-card:hover {
    border-color: #0096A5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.booking-type-card.selected {
    border-color: #0096A5;
    background: rgba(0, 150, 165, 0.04);
    box-shadow: 0 0 0 2px rgba(0, 150, 165, 0.2);
}

.booking-type-card.emergency.selected {
    border-color: #D42B30;
    background: rgba(212, 43, 48, 0.04);
    box-shadow: 0 0 0 2px rgba(212, 43, 48, 0.2);
}

.badge-emergency {
    background: #D42B30;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-method-item {
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.payment-method-item:hover, .payment-method-item.selected {
    border-color: #0F4C3A;
    background: #F9F7F2;
}

/* Primary Action Buttons */
.btn-wizard-next {
    background: linear-gradient(135deg, #0F4C3A 0%, #007142 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.btn-wizard-next:hover {
    background: linear-gradient(135deg, #007142 0%, #0096A5 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 76, 58, 0.3);
}

.btn-wizard-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-wizard-back {
    background: #F3F4F6;
    color: #4B5563;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 13.5px;
}

.btn-wizard-back:hover {
    background: #E5E7EB;
    color: #111827;
}
