/* ============================================================
 * מאור קוסקס - Dark Theme Override
 * Must load LAST to override all EA defaults
 * ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --maor-bg: #080812 !important;
    --maor-bg-card: #0f0f1e !important;
    --maor-bg-input: #161628 !important;
    --maor-border: #1e1e3a !important;
    --maor-purple: #7c3aed !important;
    --maor-purple-light: #a78bfa !important;
    --maor-purple-dark: #5b21b6 !important;
    --maor-gold: #f59e0b !important;
    --maor-gold-light: #fcd34d !important;
    --maor-text: #f1f5f9 !important;
    --maor-text-muted: #94a3b8 !important;
}

/* ── Global ─────────────────────────────────────────────── */
html, body {
    background: #080812 !important;
    color: #f1f5f9 !important;
    font-family: 'Heebo', -apple-system, sans-serif !important;
    direction: rtl !important;
}

#book-appointment-wizard a { color: #a78bfa !important; }
#book-appointment-wizard a:hover { color: #f59e0b !important; }
.landing-section a { color: inherit; }

::selection { background: #7c3aed; color: #fff; }

/* ── Booking Wizard ─────────────────────────────────────── */
#main { background: #080812 !important; }
#main.container { background: transparent !important; }

#book-appointment-wizard {
    background: transparent !important;
}

#book-appointment-wizard #header {
    background: linear-gradient(135deg, #050510, #0f0f2e) !important;
    border-bottom: 1px solid #1e1e3a !important;
    padding: 24px 15px !important;
}

#book-appointment-wizard #company-name {
    color: #f1f5f9 !important;
    font-weight: 700 !important;
}

#book-appointment-wizard #company-name .display-booking-selection {
    color: #a78bfa !important;
    border-right-color: #7c3aed !important;
    filter: none !important;
}

/* Hide EA's dynamic service/provider labels - we show "קביעת תור" instead */
#book-appointment-wizard #company-name .display-selected-service,
#book-appointment-wizard #company-name .display-selected-provider {
    display: none !important;
}


/* Steps */
#book-appointment-wizard .book-step {
    background: #1e1e3a !important;
}

#book-appointment-wizard .book-step strong {
    color: #94a3b8 !important;
}

#book-appointment-wizard .active-step {
    background: #7c3aed !important;
}

#book-appointment-wizard .active-step strong {
    color: #fff !important;
}

/* Wizard Frame */
#book-appointment-wizard .wizard-frame {
    background: #0f0f1e !important;
    border: 1px solid #1e1e3a !important;
}

#book-appointment-wizard .wizard-frame .frame-container {
    background: transparent !important;
}

#book-appointment-wizard .frame-container .frame-title {
    color: #f1f5f9 !important;
    font-weight: 600 !important;
}

#book-appointment-wizard .frame-container .frame-title h3,
#book-appointment-wizard .frame-container .frame-title h4 {
    color: #f1f5f9 !important;
}

/* Frame Footer */
#book-appointment-wizard #frame-footer {
    background: transparent !important;
    border-top-color: #1e1e3a !important;
    color: #94a3b8 !important;
}

#book-appointment-wizard #frame-footer .backend-link {
    background-color: #7c3aed !important;
    color: #fff !important;
}

/* Available Hours */
#book-appointment-wizard #available-hours .available-hour {
    background: #161628 !important;
    border: 1px solid #1e1e3a !important;
    color: #f1f5f9 !important;
}

#book-appointment-wizard #available-hours .available-hour:hover {
    background: rgba(124, 58, 237, 0.15) !important;
    border-color: #7c3aed !important;
    color: #a78bfa !important;
}

#book-appointment-wizard #available-hours .selected-hour {
    background-color: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #fff !important;
}

/* ── Forms ───────────────────────────────────────────────── */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
textarea,
select {
    background: #161628 !important;
    color: #f1f5f9 !important;
    border-color: #1e1e3a !important;
    direction: rtl !important;
    text-align: right !important;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25) !important;
    background: #161628 !important;
    color: #f1f5f9 !important;
    filter: none !important;
}

