/* نظام حجز الرحلات - التنسيقات */

/* صفحة الحجز الرئيسية */
.trip-booking-page {
    min-height: 60vh;
}

.feature-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

/* البوب اب - المعالج */
.booking-wizard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.booking-wizard-modal.show {
    display: flex;
}

.wizard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.wizard-container {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* رأس البوب اب */
.wizard-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2d5a8f 100%);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wizard-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.wizard-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.wizard-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* مؤشر الخطوات */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    padding: 30px 30px 20px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: 0;
}

.step.active:not(:last-child)::after,
.step.completed:not(:last-child)::after {
    background: var(--primary-color);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step.completed .step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

.step-label {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* محتوى النموذج */
.wizard-form {
    padding: 30px;
    max-height: calc(90vh - 300px);
    overflow-y: auto;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

/* الحقول */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 88, 130, 0.1);
}

/* الخدمات الإضافية */
.extras-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.extra-item {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.extra-item:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.extra-item.selected {
    border-color: var(--primary-color);
    background: rgba(52, 88, 130, 0.05);
}

.extra-item input[type="checkbox"] {
    margin-left: 10px;
}

.extra-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.extra-price {
    color: var(--primary-color);
    font-weight: 600;
}

/* ملخص السعر */
.price-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.price-summary h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.price-summary table {
    margin-bottom: 0;
}

/* طرق الدفع */
.payment-methods {
    margin-top: 20px;
}

.payment-method {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-method:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.payment-method.selected {
    border-color: var(--primary-color);
    background: rgba(52, 88, 130, 0.05);
}

.payment-method input[type="radio"] {
    margin-left: 0;
}

.payment-logo {
    width: 60px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    padding: 4px;
    background: #fff;
}

.payment-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.payment-info {
    flex: 1;
}

.payment-name {
    font-weight: 600;
    color: #495057;
    margin-bottom: 3px;
}

.payment-desc {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0 0 5px;
}

.payment-type-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    background: #e9ecef;
    color: #6c757d;
}

/* ملخص الحجز */
.booking-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
}

.summary-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
}

.summary-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.summary-label {
    color: #6c757d;
}

.summary-value {
    font-weight: 500;
    color: #495057;
}

/* أزرار التنقل */
.wizard-actions {
    padding: 20px 30px;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.wizard-actions button {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}

/* Loading */
.wizard-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.wizard-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .wizard-steps {
        padding: 20px 15px 15px;
        overflow-x: auto;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .wizard-form {
        padding: 20px 15px;
    }

    .extras-list {
        grid-template-columns: 1fr;
    }

    .wizard-actions {
        padding: 15px;
    }
}
