@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    --gold: #E8A820;
    --gold-light: #F2C04A;
    --gold-dark: #B8841A;
    --gold-glow: rgba(232, 168, 32, 0.35);
    
    --black: #080808;
    --black-2: #101010;
    --black-3: #181818;
    --black-4: #222222;
    
    --text-main: #F8F2E6;
    --text-muted: rgba(248, 242, 230, 0.65);
    
    --bg-base: #080808;
    --surface: #101010;
    --border: rgba(248, 242, 230, 0.1);
    
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.5);
    --shadow-gold: 0 8px 40px rgba(232, 168, 32, 0.15);
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 40px;
}

/* Grain Effect */
body::after {
  content:'';
  position:fixed;inset:0;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events:none;z-index:9999;opacity:0.1;
}

/* Decorative Orbs */
.bg-shape {
    position: fixed;
    filter: blur(120px);
    z-index: -1;
    border-radius: 50%;
    animation: float 8s infinite alternate ease-in-out;
    opacity: 0.2;
}
.shape-1 {
    width: 400px; height: 400px;
    background: var(--gold);
    top: -100px; right: -100px;
}
.shape-2 {
    width: 300px; height: 300px;
    background: var(--gold-dark);
    bottom: -50px; left: -50px;
    animation-delay: -4s;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(30px) scale(1.05); }
}

/* Layout */
.booking-container {
    max-width: 600px;
    margin: 0 auto;
    padding-top: 3rem;
    padding-left: 15px;
    padding-right: 15px;
}

/* Header */
.brand-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-gold);
}
.brand-name {
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--gold);
    letter-spacing: -0.5px;
}

/* Wizard Progress */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 10px;
}
.wizard-progress .step {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 8px;
    transition: all 0.3s ease;
}
.wizard-progress .step::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0; left: 0;
    height: 2px;
    background-color: var(--black-4);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.wizard-progress .step.active {
    color: var(--gold);
}
.wizard-progress .step.active::after {
    background-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

/* Cards */
.booking-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.step-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--black-2);
}
.cursor-pointer { cursor: pointer; }

/* Buttons */
.btn-back {
    background: transparent; border: none;
    color: var(--text-muted);
    font-size: 0.9rem; font-weight: 600;
    transition: color 0.2s;
}
.btn-back:hover { color: var(--gold); }

.btn-luxury {
    border-radius: 8px;
    font-weight: 700;
    padding: 14px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary.btn-luxury {
    background: var(--gold);
    color: var(--black);
    border: none;
}
.btn-primary.btn-luxury:hover {
    transform: translateY(-2px);
    background: var(--gold-light);
    box-shadow: var(--shadow-gold);
}
.btn-outline-rose { /* Still named same in HTML but changing style to gold */
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
}
.btn-outline-rose:hover {
    background: var(--gold-glow);
    color: var(--text-main);
}

/* Inputs */
.luxury-input {
    border-radius: 8px !important;
    border: 1px solid var(--black-4) !important;
    padding: 12px 16px !important;
    font-family: inherit !important;
    transition: all 0.2s !important;
    background: #1a1a1a !important; /* خلفية داكنة جداً إجبارية */
    color: #ffffff !important;      /* نص أبيض صريح إجباري */
}
.luxury-input::placeholder {
    color: #666 !important;
}
.luxury-input:focus {
    border-color: var(--gold) !important;
    background: #222 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2) !important;
}

/* Service Items */
.category-title {
    position: sticky;
    top: 0;
    background: var(--surface);
    padding: 12px 0;
    z-index: 10;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--gold);
    border-bottom: 1px solid var(--border);
    margin-bottom: 12px;
}
.service-item {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--black-2);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}
.service-item:hover {
    border-color: var(--gold);
    background: var(--black-3);
}
.check-circle {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid var(--black-4);
    display: flex; align-items: center; justify-content: center;
    color: transparent;
    transition: all 0.2s;
}
.service-item.active {
    border-color: var(--gold);
    background: var(--black-4);
}
.service-item.active .check-circle {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

/* Branch Cards */
.branch-card {
    background: var(--black-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.branch-card:hover {
    border-color: var(--gold);
    background: var(--black-3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-gold);
}
.branch-card .fw-700 { color: var(--gold); }

/* Time Grid */
.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}
.time-slot {
    padding: 14px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    background: var(--black-2);
    transition: all 0.2s;
    color: var(--text-main);
}
.time-slot:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.time-slot.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
    box-shadow: var(--shadow-gold);
}

/* Summary Box */
.summary-box {
    background: var(--black-3);
    border: 1px dashed var(--gold);
    border-radius: 12px;
}
.summary-box .text-muted { color: var(--text-muted) !important; }

/* Success Step */
.success-icon i {
    font-size: 5rem;
    color: var(--gold);
    background: var(--gold-glow);
    border-radius: 50%;
    width: 120px; height: 120px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
}

/* Animations */
.animate-slide-up {
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.shake {
    animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.hidden { display: none !important; }
.bg-light-surface { background-color: var(--black-2) !important; }

/* Overrides for Bootstrap colors on dark background */
.text-muted { color: var(--text-muted) !important; }
.form-label.text-muted { color: var(--text-muted) !important; }
.secondary-text { color: var(--text-muted) !important; }

/* In case Bootstrap variables are used directly by some components */
:root {
    --bs-secondary-color: rgba(248, 242, 230, 0.6) !important;
    --bs-body-color: var(--text-main) !important;
}

/* Calendar customization */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}
