/* ========================================
   افزونه رزرو نوبت - استایل فرانت
   نسخه: 3.2.2
======================================== */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg-light: #f9fafb;
}

/* Fallback for customization if not loaded */
.booking-form-container, .booking-dashboard-modern {
    --primary-color: var(--primary);
    --primary-hover: var(--primary-dark);
    --success-color: var(--success);
    --success-hover: #059669;
    --danger-color: var(--danger);
    --danger-hover: #dc2626;
    --secondary-color: #6b7280;
    --secondary-hover: #4b5563;
    --title-color: var(--text-dark);
    --text-color: var(--text-light);
    --field-bg: #ffffff;
    --field-border: var(--border);
    --field-focus: var(--primary);
    --card-bg: #ffffff;
    --card-border: var(--border);
    --card-hover: var(--bg-light);
    --time-slot-bg: var(--bg-light);
    --time-slot-hover: #e5e7eb;
    --time-slot-selected: var(--primary);
    --btn-text-color: #ffffff;
    --border-radius: 12px;
}

/* Apply Customization Variables to Base Styles */
.booking-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    direction: rtl;
    color: var(--text-color);
}

.booking-form-header h2 {
    color: var(--title-color);
}

.btn-primary, .btn-next, .btn-select-service {
    background: var(--primary-color) !important;
    color: var(--btn-text-color) !important;
}

.btn-primary:hover, .btn-next:hover, .btn-select-service:hover {
    background: var(--primary-hover) !important;
}

.btn-success, .btn-submit, .btn-apply-coupon {
    background: var(--success-color) !important;
    color: var(--btn-text-color) !important;
}

.btn-success:hover, .btn-submit:hover, .btn-apply-coupon:hover {
    background: var(--success-hover) !important;
}

.btn-secondary, .btn-prev {
    background: var(--secondary-color) !important;
    color: var(--btn-text-color) !important;
}

.btn-secondary:hover, .btn-prev:hover {
    background: var(--secondary-hover) !important;
}

.service-card, .datetime-selector, .contact-form-card, .coupon-card {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    border-radius: var(--border-radius);
}

.service-card:hover {
    background: var(--card-hover);
    border-color: var(--primary-color);
}

.time-slot {
    background: var(--time-slot-bg);
    border-radius: var(--border-radius);
    color: var(--text-color);
}

.time-slot:hover {
    background: var(--time-slot-hover);
    border-color: var(--primary-color);
}

.time-slot.selected {
    background: var(--time-slot-selected) !important;
    color: var(--btn-text-color) !important;
}

/* ========================================
   داشبورد کاربری مدرن
======================================== */
.booking-dashboard-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Vazir', Tahoma, sans-serif;
    direction: rtl;
}

/* Hero Section */
.dashboard-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 50px 40px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin: 0;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: 100px;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: -50px;
}

/* Guest Access Card */
.guest-access-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.access-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.access-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.access-description {
    font-size: 15px;
    color: var(--text-light);
    margin: 0 0 30px 0;
}

.access-form {
    max-width: 400px;
    margin: 0 auto;
}

.input-with-icon {
    position: relative;
    margin-bottom: 15px;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
}

.access-input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
}

.access-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}

.btn-access {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-access:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99,102,241,0.3);
}

/* Alert Messages */
.alert-modern {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.alert-message {
    font-size: 14px;
    line-height: 1.6;
}

.alert-success {
    background: #d1fae5;
    border: 2px solid #6ee7b7;
}

.alert-success .alert-icon {
    background: var(--success);
    color: white;
}

.alert-success .alert-title {
    color: #065f46;
}

.alert-success .alert-message {
    color: #047857;
}

.alert-error {
    background: #fee2e2;
    border: 2px solid #fca5a5;
}

.alert-error .alert-icon {
    background: var(--danger);
    color: white;
}

.alert-error .alert-title {
    color: #991b1b;
}

.alert-error .alert-message {
    color: #b91c1c;
}

/* Loyalty Card */
.loyalty-dashboard-card {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 16px;
    padding: 30px;
    color: white;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(251,191,36,0.3);
}

.loyalty-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.loyalty-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.loyalty-level-badge {
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
}

.loyalty-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.loyalty-stat-box {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 32px;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
}

/* Bookings Grid */
.bookings-grid-modern {
    display: grid;
    gap: 20px;
}

.booking-card-modern {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
}

.booking-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.card-status-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
}