.form-control::placeholder { color: #94a3b8 !important; }
option { background: #0f0f1e !important; color: #f1f5f9 !important; }

.form-label, label { color: #cbd5e1 !important; font-weight: 500 !important; }
.form-text, .small, small { color: #94a3b8 !important; }
.text-muted { color: #94a3b8 !important; }

.form-check-input { background-color: #161628 !important; border-color: #1e1e3a !important; }
.form-check-input:checked { background-color: #7c3aed !important; border-color: #7c3aed !important; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary,
button.btn-primary,
a.btn-primary,
input[type="submit"].btn-primary {
    background: linear-gradient(135deg, #7c3aed, #5b21b6) !important;
    border-color: #7c3aed !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 0.75rem !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3) !important;
    filter: none !important;
}

.btn-primary:hover,
button.btn-primary:hover,
a.btn-primary:hover {
    background: linear-gradient(135deg, #5b21b6, #4c1d95) !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4) !important;
    filter: none !important;
}

.btn-primary:disabled, .btn-primary.disabled {
    background: #1e1e3a !important;
    border-color: #1e1e3a !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 0.5 !important;
}

.btn-outline-secondary, .btn-secondary {
    background: transparent !important;
    border-color: #1e1e3a !important;
    color: #94a3b8 !important;
}

.btn-outline-secondary:hover, .btn-secondary:hover {
    background: #161628 !important;
    border-color: #a78bfa !important;
    color: #f1f5f9 !important;
}

/* ── jQuery UI DatePicker ────────────────────────────────── */
body .ui-widget.ui-widget-content {
    background: #0f0f1e !important;
    border-color: #1e1e3a !important;
}

body .ui-datepicker {
    background: #0f0f1e !important;
    border: 1px solid #1e1e3a !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
}

body .ui-datepicker .ui-widget-header {
    background-color: #5b21b6 !important;
    border: none !important;
    color: #fff !important;
}

body .ui-datepicker th {
    background-color: #5b21b6 !important;
    color: #fff !important;
}

body .ui-datepicker .ui-datepicker-next-hover,
body .ui-datepicker .ui-datepicker-prev-hover {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
    filter: none !important;
}

body .ui-datepicker td a,
body .ui-datepicker td span {
    color: #f1f5f9 !important;
}

body .ui-datepicker td a:hover {
    background: rgba(124, 58, 237, 0.15) !important;
}

html body .ui-datepicker td a.ui-state-active {
    background: #7c3aed !important;
    color: #fff !important;
}

body .ui-datepicker td a.ui-state-highlight {
    background: #f59e0b !important;
    color: #000 !important;
    filter: none !important;
}

body .ui-datepicker .ui-datepicker-prev,
body .ui-datepicker .ui-datepicker-next {
    color: #fff !important;
}

body .ui-datepicker .ui-state-disabled span {
    color: #4a4a6a !important;
}

/* ── Flatpickr ───────────────────────────────────────────── */
/* ── Large Styled Calendar ─────────────────────────────── */
.flatpickr-calendar {
    background: #0f0f1e !important;
    border: 1px solid #2e2e5a !important;
    border-radius: 1rem !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6) !important;
    width: 100% !important;
    max-width: 100% !important;
    font-family: 'Heebo', sans-serif !important;
}

.flatpickr-calendar.inline {
    width: 100% !important;
    max-width: 100% !important;
}

.flatpickr-calendar .flatpickr-months,
.flatpickr-calendar .flatpickr-months .flatpickr-month {
    background: linear-gradient(135deg, #5b21b6, #7c3aed) !important;
    color: #fff !important;
    border-radius: 1rem 1rem 0 0 !important;
    height: 50px !important;
}

.flatpickr-calendar .flatpickr-weekdays {
    background: #161628 !important;
    padding: 8px 0 !important;
}

.flatpickr-calendar span.flatpickr-weekday {
    background: transparent !important;
    color: #a78bfa !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
}

.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months .flatpickr-monthDropdown-month {
    background-color: #5b21b6 !important;
    color: #fff !important;
}

.flatpickr-current-month input.cur-year {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: #fff !important;
    color: #fff !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    fill: #fcd34d !important;
    color: #fcd34d !important;
}

/* Large day cells */
.flatpickr-innerContainer {
    padding: 4px !important;
}

.dayContainer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    gap: 4px !important;
    padding: 4px !important;
}

.flatpickr-day {
    color: #f1f5f9 !important;
    max-width: none !important;
    height: 52px !important;
    line-height: 52px !important;
    border-radius: 0.6rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border: 1px solid transparent !important;
    flex-basis: calc(14.285% - 4px) !important;
    margin: 0 !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

.flatpickr-day:hover {
    background: rgba(124, 58, 237, 0.2) !important;
    border-color: #7c3aed !important;
    transform: scale(1.05);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange {
    background: linear-gradient(135deg, #5b21b6, #7c3aed) !important;
    border-color: #7c3aed !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4) !important;
    transform: scale(1.05);
}

.flatpickr-day.today {
    border-color: #f59e0b !important;
    border-width: 2px !important;
    background: rgba(245, 158, 11, 0.1) !important;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #3a3a5a !important;
    opacity: 0.4 !important;
}

/* Holiday days with name label */
.flatpickr-day.maor-holiday {
    height: 62px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    background: rgba(245, 158, 11, 0.05) !important;
}

.flatpickr-day.maor-holiday .maor-holiday-name {
    font-size: 0.55rem;
    color: #f59e0b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 2px;
    line-height: 1;
    margin-top: 2px;
}

.flatpickr-day.maor-holiday:hover {
    border-color: #f59e0b !important;
    background: rgba(245, 158, 11, 0.12) !important;
}

.flatpickr-day.maor-holiday.selected {
    background: linear-gradient(135deg, #5b21b6, #7c3aed) !important;
    border-color: #7c3aed !important;
}

.flatpickr-day.maor-holiday.selected .maor-holiday-name {
    color: #fcd34d !important;
}

@media (max-width: 480px) {
    .flatpickr-day {
        height: 42px !important;
        line-height: 42px !important;
        font-size: 0.85rem !important;
    }
    .flatpickr-day.maor-holiday {
        height: 50px !important;
    }
    .flatpickr-day.maor-holiday .maor-holiday-name {
        font-size: 0.45rem;
    }
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
    background: #0f0f1e !important;
    border-color: #1e1e3a !important;
    color: #f1f5f9 !important;
}

.card-header {
    background: linear-gradient(135deg, #5b21b6, #7c3aed) !important;
    color: #fff !important;
    border-bottom-color: #1e1e3a !important;
}

.card-body { background: transparent !important; color: #f1f5f9 !important; }
.card-footer { background: transparent !important; border-top-color: #1e1e3a !important; }

/* ── Tables ──────────────────────────────────────────────── */
.table { color: #f1f5f9 !important; --bs-table-bg: transparent !important; }
.table thead th { background: #5b21b6 !important; color: #fff !important; border-color: #1e1e3a !important; }
.table td, .table th { border-color: #1e1e3a !important; color: #f1f5f9 !important; }
.table tbody tr:hover { background: rgba(124, 58, 237, 0.05) !important; }
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background: rgba(255,255,255,0.02) !important;
    color: #f1f5f9 !important;
    --bs-table-striped-bg: rgba(255,255,255,0.02) !important;
}

/* ── Modals ──────────────────────────────────────────────── */
.modal-content { background: #0f0f1e !important; border-color: #1e1e3a !important; color: #f1f5f9 !important; }
body .modal-header { background: linear-gradient(135deg, #5b21b6, #7c3aed) !important; border-bottom-color: #1e1e3a !important; }
.modal-body { color: #f1f5f9 !important; }
.modal-footer { border-top-color: #1e1e3a !important; }

/* ── Dropdowns ───────────────────────────────────────────── */
.dropdown-menu { background: #0f0f1e !important; border-color: #1e1e3a !important; box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important; }
.dropdown-item { color: #f1f5f9 !important; }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(124, 58, 237, 0.1) !important; color: #a78bfa !important; }
.dropdown-item.active, .dropdown-item:active { background: #7c3aed !important; color: #fff !important; }
.dropdown-divider { border-color: #1e1e3a !important; }

/* ── Backend Header ──────────────────────────────────────── */
#header {
    background: linear-gradient(135deg, #050510, #0f0f2e) !important;
    border-bottom: 1px solid #1e1e3a !important;
}

#header #header-logo span {
    color: #f1f5f9 !important;
}

#header #header-logo small {
    color: #94a3b8 !important;
    filter: none !important;
}

#header #header-menu .nav-link {
    color: #cbd5e1 !important;
}

#header #header-menu .nav-item:hover,
#header #header-menu .nav-item.active {
    background: rgba(124, 58, 237, 0.2) !important;
}

#header #header-menu .nav-link:hover,
#header #header-menu .nav-link.active {
    color: #f59e0b !important;
}

/* ── Backend Content Area ────────────────────────────────── */
.backend-page { background: #080812 !important; color: #f1f5f9 !important; }

.backend-page .filter-records {
    background: #0f0f1e !important;
    border-color: #1e1e3a !important;
}

.backend-page .filter-records .results .entry {
    background: transparent !important;
    border-bottom-color: #1e1e3a !important;
    color: #f1f5f9 !important;
}

.backend-page .filter-records .results .entry:hover {
    background: rgba(124, 58, 237, 0.05) !important;
}

.backend-page .filter-records .results .entry.selected {
    background: rgba(124, 58, 237, 0.1) !important;
    border-right-color: #7c3aed !important;
}

.backend-page .record-details {
    background: #0f0f1e !important;
    color: #f1f5f9 !important;
}

.backend-page h4, .backend-page h3, .backend-page h5 {
    color: #f1f5f9 !important;
}

/* ── Backend Calendar ────────────────────────────────────── */
.fc { direction: rtl !important; }

.fc .fc-toolbar-title { color: #f1f5f9 !important; }

.fc .fc-button-primary {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
}

.fc .fc-button-primary:hover { background: #5b21b6 !important; }

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: #f59e0b !important;
    border-color: #f59e0b !important;
    color: #000 !important;
}

.fc .fc-col-header-cell { background: #161628 !important; color: #f1f5f9 !important; }
.fc .fc-daygrid-day-number, .fc .fc-timegrid-slot-label { color: #94a3b8 !important; }
.fc .fc-event { background: #7c3aed !important; border-color: #5b21b6 !important; }
.fc .fc-daygrid-event { color: #fff !important; }
.fc-theme-standard td, .fc-theme-standard th, .fc-theme-standard .fc-scrollgrid { border-color: #1e1e3a !important; }
.fc .fc-daygrid-day.fc-day-today { background: rgba(124, 58, 237, 0.08) !important; }

/* ── Login Page ──────────────────────────────────────────── */
#login-frame {
    background: linear-gradient(135deg, #080812, #0f0f2e) !important;
    min-height: 100vh !important;
}

#login-frame {
    max-width: 420px !important;
    margin: 0 auto !important;
    padding: 60px 30px 40px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
}
#login-frame > * { width: 100% !important; }
#login-frame h2 { color: #a78bfa !important; font-size: 1.8rem !important; font-weight: 700 !important; margin-bottom: 8px !important; }
#login-frame p { color: #94a3b8 !important; margin-bottom: 16px !important; }
#login-frame small { color: #94a3b8 !important; }
#login-frame a { color: #a78bfa !important; }
#login-frame hr { margin: 0 0 10px !important; }
#login-frame .form-label { text-align: right !important; display: block !important; }
#login-frame .form-control { text-align: right !important; }
#login-frame .forgot-password { font-size: 0.9rem !important; }
#login-frame #login-form .d-flex { flex-direction: column !important; align-items: center !important; gap: 12px !important; }
#login-frame #login { width: 100% !important; padding: 12px !important; font-size: 1.1rem !important; }
#login-frame .mt-4 { margin-top: auto !important; text-align: center !important; }

/* ── Nav / Tabs ──────────────────────────────────────────── */
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: #7c3aed !important; color: #fff !important; }
.nav-pills .nav-link:not(.active), .nav .nav-link:not(.active) { color: #94a3b8 !important; }
.nav-tabs { border-bottom-color: #1e1e3a !important; }
.nav-tabs .nav-link { color: #94a3b8 !important; }
.nav-tabs .nav-link.active { background: #0f0f1e !important; border-color: #1e1e3a !important; color: #a78bfa !important; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert-success { background: rgba(16,185,129,0.1) !important; border-color: rgba(16,185,129,0.2) !important; color: #6ee7b7 !important; }
.alert-danger { background: rgba(239,68,68,0.1) !important; border-color: rgba(239,68,68,0.2) !important; color: #fca5a5 !important; }
.alert-warning { background: rgba(245,158,11,0.1) !important; border-color: rgba(245,158,11,0.2) !important; color: #fcd34d !important; }
.alert-info { background: rgba(124,58,237,0.1) !important; border-color: rgba(124,58,237,0.2) !important; color: #a78bfa !important; }

/* ── Misc ────────────────────────────────────────────────── */
hr { border-color: #1e1e3a !important; }
.text-dark { color: #f1f5f9 !important; }
.text-body { color: #f1f5f9 !important; }
.text-black-50 { color: #94a3b8 !important; }
.text-secondary { color: #94a3b8 !important; }
.bg-light { background: #161628 !important; }
.bg-white { background: #0f0f1e !important; }
.border { border-color: #1e1e3a !important; }

.list-group-item { background: #0f0f1e !important; border-color: #1e1e3a !important; color: #f1f5f9 !important; }
.list-group-item.active { background: #7c3aed !important; border-color: #7c3aed !important; }

.page-link { background: #161628 !important; border-color: #1e1e3a !important; color: #94a3b8 !important; }
.page-link:hover { background: #7c3aed !important; color: #fff !important; }
.page-item.active .page-link { background: #7c3aed !important; border-color: #7c3aed !important; }

.badge.bg-primary { background: #7c3aed !important; }
.badge.bg-warning { background: #f59e0b !important; color: #000 !important; }

.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple { background: #161628 !important; border-color: #1e1e3a !important; }
.select2-container--default .select2-selection--single .select2-selection__rendered { color: #f1f5f9 !important; }
.select2-container--default .select2-results__option { background: #0f0f1e !important; color: #f1f5f9 !important; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: #7c3aed !important; }
.select2-dropdown { background: #0f0f1e !important; border-color: #1e1e3a !important; }

#existing-customers-list div:hover { background: #7c3aed !important; }

/* ── Message Layout (confirmation/cancellation pages) ──── */
#message-frame {
    background: #0f0f1e !important;
    border-color: #1e1e3a !important;
    color: #f1f5f9 !important;
    text-align: center !important;
}
#message-frame h4, #message-frame h3, #message-frame h2 {
    color: #f1f5f9 !important;
}
#message-frame p { color: #cbd5e1 !important; }
#message-frame small { color: #94a3b8 !important; }
#message-frame a:not(.btn) { color: #a78bfa !important; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #080812; }
::-webkit-scrollbar-thumb { background: #5b21b6; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7c3aed; }

/* Footer */
footer, #footer, .powered-by {
    background: transparent !important;
    color: #94a3b8 !important;
    border-top: 1px solid #1e1e3a !important;
}
footer a, .powered-by a { color: #a78bfa !important; }

/* Account layout specific */
#login-frame .frame-container {
    background: transparent !important;
}

/* Trumbowyg (rich text editor in backend) */
.trumbowyg-box { background: #161628 !important; border-color: #1e1e3a !important; }
.trumbowyg-editor { background: #161628 !important; color: #f1f5f9 !important; }
.trumbowyg-button-pane { background: #0f0f1e !important; border-color: #1e1e3a !important; }

/* Tooltip */
.tippy-box { background: #0f0f1e !important; border: 1px solid #1e1e3a !important; color: #f1f5f9 !important; }

/* Unavailabilities / breaks backgrounds - remove images */
.backend-page .fc-event.fc-unavailability { background: #3b0764 !important; background-image: none !important; }
.backend-page .fc-event.fc-break { background: #92400e !important; background-image: none !important; }
.backend-page .fc-event.fc-custom { background: #1e3a5f !important; background-image: none !important; }

@media (max-width: 768px) {
    #book-appointment-wizard .wizard-frame {
        margin: 0 !important;
        border-radius: 0 !important;
    }
}

/* ============================================================
 * SINGLE-PAGE BOOKING FLOW
 * ============================================================ */

/* Hide step indicators (single page flow) */
#book-appointment-wizard #steps {
    display: none !important;
}

/* Header simplified */
#book-appointment-wizard #header {
    text-align: center !important;
    padding: 20px 15px !important;
    background: linear-gradient(135deg, #050510, #0f0f2e) !important;
    border-bottom: 2px solid #7c3aed !important;
}

.maor-logo-text {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #a78bfa, #7c3aed) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

#book-appointment-wizard #header .display-booking-selection {
    color: #94a3b8 !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    border: none !important;
    margin-top: 4px !important;
}

/* Single page step base */
.maor-single-page-step {
    visibility: visible !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
}

/* Only frame-1 visible on load; frames 2-4 stay hidden until JS reveals them */
#wizard-frame-1.maor-single-page-step {
    display: block !important;
}

#book-appointment-wizard .maor-single-page-step .frame-container {
    padding: 24px 16px !important;
    background: #0f0f1e !important;
    border: 1px solid #1e1e3a !important;
    border-radius: 1rem !important;
    margin-bottom: 16px !important;
}

/* Section titles */
.maor-section-title {
    color: #f1f5f9 !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid #1e1e3a !important;
}

.maor-section-title i {
    color: #f59e0b !important;
    margin-left: 8px !important;
}

/* ── Service Cards ──────────────────────────────────────── */
.maor-service-cards {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 12px !important;
    padding: 0 !important;
}

.maor-service-card {
    background: #161628 !important;
    border: 2px solid #1e1e3a !important;
    border-radius: 1rem !important;
    padding: 20px 16px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
}

.maor-service-card::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, rgba(124,58,237,0.05), transparent) !important;
    opacity: 0 !important;
    transition: opacity 0.3s !important;
}

.maor-service-card:hover {
    border-color: #7c3aed !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.2) !important;
}

.maor-service-card:hover::before {
    opacity: 1 !important;
}

.maor-service-card.active {
    border-color: #f59e0b !important;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(124,58,237,0.08)) !important;
    box-shadow: 0 0 0 1px #f59e0b, 0 8px 24px rgba(245, 158, 11, 0.15) !important;
    transform: translateY(-3px) !important;
}

.maor-service-card.active::after {
    content: '\f00c' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    background: #f59e0b !important;
    color: #000 !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.7rem !important;
}

.maor-service-name {
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    margin-bottom: 8px !important;
    position: relative !important;
}

.maor-service-info {
    color: #94a3b8 !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    position: relative !important;
}

.maor-service-info i {
    color: #a78bfa !important;
    margin-left: 4px !important;
}

.maor-service-divider {
    margin: 0 6px !important;
    color: #4a4a6a !important;
}

/* ── Date/Time Row ──────────────────────────────────────── */
.maor-datetime-row {
    gap: 0 !important;
}

.maor-date-col {
    display: flex !important;
    justify-content: center !important;
}

.maor-time-col {
    display: flex !important;
    flex-direction: column !important;
}

.maor-hours-label {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #a78bfa !important;
    margin-bottom: 10px !important;
    text-align: center !important;
    display: block !important;
}

/* Available hours grid */
#book-appointment-wizard #available-hours {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    padding: 4px !important;
}

#book-appointment-wizard #available-hours .available-hour {
    padding: 10px 8px !important;
    text-align: center !important;
    border-radius: 0.75rem !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}

/* ── Customer Info ──────────────────────────────────────── */
.maor-info-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

.maor-info-grid .mb-3:nth-child(4) {
    grid-column: 1 / -1 !important;
}

/* ── Summary Box ────────────────────────────────────────── */
.maor-summary-box {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    background: #161628 !important;
    border: 1px solid #1e1e3a !important;
    border-radius: 0.75rem !important;
    padding: 20px !important;
}

.maor-summary-col h4 {
    color: #a78bfa !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid #1e1e3a !important;
}

.maor-summary-col p {
    color: #cbd5e1 !important;
    margin-bottom: 4px !important;
    font-size: 0.9rem !important;
}

/* ── Confirm Button ─────────────────────────────────────── */
.maor-confirm-area {
    text-align: center !important;
    padding: 20px 16px !important;
}

.maor-btn-confirm {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: none !important;
    color: #000 !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    padding: 14px 48px !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3) !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    max-width: 400px !important;
}

.maor-btn-confirm:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(245, 158, 11, 0.4) !important;
    color: #000 !important;
}

/* ── Hide original elements ─────────────────────────────── */
.command-buttons { display: none !important; }

#book-appointment-wizard #frame-footer {
    background: transparent !important;
    border: none !important;
}

#book-appointment-wizard #frame-footer .powered-by-ea { display: none !important; }

/* ── Responsive ─────────────────────────────────────────── */
/* (Holiday styles moved to Large Styled Calendar section above) */

@media (max-width: 768px) {
    .maor-service-cards {
        grid-template-columns: 1fr !important;
    }

    .maor-info-grid {
        grid-template-columns: 1fr !important;
    }

    .maor-summary-box {
        grid-template-columns: 1fr !important;
    }

    #book-appointment-wizard #available-hours {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .maor-section-title {
        font-size: 1.1rem !important;
    }

    .maor-btn-confirm {
        font-size: 1.05rem !important;
        padding: 12px 32px !important;
    }
}
