/**
 * استایل‌های فرانت‌اند سیستم رزرواسیون
 */

/* استایل کلی */
.reservation-booking-form {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

/* مراحل رزرو */
.booking-steps {
    position: relative;
    margin-bottom: 40px;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.step-label {
    font-size: 14px;
    color: #666;
    text-align: center;
}

.step.active .step-label {
    color: #667eea;
    font-weight: bold;
}

/* فرم‌ها */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* کارت سرویس */
.service-list {
    display: grid;
    gap: 20px;
}

.service-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.1);
}

.service-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.service-details {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.price {
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

.duration {
    color: #666;
    background: #e9ecef;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}

/* فیلدهای فرم */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* زمان‌های موجود */
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid transparent;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.time-slot:hover {
    background: #e9ecef;
}

.time-slot.selected {
    background: #667eea;
    color: white;
    border-color: #5a67d8;
}

/* خلاصه رزرو */
.booking-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.summary-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* روش‌های پرداخت */
.payment-options {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.payment-option {
    flex: 1;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-option:hover {
    border-color: #667eea;
}

.payment-option input[type="radio"]:checked ~ * {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

/* ناوبری */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

.button {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.button-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.button-secondary:hover {
    background: #e9ecef;
}

/* پیام‌ها */
.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* لودر */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* صفحه نتیجه پرداخت */
.reservation-payment-result {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.payment-result-container {
    max-width: 500px;
    width: 100%;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.result-icon {
    margin-bottom: 30px;
}

.result-icon.success {
    color: #28a745;
}

.result-icon.error {
    color: #dc3545;
}

/* لیست خدمات */
.reservation-services {
    margin: 20px 0;
}

.services-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

/* تقویم */
.reservation-calendar {
    margin: 20px 0;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* رزروهای من */
.bookings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.bookings-table th,
.bookings-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.bookings-table th {
    background: #f5f5f5;
    font-weight: bold;
}

/* وضعیت‌ها */
.status {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-confirmed {
    background: #d1ecf1;
    color: #0c5460;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-completed {
    background: #d4edda;
    color: #155724;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .booking-steps {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .step {
        flex: 1;
        min-width: 100px;
    }
    
    .service-list {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        flex-direction: column;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .step-number {
        width: 35px;
        height: 35px;
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}