.card-status-indicator.status-pending {
    background: var(--warning);
}

.card-status-indicator.status-confirmed {
    background: var(--success);
}

.card-status-indicator.status-completed {
    background: #3b82f6;
}

.card-status-indicator.status-cancelled {
    background: var(--danger);
}

.booking-card-header-modern {
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--bg-light);
}

.booking-service-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-icon-modern {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.service-details {
    flex: 1;
}

.service-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.booking-reference {
    font-size: 13px;
    color: var(--text-light);
}

.status-badge-modern {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.status-badge-modern.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge-modern.status-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.status-badge-modern.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge-modern.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.booking-card-body-modern {
    padding: 25px;
}

.info-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.info-box-modern {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-icon-wrapper {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon-modern {
    font-size: 20px;
}

.info-text {
    flex: 1;
    min-width: 0;
}

.info-label-modern {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 3px;
}

.info-value-modern {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.payment-badge-modern {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.payment-badge-modern.payment-paid {
    background: #d1fae5;
    color: #065f46;
}

.payment-badge-modern.payment-unpaid {
    background: #fee2e2;
    color: #991b1b;
}

.payment-badge-modern.payment-refunded {
    background: #e0e7ff;
    color: #3730a3;
}

.booking-notes-modern {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.notes-icon {
    font-size: 20px;
}

.notes-content {
    flex: 1;
}

.notes-label {
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
    display: block;
    margin-bottom: 5px;
}

.notes-text {
    font-size: 14px;
    color: #78350f;
    margin: 0;
    line-height: 1.6;
}

.booking-card-footer-modern {
    padding: 20px 25px;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
}

.footer-icon {
    font-size: 16px;
}

.card-actions-modern {
    display: flex;
    gap: 10px;
}

.btn-action-modern {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-review {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-review:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,102,241,0.3);
}

/* Empty State */
.empty-state-modern {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.empty-illustration {
    margin-bottom: 30px;
}

.empty-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #e5e7eb 100%);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.empty-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.empty-description {
    font-size: 15px;
    color: var(--text-light);
    margin: 0 0 30px 0;
}

.btn-empty-action {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-empty-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99,102,241,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-hero {
        padding: 40px 25px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .loyalty-stats {
        grid-template-columns: 1fr;
    }
    
    .info-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .booking-card-footer-modern {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .booking-dashboard-modern {
        padding: 10px;
    }
    
    .guest-access-card {
        padding: 30px 20px;
    }
    
    .booking-card-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}


/* ========================================
   فرم رزرو نوبت
======================================== */
.booking-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Vazir', Tahoma, sans-serif;
    direction: rtl;
}

.booking-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.booking-form-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.booking-form-header p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

/* Steps Progress */
.steps-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f3ff 100%);
    border-radius: 20px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.step-indicator.active .step-circle {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transform: scale(1.15);
}

.step-indicator.completed .step-circle {
    background: var(--success);
    border-color: var(--success);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
}

.step-indicator.active .step-label {
    color: var(--primary);
    font-weight: 700;
}

.step-indicator.completed .step-label {
    color: var(--success);
}

.progress-line {
    width: 120px;
    height: 4px;
    background: var(--border);
    margin: 0 15px;
    position: relative;
    top: -25px;
    border-radius: 2px;
}

.step-indicator.completed + .progress-line {
    background: var(--success);
}

/* Booking Steps */
.booking-step {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.booking-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.step-description {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.service-card {
    background: white;
    border: 3px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

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

.service-card.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, #f0f4ff 0%, white 100%);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.service-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 15px 0;
}

.service-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 20px 0;
    flex: 1;
}

.service-meta {
    display: flex;
    gap: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--bg-light);
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

.meta-icon {
    font-size: 18px;
}

.btn-select-service {
    width: 100%;
    padding: 14px 28px;
    background: var(--primary-color);
    color: var(--btn-text-color);
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.btn-select-service:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
}

.service-card.selected .btn-select-service {
    background: var(--success-color);
}

/* Selected Service Info */
.selected-service-info {
    background: linear-gradient(135deg, #f0f4ff 0%, #f5f3ff 100%);
    border: 2px solid #c7d2fe;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
}

.selected-service-info .info-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.selected-service-info .label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

.selected-service-info strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

/* DateTime Selector */
.datetime-selector {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
}

.selector-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.selector-col {
    display: flex;
    flex-direction: column;
}

.selector-col.full-width {
    grid-column: 1 / -1;
}

.selector-col label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.selector-col select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-dark);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.selector-col select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.selector-col select:disabled {
    background: var(--bg-light);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Time Slots */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
}

.time-slot {
    padding: 14px 20px;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'IRANYekan', sans-serif !important;
}

.time-slot:hover {
    border-color: var(--primary);
    background: var(--bg-light);
    transform: translateY(-2px);
}

.time-slot.selected {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.no-time-selected {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: var(--border-radius);
    color: #64748b;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    width: 100%;
}

.no-time-selected::before {
    content: '📅';
    font-size: 32px;
    display: block;
    margin-bottom: 5px;
}

.no-time-selected.loading-state::before {
    content: '⏳';
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.5; }
}

.select-date-first,
.no-times {
    display: none; /* Old classes replaced by .no-time-selected */
}

/* Booking Summary */
.booking-summary-table {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    padding: 35px;
    color: var(--btn-text-color);
    margin-bottom: 30px;
}

.summary-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.summary-table tbody tr:last-child {
    border-bottom: none;
}

.label-cell {
    padding: 18px 20px;
    font-weight: 600;
    text-align: right;
    width: 45%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.value-cell {
    padding: 18px 20px;
    text-align: left;
    font-weight: 800;
    color: white;
    font-size: 17px;
    font-family: 'IRANYekan', sans-serif !important;
}

.divider-row {
    height: 15px;
}

.total-row .label-cell,
.total-row .value-cell {
    background: rgba(255, 255, 255, 0.2);
    font-size: 18px;
    padding: 22px 20px;
    border-radius: 8px;
}

.discount-value {
    color: #86efac;
}

/* Contact Form */
.contact-form-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
}

.form-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Coupon Card */
.coupon-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px dashed #fbbf24;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
}

.coupon-title {
    font-size: 18px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.coupon-description {
    font-size: 14px;
    color: #78350f;
    margin: 0 0 20px 0;
}

.coupon-input-group {
    display: flex;
    gap: 12px;
}

.coupon-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #fbbf24;
    border-radius: 12px;
    font-size: 15px;
    background: white;
}

.coupon-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

.btn-apply-coupon {
    padding: 14px 28px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-apply-coupon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.coupon-message {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 16px 36px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.btn-prev {
    background: var(--secondary-color);
    color: var(--btn-text-color);
}

.btn-prev:hover {
    background: var(--secondary-hover);
}

.btn-next,
.btn-submit {
    background: var(--primary-color);
    color: var(--btn-text-color);
    margin-right: auto;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
}

.btn-next:disabled,
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 18px;
}

.btn-success {
    background: var(--success-color);
}

.btn-success:hover {
    background: var(--success-hover);
}

/* Loader */
.booking-loader {
    text-align: center;
    padding: 60px 20px;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--bg-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.booking-loader p {
    font-size: 16px;
    color: var(--text-light);
    font-weight: 600;
}

/* Responsive - Booking Form */
@media (max-width: 768px) {
    .booking-form-header h2 {
        font-size: 26px;
    }
    
    .steps-progress {
        padding: 25px 15px;
    }
    
    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .progress-line {
        width: 60px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .selector-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 10px;
    }
    
    .time-slot {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .step-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        width: 100%;
        margin-right: 0;
        padding: 14px 24px;
    }
    
    .datetime-selector {
        padding: 25px 20px;
    }
    
    .contact-form-card,
    .coupon-card {
        padding: 25px 20px;
    }
    
    .booking-summary-table {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .booking-form-container {
        padding: 10px;
    }
    
    .booking-form-header h2 {
        font-size: 22px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    .service-card {
        padding: 18px;
    }
    
    .service-icon {
        font-size: 40px;
    }
    
    .service-title {
        font-size: 18px;
    }
    
    .datetime-selector,
    .contact-form-card,
    .coupon-card {
        padding: 20px 15px;
    }
    
    .booking-summary-table {
        padding: 20px 15px;
    }
    
    .label-cell,
    .value-cell {
        padding: 14px 12px;
        font-size: 14px;
    }
    
    .btn-prev,
    .btn-next,
    .btn-submit {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .coupon-input-group {
        flex-direction: column;
    }
    
    .btn-apply-coupon {
        width: 100%;
    }
}
