/* Markaz24 Booking - Premium Public Styles (Dark Contrast Theme) */
:root {
    --m24-primary: #c39439;
    --m24-primary-dark: #a87d2f;
    --m24-primary-light: #d4a94d;
    --m24-primary-glow: rgba(195, 148, 57, 0.25);
    --m24-black: #000;
    --m24-dark: #111111;
    --m24-dark-card: #1a1a1a;
    --m24-dark-surface: #222222;
    --m24-dark-border: #2a2a2a;
    --m24-text: #f0ece4;
    --m24-text-muted: #999;
    --m24-success: #27ae60;
    --m24-danger: #e74c3c;
    --m24-radius: 16px;
    --m24-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --m24-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.45);
    --m24-shadow-gold: 0 8px 32px rgba(195, 148, 57, 0.2);
}

/* App Container */
.m24-booking-app {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px;
    color: var(--m24-text);
    background: linear-gradient(180deg, #0d0d0d 0%, #111 50%, #0a0a0a 100%);
    border-radius: 24px;
    border: 1px solid var(--m24-dark-border);
    position: relative;
    overflow: hidden;
}
.m24-booking-app::before {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(195, 148, 57, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.m24-booking-app > * { position: relative; z-index: 1; }
.m24-booking-app * { box-sizing: border-box; font-family: 'Cairo', sans-serif; }

/* ======================== */
/* PROGRESS BAR             */
/* ======================== */
.m24-progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 48px;
    padding: 24px 0;
    flex-wrap: wrap;
}
.m24-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
    min-width: 60px;
}
.m24-step-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--m24-dark-surface);
    color: var(--m24-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--m24-dark-border);
}
.m24-step-text {
    font-size: 12px;
    color: var(--m24-text-muted);
    font-weight: 600;
    transition: all 0.3s;
}
.m24-progress-step.active .m24-step-num {
    background: var(--m24-primary);
    color: #fff;
    border-color: var(--m24-primary);
    box-shadow: 0 0 0 6px var(--m24-primary-glow), var(--m24-shadow-gold);
    transform: scale(1.1);
}
.m24-progress-step.active .m24-step-text {
    color: var(--m24-primary);
    font-weight: 800;
    transform: translateY(2px);
}
.m24-progress-step.done .m24-step-num {
    background: var(--m24-dark-card);
    color: var(--m24-primary);
    border-color: var(--m24-primary-dark);
}
.m24-progress-step.done .m24-step-text { color: var(--m24-primary-dark); }
.m24-progress-line {
    flex: 1;
    height: 3px;
    background: var(--m24-dark-border);
    min-width: 30px;
    max-width: 100px;
    margin: 0 4px;
    margin-bottom: 24px;
    transition: background 0.4s;
    border-radius: 2px;
}
.m24-progress-line.done { background: linear-gradient(90deg, var(--m24-primary-dark), var(--m24-primary)); }

