/* Booking Modal */
.booking-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.booking-modal-overlay.open {
    display: flex;
    opacity: 1;
}

.booking-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    overflow-y: auto;
    color: #222;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: translateY(20px);
    transition: transform 0.25s ease;
}
.booking-modal-overlay.open .booking-modal {
    transform: translateY(0);
}

.booking-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
}
.booking-modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}
.booking-modal-header .close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 0 4px;
}
.booking-modal-header .close-btn:hover { color: #222; }

.booking-modal-body { padding: 24px; }

/* Steps */
.booking-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 13px;
}
.booking-step {
    flex: 1;
    padding: 10px 12px;
    border-radius: 8px;
    text-align: center;
    background: #f4f4f4;
    color: #888;
    font-weight: 600;
}
.booking-step.active { background: #eda242; color: #fff; }
.booking-step.done { background: #2ecc71; color: #fff; }

/* Calendar */
.booking-calendar {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 16px;
    background: #fafafa;
}
.booking-calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.booking-calendar-head button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
}
.booking-calendar-head button:disabled { opacity: 0.35; cursor: not-allowed; }
.booking-calendar-head .month-label { font-weight: 700; font-size: 15px; }

.booking-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.booking-calendar-grid .day-name {
    padding: 6px 0;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
}
.booking-calendar-grid .day {
    padding: 10px 0;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.15s;
}
.booking-calendar-grid .day:hover:not(.disabled):not(.empty) {
    border-color: #eda242;
    background: #fff8ee;
}
.booking-calendar-grid .day.empty { background: transparent; border-color: transparent; cursor: default; }
.booking-calendar-grid .day.disabled { color: #ccc; cursor: not-allowed; background: #f5f5f5; }
.booking-calendar-grid .day.selected { background: #eda242; color: #fff; border-color: #eda242; font-weight: 700; }
.booking-calendar-grid .day.today { border-color: #eda242; font-weight: 700; }

/* Slots */
.booking-slots {
    margin-top: 20px;
}
.booking-slots h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a2e;
}
.booking-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
}
.booking-slot {
    padding: 10px 8px;
    text-align: center;
    background: #eaf4ff;
    border: 1px solid #cbe2ff;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    color: #1a3a6e;
    transition: all 0.15s;
}
.booking-slot:hover { background: #d6ebff; }
.booking-slot.selected { background: #eda242; color: #fff; border-color: #eda242; }
.booking-empty { padding: 20px; text-align: center; color: #888; font-size: 13px; background: #fafafa; border-radius: 8px; }

/* Form */
.booking-form .form-row { margin-bottom: 16px; }
.booking-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #555;
}
.booking-form input,
.booking-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}
.booking-form input:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: #eda242;
    box-shadow: 0 0 0 3px rgba(237, 162, 66, 0.15);
}
.booking-form textarea { resize: vertical; min-height: 70px; }

.booking-summary {
    background: #fff8ee;
    border: 1px solid #fbe1b4;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #6b4a1a;
}
.booking-summary strong { color: #b7740e; }

/* Actions */
.booking-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 20px;
}
.booking-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.booking-btn-primary { background: #eda242; color: #fff; }
.booking-btn-primary:hover { background: #d4912e; }
.booking-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.booking-btn-secondary { background: #f0f0f0; color: #333; }
.booking-btn-secondary:hover { background: #e0e0e0; }

.booking-error {
    background: #fee;
    color: #c0392b;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.booking-success {
    text-align: center;
    padding: 32px 16px;
}
.booking-success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2ecc71;
    color: #fff;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}
.booking-success h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #1a1a2e; }
.booking-success p { font-size: 14px; color: #555; line-height: 1.5; }

.booking-loader {
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 13px;
}

@media (max-width: 600px) {
    .booking-modal { max-height: 100vh; border-radius: 0; }
    .booking-modal-body { padding: 16px; }
    .booking-slots-grid { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}
