:root {
    --primary-color: #4A90E2;
    --secondary-color: #357ABD;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --border-radius: 8px;
    --shadow: 0 2px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Cairo', sans-serif; line-height: 1.6; color: #333; background-color: #fff; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.header { background: white; box-shadow: 0 2px 15px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.8rem; font-weight: 800; color: var(--dark-color); text-decoration: none; }
.logo i { color: var(--primary-color); font-size: 2.2rem; }
.logo-highlight { color: var(--primary-color); }
.nav-menu { display: flex; list-style: none; gap: 20px; flex-wrap: wrap; align-items: center; }
.nav-link { text-decoration: none; color: var(--dark-color); font-weight: 500; transition: var(--transition); display: flex; align-items: center; gap: 5px; font-size: 1rem; }
.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.booking-btn { background: var(--primary-color); color: white !important; padding: 8px 16px; border-radius: 30px; }
.booking-btn:hover { background: var(--secondary-color); }
.auth-link, .guest-link { display: none; }
.user-name { font-weight: 600; color: var(--dark-color); }
.logout-btn { background: var(--danger-color); color: white; border: none; padding: 6px 12px; border-radius: 30px; font-weight: 500; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 5px; font-size: 0.9rem; }
.logout-btn:hover { background: #c82333; }
.nav-extra { display: flex; align-items: center; gap: 15px; }
.theme-toggle, .language-select { background: none; border: 1px solid #ddd; border-radius: 30px; padding: 5px 10px; cursor: pointer; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.bar { width: 25px; height: 3px; background: var(--dark-color); transition: var(--transition); }

.booking-hero {
    background: linear-gradient(135deg, rgba(52,152,219,0.9), rgba(41,128,185,0.9)), url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    padding: 80px 0;
    color: white;
    text-align: center;
}

.booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.progress-line {
    position: absolute;
    top: 25px;
    left: 0;
    right: 0;
    height: 3px;
    background: #eee;
    z-index: 1;
}

.progress-fill {
    position: absolute;
    top: 25px;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    z-index: 2;
    transition: width 0.3s ease;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.progress-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 3px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: var(--transition);
}

.progress-step.active .progress-circle {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

.progress-step.completed .progress-circle {
    border-color: var(--success-color);
    background: var(--success-color);
    color: white;
}

.booking-wizard {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-bottom: 40px;
}

.wizard-content {
    padding: 30px;
}

.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

.step-title {
    font-size: 1.6rem;
    color: var(--dark-color);
    margin-bottom: 30px;
    text-align: center;
}

.services-grid-booking,
.therapists-grid-booking {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.service-card-booking,
.therapist-card-booking {
    background: white;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    padding: 25px;
    cursor: pointer;
    transition: var(--transition);
}

.service-card-booking:hover,
.therapist-card-booking:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.service-card-booking.selected,
.therapist-card-booking.selected {
    border-color: var(--primary-color);
    background: rgba(52,152,219,0.05);
}

.service-icon-booking {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 15px 0;
}

.therapist-image-booking {
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.therapist-image-booking img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.therapist-card-booking:hover .therapist-image-booking img {
    transform: scale(1.05);
}

.therapist-info-booking {
    padding: 20px 0 0;
}

.availability-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.available {
    background: rgba(46,204,113,0.1);
    color: var(--success-color);
}

.busy {
    background: rgba(231,76,60,0.1);
    color: var(--danger-color);
}

.calendar-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav {
    display: flex;
    gap: 10px;
    align-items: center;
}

.calendar-nav button {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.calendar-nav button:hover {
    background: var(--secondary-color);
}

.calendar-month-year {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin: 20px 0;
}

.calendar-day-name {
    text-align: center;
    padding: 12px 5px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
    background: #f8f9fa;
    border-radius: 6px;
}

.calendar-day {
    text-align: center;
    padding: 15px 5px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid #eee;
    position: relative;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.calendar-day:hover {
    background: var(--light-color);
}

.calendar-day.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-day.today {
    border: 2px solid var(--success-color);
    background: rgba(46, 204, 113, 0.1);
}

.calendar-day.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.calendar-day.disabled:hover {
    background: #f8f9fa;
    transform: none;
}

.time-slots-container {
    margin-top: 30px;
}

.current-time-display {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.time-slot {
    padding: 15px;
    text-align: center;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.time-slot:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.time-slot.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.time-slot.booked {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.time-slot.past {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.booking-form-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.booking-summary {
    background: var(--light-color);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-prev, .btn-next {
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.btn-prev {
    background: var(--light-color);
    color: var(--dark-color);
    border: 1px solid #ddd;
}

.btn-prev:hover {
    background: #e9ecef;
}

.btn-next {
    background: var(--primary-color);
    color: white;
}

.btn-next:hover {
    background: var(--secondary-color);
}

.btn-next:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.booking-success {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 20px;
}

.reminder-option {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.payment-method {
    padding: 20px;
    border: 2px solid #eee;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.payment-method:hover {
    border-color: var(--primary-color);
}

.payment-method.selected {
    border-color: var(--primary-color);
    background: rgba(52,152,219,0.05);
}

.payment-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

.existing-account-section {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    border: 2px solid var(--primary-color);
}

.login-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 15px;
}

.login-form-inline {
    display: none;
    margin-top: 15px;
}

.login-form-inline.show {
    display: block;
}

.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    animation: slideIn 0.3s ease;
}

.notification.success { background: var(--success-color); }
.notification.error { background: var(--danger-color); }
.notification.warning { background: var(--warning-color); }
.notification.info { background: var(--primary-color); }

/* أنماط إضافية للدفع */
.installment-plan, .deposit-section, .insurance-section, .coupon-section {
    background: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
    border-right: 4px solid var(--primary-color);
}

.installment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
}

.installment-option {
    flex: 1 1 150px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.installment-option:hover {
    border-color: var(--primary-color);
}

.installment-option.selected {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.deposit-slider {
    width: 100%;
    margin: 15px 0;
}

.payment-details {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
    border: 1px dashed var(--primary-color);
}

.currency-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.currency-selector select {
    padding: 8px;
    border-radius: var(--border-radius);
    border: 1px solid #ddd;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.footer { background: var(--dark-color); color: white; padding: 4rem 0 1rem; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-bottom: 2rem; }
.footer-logo { color: white; font-size: 2rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.footer-description { opacity: 0.8; line-height: 1.8; }
.footer-title { font-size: 1.3rem; margin-bottom: 1.5rem; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; bottom: 0; right: 0; width: 50px; height: 2px; background: var(--primary-color); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: white; transform: translateX(-5px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.2); padding-top: 1.5rem; text-align: center; }
.footer-extra { display: flex; gap: 20px; justify-content: center; }
.footer-link { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; background: none; border: none; cursor: pointer; }
.footer-link:hover { color: white; }

.page-loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: white; z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.5s; }
.loader-content { text-align: center; }
.loader-spinner { width: 50px; height: 50px; border: 5px solid #f3f3f3; border-top: 5px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .nav-menu { display: none; flex-direction: column; width: 100%; background: white; padding: 1rem 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
    .nav-menu.show { display: flex; }
    .hamburger { display: flex; }
    .services-grid-booking,
    .therapists-grid-booking {
        grid-template-columns: 1fr;
    }
    .time-slots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .progress-indicator {
        flex-wrap: wrap;
        gap: 20px;
    }
    .progress-line {
        display: none;
    }
    .calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    .installment-options {
        flex-direction: column;
    }
}