/* ======================== */
/* STEPS                    */
/* ======================== */
.m24-step { display: none; animation: m24FadeIn 0.5s ease; padding: 0 10px; }
.m24-step.active { display: block; }
.m24-step-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 36px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}
.m24-step-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--m24-primary), var(--m24-primary-light));
    border-radius: 2px;
}
@keyframes m24FadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* ======================== */
/* DURATION CARDS           */
/* ======================== */
.m24-duration-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.m24-duration-card {
    background: var(--m24-dark-card);
    border: 2px solid var(--m24-dark-border);
    border-radius: var(--m24-radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--m24-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.m24-duration-card:hover {
    border-color: var(--m24-primary-dark);
    transform: translateY(-6px);
    box-shadow: var(--m24-shadow-hover), 0 0 30px rgba(195, 148, 57, 0.1);
}
.m24-duration-card.selected {
    border-color: var(--m24-primary);
    background: linear-gradient(145deg, var(--m24-dark-card), #1f1a10);
    box-shadow: 0 0 0 3px var(--m24-primary-glow), var(--m24-shadow-gold);
}
.m24-dur-time { font-size: 46px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 4px; }
.m24-dur-label { font-size: 16px; color: var(--m24-text-muted); margin-bottom: 20px; font-weight: 500; }
.m24-dur-price {
    background: linear-gradient(135deg, var(--m24-primary-dark), var(--m24-primary));
    color: #fff;
    padding: 10px 28px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 16px;
    display: inline-block;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 16px rgba(195, 148, 57, 0.3);
}
.m24-duration-card.selected .m24-dur-price {
    background: #fff;
    color: var(--m24-dark);
}

/* ======================== */
/* CALENDAR                 */
/* ======================== */
.m24-calendar {
    background: var(--m24-dark-card);
    border-radius: var(--m24-radius);
    padding: 32px;
    box-shadow: var(--m24-shadow);
    border: 1px solid var(--m24-dark-border);
    max-width: 800px;
    margin: 0 auto;
}
.m24-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--m24-dark-border);
    padding-bottom: 16px;
}
.m24-cal-month { font-size: 22px; font-weight: 800; color: #fff; }
.m24-cal-nav {
    background: var(--m24-dark-surface);
    border: 1px solid var(--m24-dark-border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--m24-text-muted);
}
.m24-cal-nav svg { width: 20px; height: 20px; fill: currentColor; }
.m24-cal-nav:hover {
    background: var(--m24-primary);
    color: #fff;
    border-color: var(--m24-primary);
    transform: scale(1.05);
}
.m24-cal-days-header { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; margin-bottom: 12px; }
.m24-cal-days-header span {
    font-size: 13px;
    color: var(--m24-primary);
    font-weight: 700;
    padding: 10px 0;
    letter-spacing: 0.5px;
}
.m24-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.m24-cal-day {
    padding: 14px 4px;
    text-align: center;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s;
    position: relative;
    color: var(--m24-text-muted);
}
.m24-cal-day.available {
    cursor: pointer;
    background: var(--m24-dark-surface);
    color: var(--m24-text);
    font-weight: 600;
    border: 1px solid var(--m24-dark-border);
}
.m24-cal-day.available:hover {
    background: var(--m24-primary);
    color: #fff;
    border-color: var(--m24-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(195, 148, 57, 0.3);
}
.m24-cal-day.selected {
    background: var(--m24-primary);
    color: #fff;
    border-color: var(--m24-primary);
    box-shadow: 0 4px 20px rgba(195, 148, 57, 0.4);
    transform: scale(1.05);
    font-weight: 800;
}
.m24-cal-day.disabled { color: #333; background: transparent; }
.m24-cal-day.empty { visibility: hidden; }
.m24-cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--m24-primary);
}
.m24-cal-day.today.selected::after { background: #fff; }

/* ======================== */
/* TIME SLOTS               */
/* ======================== */
.m24-selected-date-display {
    text-align: center;
    color: var(--m24-primary);
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 700;
    background: rgba(195, 148, 57, 0.08);
    padding: 14px 24px;
    border-radius: 12px;
    display: inline-block;
    left: 50%;
    position: relative;
    transform: translateX(-50%);
    border: 1px solid rgba(195, 148, 57, 0.15);
}
.m24-time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.m24-time-slot {
    background: var(--m24-dark-card);
    border: 2px solid var(--m24-dark-border);
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--m24-shadow);
}
.m24-time-slot:hover {
    border-color: var(--m24-primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--m24-shadow-hover);
}
.m24-time-slot.selected {
    border-color: var(--m24-primary);
    background: linear-gradient(145deg, var(--m24-dark-card), #1f1a10);
    box-shadow: 0 0 0 3px var(--m24-primary-glow);
}
.m24-time-main { font-size: 22px; font-weight: 800; color: #fff; direction: ltr; display: inline-block; }
.m24-time-sub { font-size: 13px; color: var(--m24-text-muted); margin-top: 6px; font-weight: 500; }
.m24-time-label {
    font-size: 12px;
    color: var(--m24-primary);
    font-weight: 700;
    margin-top: 8px;
    display: block;
    background: rgba(195, 148, 57, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(195, 148, 57, 0.1);
}

/* Booked (unavailable) time slots */
.m24-time-slot.m24-time-booked {
    cursor: not-allowed;
    opacity: 0.5;
    border-color: rgba(231, 76, 60, 0.3);
    background: var(--m24-dark-surface);
    pointer-events: none;
    position: relative;
}
.m24-time-slot.m24-time-booked .m24-time-main {
    text-decoration: line-through;
    color: var(--m24-text-muted);
}
.m24-time-slot.m24-time-booked .m24-time-label {
    color: var(--m24-text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}
.m24-booked-badge {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 800;
    color: var(--m24-danger);
    background: rgba(231, 76, 60, 0.1);
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-block;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* ======================== */
/* FORM                     */
/* ======================== */
.m24-form {
    background: var(--m24-dark-card);
    border-radius: var(--m24-radius);
    padding: 36px;
    box-shadow: var(--m24-shadow);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--m24-dark-border);
}
.m24-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.m24-form-group { margin-bottom: 24px; }
.m24-form-group label { display: block; font-weight: 700; margin-bottom: 10px; font-size: 15px; color: var(--m24-text); }
.m24-required { color: var(--m24-primary); margin-right: 4px; }
.m24-form-group input, .m24-form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--m24-dark-border);
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: var(--m24-dark-surface);
    color: var(--m24-text);
}
.m24-form-group input::placeholder, .m24-form-group textarea::placeholder { color: var(--m24-text-muted); }
.m24-form-group input:focus, .m24-form-group textarea:focus {
    border-color: var(--m24-primary);
    background: var(--m24-dark);
    outline: none;
    box-shadow: 0 0 0 4px var(--m24-primary-glow);
}
.m24-form-group textarea { resize: vertical; min-height: 120px; }

/* File Upload */
.m24-file-upload {
    position: relative;
    border: 2px dashed var(--m24-dark-border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--m24-dark-surface);
}
.m24-file-upload:hover { border-color: var(--m24-primary); background: rgba(195, 148, 57, 0.03); }
.m24-file-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.m24-file-label svg { width: 48px; height: 48px; fill: var(--m24-primary); margin-bottom: 12px; opacity: 0.7; transition: opacity 0.3s; }
.m24-file-upload:hover .m24-file-label svg { opacity: 1; transform: scale(1.05); }
.m24-file-label p { margin: 0 0 8px; font-weight: 700; font-size: 16px; color: var(--m24-text); }
.m24-file-label small { color: var(--m24-text-muted); font-size: 13px; }
.m24-file-list { margin-top: 12px; }
.m24-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--m24-dark-surface);
    border: 1px solid var(--m24-dark-border);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--m24-text);
}

/* Coupon */
.m24-coupon-input { display: flex; gap: 12px; }
.m24-coupon-input input { flex: 1; }
.m24-btn-coupon {
    background: linear-gradient(135deg, var(--m24-primary-dark), var(--m24-primary));
    color: #fff;
    border: none;
    padding: 0 28px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 800;
    white-space: nowrap;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(195, 148, 57, 0.25);
}
.m24-btn-coupon:hover { background: #fff; color: var(--m24-dark); transform: translateY(-1px); }
.m24-coupon-msg { margin-top: 10px; font-size: 14px; padding: 12px 16px; border-radius: 8px; font-weight: 600; display: none; }
.m24-coupon-msg.success { background: rgba(39, 174, 96, 0.1); color: var(--m24-success); border: 1px solid rgba(39, 174, 96, 0.2); display: block; }
.m24-coupon-msg.error { background: rgba(231, 76, 60, 0.1); color: var(--m24-danger); border: 1px solid rgba(231, 76, 60, 0.2); display: block; }

/* ======================== */
/* BOOKING SUMMARY          */
/* ======================== */
.m24-booking-summary-mini {
    background: linear-gradient(135deg, #0a0a0a, var(--m24-dark-card));
    color: #fff;
    padding: 24px;
    border-radius: var(--m24-radius);
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 15px;
    box-shadow: var(--m24-shadow);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--m24-dark-border);
}
.m24-summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(195, 148, 57, 0.05);
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(195, 148, 57, 0.1);
}
.m24-summary-label { color: var(--m24-primary); font-weight: 700; }

/* ======================== */
/* PAYMENT                  */
/* ======================== */
.m24-payment-summary {
    background: var(--m24-dark-card);
    border-radius: var(--m24-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--m24-shadow);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--m24-dark-border);
}
.m24-payment-gateways {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.m24-gateway-option {
    border: 2px solid var(--m24-dark-border);
    background: var(--m24-dark-card);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}
.m24-gateway-option:hover { border-color: var(--m24-primary-dark); background: var(--m24-dark-surface); }
.m24-gateway-option.active {
    border-color: var(--m24-primary);
    background: linear-gradient(145deg, var(--m24-dark-card), #1f1a10);
    box-shadow: 0 0 0 2px var(--m24-primary-glow);
}
.m24-gateway-radio { display: flex; align-items: center; gap: 12px; }
.m24-gateway-radio input { accent-color: var(--m24-primary); width: 18px; height: 18px; }
.m24-gateway-radio label {
    font-weight: 800;
    cursor: pointer;
    font-size: 16px;
    color: var(--m24-text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.m24-stripe-element {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid var(--m24-dark-border);
    border-radius: 8px;
    min-height: 50px;
    background: var(--m24-dark-surface);
}
.m24-error {
    background: rgba(231, 76, 60, 0.1);
    color: var(--m24-danger);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 600;
    border: 1px solid rgba(231, 76, 60, 0.2);
}
.m24-loading { text-align: center; padding: 50px 20px; }
.m24-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--m24-dark-border);
    border-top-color: var(--m24-primary);
    border-radius: 50%;
    animation: m24Spin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin: 0 auto 16px;
}
.m24-loading p { font-weight: 700; color: var(--m24-text-muted); }
@keyframes m24Spin { to { transform: rotate(360deg); } }

/* ======================== */
/* NAVIGATION               */
/* ======================== */
.m24-step-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 16px;
    flex-wrap: wrap;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    border-top: 1px solid var(--m24-dark-border);
}
.m24-btn-nav {
    padding: 16px 36px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}
.m24-btn-next, .m24-btn-pay {
    background: linear-gradient(135deg, var(--m24-primary-dark), var(--m24-primary));
    color: #fff;
    box-shadow: 0 6px 24px rgba(195, 148, 57, 0.35);
}
.m24-btn-next:hover, .m24-btn-pay:hover {
    background: #fff;
    color: var(--m24-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}
.m24-prev-step {
    background: var(--m24-dark-surface);
    color: var(--m24-text-muted);
    border: 1px solid var(--m24-dark-border);
}
.m24-prev-step:hover {
    background: var(--m24-dark-border);
    color: var(--m24-text);
    transform: translateY(-2px);
}
.m24-btn-nav:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ======================== */
/* CONFIRMATION             */
/* ======================== */
.m24-confirmation { text-align: center; padding: 50px 20px; max-width: 600px; margin: 0 auto; }
.m24-conf-icon { margin-bottom: 24px; animation: m24PopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.m24-conf-icon svg { width: 90px; height: 90px; fill: var(--m24-success); filter: drop-shadow(0 4px 12px rgba(39, 174, 96, 0.3)); }
@keyframes m24PopIn { 0% { opacity: 0; transform: scale(0.5); } 100% { opacity: 1; transform: scale(1); } }
.m24-confirmation h2 { font-size: 32px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.m24-conf-subtitle { color: var(--m24-text-muted); margin-bottom: 32px; font-size: 16px; }
.m24-conf-details {
    background: var(--m24-dark-card);
    border-radius: var(--m24-radius);
    padding: 32px;
    box-shadow: var(--m24-shadow);
    text-align: right;
    border: 1px solid var(--m24-dark-border);
}
.m24-conf-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--m24-dark-border);
    align-items: center;
    font-size: 15px;
}
.m24-conf-row:last-child { border: none; padding-bottom: 0; }
.m24-conf-label { font-weight: 700; color: var(--m24-text); }
.m24-conf-value { color: var(--m24-text-muted); font-weight: 500; }

/* ======================== */
/* RESPONSIVE               */
/* ======================== */
@media (max-width: 768px) {
    .m24-booking-app { padding: 20px 12px; border-radius: 16px; margin: 10px; }
    .m24-progress-step { min-width: auto; flex: 1; }
    .m24-progress-line { display: none; }
    .m24-step-text { display: none; }
    .m24-step-num { width: 36px; height: 36px; margin: 0 auto; font-size: 14px; }
    .m24-step-title { font-size: 22px; }
    .m24-duration-cards, .m24-time-slots, .m24-form-grid { grid-template-columns: 1fr; }
    .m24-calendar { padding: 16px; }
    .m24-form { padding: 20px; }
    .m24-booking-summary-mini { flex-direction: column; gap: 10px; padding: 16px; }
    .m24-step-nav { flex-direction: column; }
    .m24-btn-nav { width: 100%; justify-content: center; padding: 14px; }
    .m24-prev-step { order: 2; }
    .m24-btn-next, .m24-btn-pay { order: 1; }
    .m24-cal-day { padding: 10px 2px; font-size: 14px; }
    .m24-conf-details { padding: 20px; }
    .m24-confirmation { padding: 30px 16px; }
}

@media (max-width: 480px) {
    .m24-booking-app { border-radius: 12px; }
    .m24-dur-time { font-size: 36px; }
    .m24-duration-card { padding: 24px 16px; }
    .m24-time-slot { padding: 16px; }
    .m24-time-main { font-size: 18px; }
    .m24-coupon-input { flex-direction: column; }
    .m24-btn-coupon { padding: 14px; border-radius: 12px; }
}
