/*
 * pages/transfer.css
 * Extracted from pages/transfer.php lines 226-1512 (Wave 16)
 * Pure CSS — no PHP coupling.
 */

        /* تصميم عام للصفحة */
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            min-height: 100vh;
        }

        /* Hero Section */
        .hero-section {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 80px 0 60px;
            margin-bottom: 40px;
            position: relative;
            overflow: hidden;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero-title {
            color: white;
            font-size: 3rem;
            font-weight: 700;
            margin-bottom: 1rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .hero-subtitle {
            color: white;
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 2rem;
        }

        .hero-subtitle p {
            margin-bottom: 0.5rem;
            color: white;
        }

        .hero-subtitle p:last-child {
            margin-bottom: 0;
        }

        .hero-subtitle .ql-align-center {
            text-align: center;
        }

        .hero-subtitle span[style] {
            /* Preserve inline styles from Quill editor - inline styles have higher specificity */
            display: inline;
        }
        
        .hero-subtitle span:not([style]) {
            color: white;
        }

        /* تصميم الفورم الاحترافي */
        .booking-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        .booking-form {
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.1);
            overflow: hidden;
            margin-bottom: 30px;
            position: relative;
        }

        .form-header {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
            padding: 30px;
            text-align: center;
            position: relative;
        }

        .form-header::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 0;
            height: 0;
            border-left: 20px solid transparent;
            border-right: 20px solid transparent;
            border-top: 20px solid #00f2fe;
        }

        .form-header h3 {
            margin: 0;
            font-size: 1.8rem;
            font-weight: 600;
        }

        .form-body {
            padding: 40px;
        }

        /* تصميم حقول الإدخال */
        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        .form-label {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            font-size: 0.95rem;
        }

        .form-label i {
            margin-right: 8px;
            color: #3498db;
            width: 16px;
        }

        .form-control {
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 15px 20px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: #f8f9fa;
            position: relative;
        }

        .form-control:focus {
            border-color: #3498db;
            box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
            background: white;
            transform: translateY(-2px);
        }

        .form-control:hover {
            border-color: #bdc3c7;
            background: white;
        }

        /* تصميم الراديو بوتن المحسن - حل مشكلة النقر */
        .trip-type-container {
            display: flex;
            gap: 20px;
            margin-top: 10px;
        }

        .form-check {
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 15px 20px;
            transition: all 0.3s ease;
            flex: 1;
            text-align: center;
            position: relative;
            cursor: pointer;
            user-select: none;
        }

        .form-check:hover {
            border-color: #3498db;
            background: #e3f2fd;
            transform: translateY(-2px);
        }

        .form-check-input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
            height: 0;
            width: 0;
            pointer-events: none;
        }

        .form-check-label {
            cursor: pointer;
            font-weight: 600;
            color: #2c3e50;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            position: relative;
            pointer-events: none;
        }

        .form-check-input:checked + .form-check-label {
            color: #3498db;
        }

        .form-check:has(.form-check-input:checked) {
            border-color: #3498db;
            background: #e3f2fd;
            box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
        }

        /* إضافة مؤشر بصري للحالة المحددة */
        .form-check:has(.form-check-input:checked)::before {
            content: '✓';
            position: absolute;
            top: 5px;
            right: 10px;
            color: #3498db;
            font-weight: bold;
            font-size: 14px;
        }

        /* تصميم عرض السعر */
        .price-display {
            background: linear-gradient(135deg, var(--color-primary, #667eea) 0%, color-mix(in srgb, var(--color-primary, #667eea) 62%, #000) 100%);
            color: #fff;
            padding: 26px;
            border-radius: 16px;
            margin: 30px 0;
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s ease;
            box-shadow: 0 14px 34px color-mix(in srgb, var(--color-primary, #667eea) 32%, transparent);
        }

        .price-display.show {
            opacity: 1;
            transform: translateY(0);
        }

        .price-display h5, .price-display h4 {
            margin-bottom: 15px;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }

        .price-details {
            background: rgba(255,255,255,0.1);
            padding: 15px;
            border-radius: 10px;
            margin-top: 15px;
            backdrop-filter: blur(10px);
        }

        /* تصميم الإشعارات */
        .booking-notification {
            background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
            color: white;
            padding: 25px;
            border-radius: 15px;
            margin: 25px 0;
            opacity: 0;
            transform: scale(0.9);
            transition: all 0.5s ease;
            box-shadow: 0 10px 30px rgba(86, 171, 47, 0.3);
        }

        .booking-notification.show {
            opacity: 1;
            transform: scale(1);
        }

        .notification-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }

        .notification-item:last-child {
            border-bottom: none;
        }

        .notification-item .label {
            font-weight: 500;
        }

        .notification-item .value {
            font-weight: 700;
            font-size: 1.1rem;
        }

        /* تصميم تنبيه الخصم المحسن */
        .discount-alert {
            background: linear-gradient(135deg,
                color-mix(in srgb, var(--color-primary, #ffc107) 14%, var(--surface-elevated, #ffffff)) 0%,
                color-mix(in srgb, var(--color-primary, #ffc107) 6%, var(--surface-elevated, #ffffff)) 100%);
            border: 1.5px solid color-mix(in srgb, var(--color-primary, #ffc107) 45%, transparent);
            border-radius: 16px;
            padding: 24px;
            margin: 25px 0;
            text-align: center;
            font-weight: 600;
            color: var(--text-primary, #856404);
            box-shadow: 0 10px 30px color-mix(in srgb, var(--color-primary, #ffc107) 20%, transparent);
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .discount-alert::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(45deg);
            animation: shimmer 3s infinite;
        }

        .discount-alert:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(255, 193, 7, 0.35);
        }

        .discount-alert .discount-icon {
            font-size: 2.5rem;
            color: var(--color-primary, #ffc107);
            margin-bottom: 15px;
            display: block;
            animation: bounce 2s infinite;
        }

        .discount-alert .discount-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: var(--text-primary, #856404);
        }

        .discount-alert .discount-subtitle {
            font-size: 1rem;
            color: var(--color-primary, #6c5ce7);
            font-weight: 600;
            margin-top: 8px;
        }

        .discount-alert .discount-badge {
            background: linear-gradient(135deg, var(--color-primary, #ff6b6b) 0%, color-mix(in srgb, var(--color-primary, #ff6b6b) 70%, #000) 100%);
            color: #fff;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 700;
            display: inline-block;
            margin-top: 10px;
            box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
            animation: pulse 2s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.02); }
            100% { transform: scale(1); }
        }

        /* معلومات الانتظار المحسنة */
        .waiting-info {
            background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
            border: 2px solid #2196f3;
            border-radius: 15px;
            padding: 25px;
            margin: 25px 0;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(33, 150, 243, 0.15);
            transition: all 0.3s ease;
        }

        .waiting-info::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transform: rotate(-45deg);
            animation: shimmer 4s infinite;
        }

        .waiting-info:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(33, 150, 243, 0.25);
        }

        .waiting-info h6 {
            color: #1976d2;
            margin-bottom: 15px;
            font-weight: 700;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
        }

        .waiting-info h6 i {
            color: #2196f3;
            margin-right: 10px;
            font-size: 1.3rem;
            animation: pulse 2s infinite;
        }

        .waiting-info p {
            margin-bottom: 8px;
            font-size: 1rem;
            color: #1565c0;
            font-weight: 500;
            line-height: 1.6;
        }

        .waiting-info .waiting-highlight {
            background: rgba(33, 150, 243, 0.1);
            padding: 10px 15px;
            border-radius: 8px;
            border-left: 4px solid #2196f3;
            margin-top: 10px;
            font-weight: 600;
            color: #0d47a1;
        }

        /* تصميم الأزرار */
        .btn-submit {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
            border-radius: 50px;
            padding: 15px 40px;
            font-size: 1.1rem;
            font-weight: 600;
            color: white;
            transition: all 0.3s ease;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
            position: relative;
            overflow: hidden;
        }

        .btn-submit:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
            color: white;
        }

        .btn-submit:active {
            transform: translateY(-1px);
        }

        .btn-submit::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }

        .btn-submit:hover::before {
            left: 100%;
        }

        /* أزرار التواصل */
        .contact-section {
            background: #f8f9fa;
            border-radius: 15px;
            padding: 25px;
            margin-top: 30px;
        }

        .contact-title {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 20px;
            font-weight: 600;
        }

        .contact-buttons {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn-contact {
            display: flex;
            align-items: center;
            padding: 12px 20px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            color: white;
            min-width: 120px;
            justify-content: center;
        }

        .btn-whatsapp {
            background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
        }

        .btn-viber {
            background: linear-gradient(135deg, #665cac 0%, #7b68ee 100%);
        }

        .btn-telegram {
            background: linear-gradient(135deg, #0088cc 0%, #229ed9 100%);
        }

        .btn-contact:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
            color: white;
        }

        .btn-contact i {
            margin-right: 8px;
            font-size: 1.2rem;
        }

        /* تحسين للغة العربية */
        [dir="rtl"] .form-label i {
            margin-right: 0;
            margin-left: 8px;
        }

        [dir="rtl"] .btn-contact {
            flex-direction: row-reverse;
        }

        [dir="rtl"] .btn-contact i {
            margin-right: 0;
            margin-left: 8px;
        }

        [dir="rtl"] .form-check:has(.form-check-input:checked)::before {
            right: auto;
            left: 10px;
        }

        /* تنسيق خيارات الدفع */
        .payment-methods-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 15px;
            margin-top: 10px;
        }
        .payment-method-option {
            position: relative;
        }
        .payment-method-option input[type="radio"] {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
        }
        .payment-method-option label {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 15px 12px;
            border: 2px solid var(--border-subtle, #e9ecef);
            border-radius: 12px;
            cursor: pointer;
            transition: all 0.25s ease;
            text-align: center;
            font-weight: 600;
            height: 100%;
            background: var(--surface-elevated, var(--bg-secondary, #ffffff));
            color: var(--text-primary, #555);
        }
        .payment-method-option label:hover {
            border-color: color-mix(in srgb, var(--color-primary, #4facfe) 55%, transparent);
            transform: translateY(-2px);
            box-shadow: 0 6px 18px color-mix(in srgb, var(--color-primary, #4facfe) 14%, transparent);
        }
        .payment-method-option input[type="radio"]:checked + label {
            border-color: var(--color-primary, #4facfe);
            background: color-mix(in srgb, var(--color-primary, #4facfe) 8%, var(--surface-elevated, #ffffff));
            color: var(--color-primary, #007bff);
            box-shadow: 0 4px 14px color-mix(in srgb, var(--color-primary, #4facfe) 22%, transparent);
        }
        .payment-method-option label i {
            font-size: 1.8rem;
            margin-bottom: 10px;
            color: var(--color-primary, inherit);
        }
        /* Real brand logos (same assets as the landing page) */
        .payment-method-option label .pay-logo {
            height: 34px;
            max-width: 78px;
            width: auto;
            object-fit: contain;
            margin-bottom: 10px;
            display: inline-block;
        }
        .payment-method-option label span {
            font-size: 0.9rem;
        }
        
        /* Deposit Notice Styles */
        .deposit-notice {
            background-color: #e3f2fd;
            border: 1px solid #90caf9;
            color: #0d47a1;
            padding: 15px;
            border-radius: 8px;
            margin-top: 15px;
            display: flex;
            align-items: center;
            font-weight: 500;
        }
        .deposit-notice i {
            font-size: 1.2rem;
            margin-right: 10px;
        }
        [dir="rtl"] .deposit-notice i {
            margin-right: 0;
            margin-left: 10px;
        }

        /* رسالة عدم وجود وجهات */
        .no-destinations-alert {
            background: linear-gradient(135deg, #ff6b6b 0%, #ffa726 100%);
            color: white;
            padding: 20px;
            border-radius: 12px;
            margin: 20px 0;
            text-align: center;
            font-weight: 600;
        }
        
        .booking-details-card {
            background: #f8f9fa;
            border: 1px solid #dee2e6;
            border-radius: 10px;
            padding: 20px;
            margin: 20px 0;
        }
        
        .detail-item {
            margin-bottom: 10px;
            padding: 5px 0;
        }
        
        .detail-item strong {
            color: #2c3e50;
            margin-left: 10px;
        }
        
        .booking-number {
            background: #007bff;
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-weight: bold;
        }
        
        .price-highlight {
            background: #28a745;
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-weight: bold;
        }
        
        .share-section {
            background: #e9ecef;
            border-radius: 10px;
            padding: 20px;
        }
        
        .share-buttons .btn {
            min-width: 200px;
        }
        
        .btn-purple {
            background-color: #665CAC;
            border-color: #665CAC;
            color: white;
        }
        
        .btn-purple:hover {
            background-color: #5a4f96;
            border-color: #5a4f96;
        }
        
        .customer-info {
            border-top: 1px solid #dee2e6;
            padding-top: 15px;
        }

        /* تحسينات إضافية */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2rem;
            }
            
            .trip-type-container {
                flex-direction: column;
                gap: 10px;
            }
            
            .contact-buttons {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                gap: 10px;
            }
            
            .btn-contact {
                width: auto;
                max-width: none;
                flex: 1;
                min-width: 100px;
                padding: 10px 5px;
                font-size: 0.9rem;
            }
            
            /* تحسينات للقسم الترويجي على الموبايل */
            .discount-alert {
                padding: 20px 15px;
                margin: 20px 0;
            }
            
            .discount-alert .discount-title {
                font-size: 1.2rem;
                line-height: 1.4;
            }
            
            .discount-alert .discount-icon {
                font-size: 2rem;
            }
            
            .waiting-info {
                padding: 20px 15px;
                margin: 20px 0;
            }
            
            .waiting-info h6 {
                font-size: 1.1rem;
            }
            
            .waiting-info .waiting-highlight {
                padding: 8px 12px;
                font-size: 0.9rem;
            }

            /* Fix Share Button Position on Mobile - INLINE with Text */
            .form-header {
                padding: 15px 5px !important;
                display: flex !important;
                flex-direction: row !important;
                align-items: center !important;
                justify-content: center !important;
                flex-wrap: wrap !important;
                gap: 10px !important;
            }

            .form-header .position-absolute {
                position: static !important; /* Stop absolute positioning */
                transform: none !important;
                width: auto !important;
                margin: 0 !important;
                padding: 0 !important;
                display: block !important;
                order: 2; /* Place button after title */
            }

            .form-header h3 {
                font-size: 1.3rem; 
                margin: 0 !important;
                line-height: 1.2;
                padding: 0 !important;
                width: auto !important;
                order: 1; /* Title comes first */
            }
            
            /* Hide the large absolute container padding/margins if any from bootstrap classes */
            .form-header .p-3 {
                padding: 0 !important;
            }
        }

        /* Select2 Custom Styling */
        .select2-container--bootstrap-5 .select2-selection {
            border: 2px solid #e9ecef;
            border-radius: 12px;
            padding: 10px 15px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: #f8f9fa;
            min-height: 50px;
        }

        .select2-container--bootstrap-5 .select2-selection:hover {
            border-color: #bdc3c7;
            background: white;
        }

        .select2-container--bootstrap-5.select2-container--focus .select2-selection,
        .select2-container--bootstrap-5.select2-container--open .select2-selection {
            border-color: #3498db;
            box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
            background: white;
        }

        .select2-container--bootstrap-5 .select2-dropdown {
            border: 2px solid #3498db;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }

        .select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 8px 12px;
        }

        .select2-container--bootstrap-5 .select2-results__option--highlighted {
            background-color: #3498db;
            color: white;
        }

        .select2-container--bootstrap-5 .select2-selection__rendered {
            padding-left: 0;
            color: #2c3e50;
        }

        .select2-container--bootstrap-5 .select2-selection__placeholder {
            color: #6c757d;
        }

        /* تأثيرات الحركة */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .booking-form {
            animation: fadeInUp 0.6s ease-out;
        }

        /* تحسين قسم التاريخ والوقت */
        #tripDateTimeSection {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-radius: 15px;
            padding: 25px;
            border: 2px solid #e9ecef;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            transform: translateY(20px);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        #tripDateTimeSection.show {
            opacity: 1;
            transform: translateY(0);
            border-color: #667eea;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
        }

        /* تحسين عرض السعر */
        #priceDisplay {
            background: var(--surface-elevated, var(--bg-secondary, #ffffff));
            border-radius: 16px;
            padding: 24px 26px;
            border: 1px solid var(--border-subtle, #e9ecef);
            border-left: 4px solid var(--color-primary, #0ea5e9);
            margin: 20px 0;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            opacity: 0;
            transform: scale(0.98);
            box-shadow: 0 6px 22px color-mix(in srgb, var(--color-primary, #0ea5e9) 12%, transparent);
            color: var(--text-primary, #2c3e50);
        }

        #priceDisplay.show {
            opacity: 1;
            transform: scale(1);
            border-color: var(--border-subtle, #e9ecef);
            border-left-color: var(--color-primary, #0ea5e9);
            box-shadow: 0 10px 30px color-mix(in srgb, var(--color-primary, #0ea5e9) 18%, transparent);
        }

        /* تحسين مظهر العناصر عند الإظهار */
        .price-display h5,
        .price-display h4 {
            margin-bottom: 15px;
            color: var(--text-primary, #2c3e50);
        }

        .price-display h5 {
            font-size: 1.1rem;
            font-weight: 600;
        }

        .price-display h4 {
            font-size: 1.4rem;
            font-weight: 800;
            color: var(--color-primary, #0ea5e9);
        }

        .price-details {
            background: color-mix(in srgb, var(--color-primary, #0ea5e9) 8%, transparent);
            padding: 15px;
            border-radius: 10px;
            margin-top: 15px;
            font-size: 0.9rem;
            color: var(--text-secondary, #495057);
        }

        /* ── Coupon toggle (theme-aware, professional) ─────────────────── */
        .coupon-section {
            border: 1px solid var(--border-subtle, #e5e7eb);
            border-radius: 14px;
            background: var(--surface-elevated, var(--bg-secondary, #ffffff));
            padding: 4px;
            margin-bottom: 1rem;
            overflow: hidden;
        }
        .coupon-toggle-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 16px;
            margin: 0;
            cursor: pointer;
            border-radius: 11px;
            transition: background .2s ease;
            user-select: none;
        }
        .coupon-toggle-row:hover {
            background: color-mix(in srgb, var(--color-primary, #0ea5e9) 7%, transparent);
        }
        .coupon-toggle-label {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            color: var(--text-primary, #1f2937);
        }
        .coupon-toggle-label i {
            color: var(--color-primary, #0ea5e9);
            font-size: 1.05rem;
        }
        .coupon-section .form-check-input {
            width: 2.6em;
            height: 1.4em;
            cursor: pointer;
            box-shadow: none;
        }
        .coupon-section .form-check-input:checked {
            background-color: var(--color-primary, #0ea5e9);
            border-color: var(--color-primary, #0ea5e9);
        }
        .coupon-section .form-check-input:focus {
            border-color: var(--color-primary, #0ea5e9);
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #0ea5e9) 20%, transparent);
        }
        #couponFieldWrap {
            padding: 2px 16px 16px;
        }

        /* تحسين قسم التاريخ والوقت */
        #tripDateTimeSection h5 {
            color: #667eea;
            font-weight: 600;
            margin-bottom: 20px;
        }

        #tripDateTimeSection .form-group {
            margin-bottom: 20px;
        }

        #tripDateTimeSection .form-control {
            border: 2px solid #e9ecef;
            transition: all 0.3s ease;
        }

        #tripDateTimeSection .form-control:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        }

        /* تحسين مظهر العناصر الأخرى (theme-aware) */
        .discount-alert {
            background: linear-gradient(135deg,
                color-mix(in srgb, var(--color-primary, #ffc107) 14%, var(--surface-elevated, #ffffff)) 0%,
                color-mix(in srgb, var(--color-primary, #ffc107) 6%, var(--surface-elevated, #ffffff)) 100%);
            border: 1.5px solid color-mix(in srgb, var(--color-primary, #ffc107) 45%, transparent);
            border-radius: 14px;
            padding: 15px;
            margin: 20px 0;
            color: var(--text-primary, #856404);
            font-weight: 600;
            text-align: center;
        }

        .waiting-info {
            background: color-mix(in srgb, var(--color-primary, #2196f3) 10%, var(--surface-elevated, #ffffff));
            border: 1.5px solid color-mix(in srgb, var(--color-primary, #2196f3) 40%, transparent);
            border-radius: 14px;
            padding: 20px;
            margin: 20px 0;
            color: var(--text-primary, #1565c0);
        }

        .waiting-info h6 {
            color: #1976d2;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .waiting-info p {
            margin-bottom: 8px;
            font-size: 0.95rem;
        }

        /* تحسين مظهر النموذج */
        .form-group {
            margin-bottom: 25px;
        }

        .form-label {
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
        }

        .form-control {
            border: 2px solid #e9ecef;
            border-radius: 8px;
            padding: 12px 15px;
            transition: all 0.3s ease;
        }

        .form-control:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
        }

        /* تحسين مظهر الراديو بوتن */
        .trip-type-container {
            display: flex;
            gap: 20px;
            margin-top: 10px;
        }

        .form-check {
            flex: 1;
            background: #f8f9fa;
            border: 2px solid #e9ecef;
            border-radius: 10px;
            padding: 15px;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .form-check:hover {
            border-color: #667eea;
            background: #f0f2ff;
            transform: translateY(-2px);
        }

        .form-check:has(.form-check-input:checked) {
            border-color: #667eea;
            background: #f0f2ff;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
        }

        .form-check-input {
            margin-right: 10px;
        }

        .form-check-label {
            cursor: pointer;
            font-weight: 600;
            color: #2c3e50;
        }

        /* Error Display Styles */
        #errorContainer {
            background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
            border: 2px solid #dc3545;
            border-radius: 12px;
            color: white;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
            animation: slideDown 0.3s ease-out;
        }

        #errorContainer h6 {
            color: white;
            font-weight: 600;
            margin-bottom: 10px;
        }

        #errorList {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        #errorList li {
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 12px;
            margin: 5px 0;
            border-radius: 6px;
            border-left: 4px solid rgba(255, 255, 255, 0.5);
        }

        #errorList li:before {
            content: "⚠️ ";
            margin-right: 8px;
        }

        #successContainer {
            background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
            border: 2px solid #28a745;
            border-radius: 12px;
            color: white;
            margin-bottom: 20px;
            box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
            animation: slideDown 0.3s ease-out;
        }

        #successContainer h6 {
            color: white;
            font-weight: 600;
            margin-bottom: 10px;
        }

        /* Form Field Error States */
        .form-control.is-invalid {
            border-color: #dc3545;
            box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
            background-color: #fff5f5;
        }

        .form-control.is-invalid:focus {
            border-color: #dc3545;
            box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
        }

        .invalid-feedback {
            display: block;
            width: 100%;
            margin-top: 0.25rem;
            font-size: 0.875rem;
            color: #dc3545;
            background: rgba(220, 53, 69, 0.1);
            padding: 5px 10px;
            border-radius: 4px;
            border-left: 3px solid #dc3545;
        }

        /* Animation for error display */
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* API Error Display */
        .api-error {
            background: linear-gradient(135deg, #ffc107 0%, #ffeb3b 100%);
            border: 2px solid #ffc107;
            border-radius: 12px;
            color: #856404;
            padding: 15px;
            margin: 10px 0;
            box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
            animation: slideDown 0.3s ease-out;
        }

        .api-error h6 {
            color: #856404;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .api-error p {
            margin: 0;
            font-size: 0.9rem;
        }

        /* Share Button Styles */
        .share-dropdown .dropdown-toggle {
            border-radius: 25px;
            padding: 8px 15px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            background-color: rgba(255, 255, 255, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            backdrop-filter: blur(5px);
        }

        .share-dropdown .dropdown-toggle:hover {
            background-color: rgba(255, 255, 255, 0.3);
            border-color: rgba(255, 255, 255, 0.5);
            transform: translateY(-1px);
        }

        .share-dropdown .dropdown-menu {
            border-radius: 15px;
            border: none;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            padding: 8px 0;
            min-width: 220px;
            margin-top: 8px;
            text-align: left;
        }
        
        [dir="rtl"] .share-dropdown .dropdown-menu {
            text-align: right;
        }

        .share-dropdown .dropdown-item {
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            color: #333;
        }

        .share-dropdown .dropdown-item:hover {
            background-color: #f8f9fa;
            color: #007bff;
            transform: translateX(4px);
        }
        
        [dir="rtl"] .share-dropdown .dropdown-item:hover {
            transform: translateX(-4px);
        }

        .share-dropdown .dropdown-item i, 
        .share-dropdown .dropdown-item svg {
            width: 25px;
            text-align: center;
            font-size: 16px;
            margin-right: 10px;
        }
        
        [dir="rtl"] .share-dropdown .dropdown-item i,
        [dir="rtl"] .share-dropdown .dropdown-item svg {
            margin-right: 0;
            margin-left: 10px;
        }

        /* ===== Cosmic Theme Overrides ===== */
        body.theme-cosmic #tripDateTimeSection {
            background: linear-gradient(135deg, #150E2A 0%, #0E0820 100%) !important;
            border-color: rgba(139,92,246,0.3) !important;
            box-shadow: 0 2px 10px rgba(139,92,246,0.1) !important;
        }
        body.theme-cosmic #tripDateTimeSection.show {
            border-color: #8B5CF6 !important;
            box-shadow: 0 8px 25px rgba(139,92,246,0.2) !important;
        }
        body.theme-cosmic #tripDateTimeSection h5 { color: #C4B5FD !important; }
        body.theme-cosmic #tripDateTimeSection h5[style*="color"] { color: #C4B5FD !important; }
        body.theme-cosmic #tripDateTimeSection .form-label { color: #D4C8F8 !important; }
        body.theme-cosmic #tripDateTimeSection .form-control {
            background: #150E2A !important;
            border-color: rgba(139,92,246,0.3) !important;
            color: #F0EBFF !important;
        }
        body.theme-cosmic #tripDateTimeSection .form-control:focus {
            border-color: #8B5CF6 !important;
            box-shadow: 0 0 0 0.2rem rgba(139,92,246,0.25) !important;
        }
        body.theme-cosmic #priceDisplay {
            background: linear-gradient(135deg, #0E0820 0%, #150E2A 100%) !important;
            border-color: rgba(52,211,153,0.4) !important;
            box-shadow: 0 2px 10px rgba(52,211,153,0.1) !important;
        }
        body.theme-cosmic #priceDisplay.show {
            border-color: #34D399 !important;
            box-shadow: 0 8px 25px rgba(52,211,153,0.15) !important;
        }
        body.theme-cosmic .price-display h5 { color: #D4C8F8 !important; }
        body.theme-cosmic .price-display h4 { color: #34D399 !important; }
        body.theme-cosmic .price-details {
            background: rgba(52,211,153,0.08) !important;
            color: #A89CC8 !important;
        }
        body.theme-cosmic .discount-alert {
            background: linear-gradient(135deg, rgba(252,211,77,0.1) 0%, rgba(252,211,77,0.15) 100%) !important;
            border-color: rgba(252,211,77,0.4) !important;
            color: #FCD34D !important;
        }
        body.theme-cosmic .waiting-info {
            background: linear-gradient(135deg, rgba(34,211,238,0.08) 0%, rgba(14,8,32,0.9) 100%) !important;
            border-color: rgba(34,211,238,0.4) !important;
            color: #67E8F9 !important;
            box-shadow: 0 8px 25px rgba(34,211,238,0.1) !important;
        }
        body.theme-cosmic .waiting-info::before {
            background: rgba(34,211,238,0.08) !important;
        }
        body.theme-cosmic .waiting-info h6 { color: #22D3EE !important; }
        body.theme-cosmic .waiting-info h6 i { color: #22D3EE !important; }
        body.theme-cosmic .waiting-info p { color: #A0F0FA !important; }
        body.theme-cosmic .waiting-info .waiting-highlight {
            background: rgba(34,211,238,0.1) !important;
            border-color: rgba(34,211,238,0.3) !important;
            color: #67E8F9 !important;
        }
        body.theme-cosmic #priceDetails {
            background: rgba(52,211,153,0.08) !important;
            color: #A89CC8 !important;
        }
        /* ===== End Cosmic Theme Overrides ===== */

        /* ===== Official Package Theme Overrides ===== */
        html[data-theme-family="official"] body {
            background: var(--bg, var(--theme-page-bg, #f8fafc)) !important;
            color: var(--text-primary, var(--theme-text-primary, #1f2937));
        }

        html[data-theme-family="official"] body .booking-form,
        html[data-theme-family="official"] body .booking-details-card,
        html[data-theme-family="official"] body .contact-section,
        html[data-theme-family="official"] body #tripDateTimeSection,
        html[data-theme-family="official"] body #priceDisplay,
        html[data-theme-family="official"] body .share-section,
        html[data-theme-family="official"] body .review-item,
        html[data-theme-family="official"] body .review-form-card,
        html[data-theme-family="official"] body .booking-notification,
        html[data-theme-family="official"] body .waiting-info,
        html[data-theme-family="official"] body .discount-alert,
        html[data-theme-family="official"] body #successContainer,
        html[data-theme-family="official"] body #successMessage,
        html[data-theme-family="official"] body #errorContainer,
        html[data-theme-family="official"] body .coupon-section,
        html[data-theme-family="official"] body .deposit-notice,
        html[data-theme-family="official"] body .api-error {
            background: var(--surface-elevated, #ffffff) !important;
            color: var(--text-primary, var(--theme-text-primary, #1f2937)) !important;
            border: 1px solid var(--border-subtle, rgba(15, 23, 42, 0.08)) !important;
            box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08) !important;
        }

        html[data-theme-family="official"] body .form-body {
            background: transparent !important;
            color: var(--text-primary, var(--theme-text-primary, #1f2937)) !important;
        }

        html[data-theme-family="official"] body .form-header,
        html[data-theme-family="official"] body .contact-title,
        html[data-theme-family="official"] body .booking-details-card h5,
        html[data-theme-family="official"] body .share-section h5,
        html[data-theme-family="official"] body #tripDateTimeSection h5,
        html[data-theme-family="official"] body .review-item h6,
        html[data-theme-family="official"] body #successContainer h6,
        html[data-theme-family="official"] body #successMessage h4,
        html[data-theme-family="official"] body #successMessage h5,
        html[data-theme-family="official"] body #successMessage h6,
        html[data-theme-family="official"] body #errorContainer h6,
        html[data-theme-family="official"] body .customer-info h6 {
            color: var(--text-primary, var(--theme-text-primary, #1f2937)) !important;
        }

        html[data-theme-family="official"] body .form-label,
        html[data-theme-family="official"] body .detail-item,
        html[data-theme-family="official"] body .price-display h5,
        html[data-theme-family="official"] body .price-details,
        html[data-theme-family="official"] body .booking-notification p,
        html[data-theme-family="official"] body .waiting-info p,
        html[data-theme-family="official"] body #successContainer p,
        html[data-theme-family="official"] body #successMessage p,
        html[data-theme-family="official"] body #successMessage span,
        html[data-theme-family="official"] body #errorContainer li,
        html[data-theme-family="official"] body .deposit-notice span,
        html[data-theme-family="official"] body .coupon-section,
        html[data-theme-family="official"] body #couponFeedback,
        html[data-theme-family="official"] body .notification-item .label,
        html[data-theme-family="official"] body .api-error p,
        html[data-theme-family="official"] body .invalid-feedback {
            color: var(--text-secondary, var(--theme-text-muted, #6b7280)) !important;
        }

        html[data-theme-family="official"] body .form-label i,
        html[data-theme-family="official"] body #tripDateTimeSection h5 i,
        html[data-theme-family="official"] body #successMessage h4 i,
        html[data-theme-family="official"] body #successMessage h5 i,
        html[data-theme-family="official"] body #successMessage h6 i,
        html[data-theme-family="official"] body #errorContainer h6 i,
        html[data-theme-family="official"] body .customer-info h6 i,
        html[data-theme-family="official"] body .coupon-section .form-label i,
        html[data-theme-family="official"] body #couponDiscountRow i,
        html[data-theme-family="official"] body .deposit-notice i,
        html[data-theme-family="official"] body .notification-item i {
            color: var(--color-primary, var(--theme-primary, #0d6efd)) !important;
        }

        html[data-theme-family="official"] body .form-control,
        html[data-theme-family="official"] body .form-select,
        html[data-theme-family="official"] body .select2-container--bootstrap-5 .select2-selection,
        html[data-theme-family="official"] body .select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field,
        html[data-theme-family="official"] body .select2-container--bootstrap-5 .select2-dropdown,
        html[data-theme-family="official"] body .select2-container--default .select2-selection--single,
        html[data-theme-family="official"] body .select2-container--default .select2-selection--multiple,
        html[data-theme-family="official"] body .input-group-text {
            background: var(--bg-secondary, #f8fafc) !important;
            color: var(--text-primary, var(--theme-text-primary, #1f2937)) !important;
            border-color: var(--border-subtle, rgba(15, 23, 42, 0.08)) !important;
        }

        html[data-theme-family="official"] body .form-control:focus,
        html[data-theme-family="official"] body .form-select:focus,
        html[data-theme-family="official"] body .select2-container--bootstrap-5.select2-container--focus .select2-selection,
        html[data-theme-family="official"] body .select2-container--bootstrap-5.select2-container--open .select2-selection,
        html[data-theme-family="official"] body .select2-container--default.select2-container--focus .select2-selection--single,
        html[data-theme-family="official"] body .select2-container--default.select2-container--focus .select2-selection--multiple {
            border-color: var(--color-primary, var(--theme-primary, #0d6efd)) !important;
            box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 18%, transparent) !important;
        }

        html[data-theme-family="official"] body .select2-container--bootstrap-5 .select2-selection__rendered,
        html[data-theme-family="official"] body .select2-container--bootstrap-5 .select2-selection__placeholder,
        html[data-theme-family="official"] body .select2-container--bootstrap-5 .select2-results__option {
            color: var(--text-primary, var(--theme-text-primary, #1f2937)) !important;
        }

        html[data-theme-family="official"] body .select2-container--bootstrap-5 .select2-results__option--highlighted,
        html[data-theme-family="official"] body .select2-container--bootstrap-5 .select2-results__option--selected {
            background: var(--color-primary, var(--theme-primary, #0d6efd)) !important;
            color: #ffffff !important;
        }

        html[data-theme-family="official"] body .form-check,
        html[data-theme-family="official"] body .payment-method-option label {
            background: var(--bg-secondary, #f8fafc) !important;
            border-color: var(--border-subtle, rgba(15, 23, 42, 0.08)) !important;
            color: var(--text-primary, var(--theme-text-primary, #1f2937)) !important;
            box-shadow: none !important;
        }

        html[data-theme-family="official"] body .form-check:hover,
        html[data-theme-family="official"] body .payment-method-option label:hover {
            background: color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 8%, #ffffff) !important;
            border-color: color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 28%, transparent) !important;
        }

        html[data-theme-family="official"] body .form-check-label,
        html[data-theme-family="official"] body .payment-method-option label span,
        html[data-theme-family="official"] body .payment-method-option label i {
            color: inherit !important;
        }

        html[data-theme-family="official"] body .trip-type-container .form-check-label i,
        html[data-theme-family="official"] body .payment-method-option label i {
            color: var(--color-primary, var(--theme-primary, #0d6efd)) !important;
        }

        html[data-theme-family="official"] body .form-check:has(.form-check-input:checked),
        html[data-theme-family="official"] body .payment-method-option input[type="radio"]:checked + label {
            background: color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 10%, #ffffff) !important;
            border-color: var(--color-primary, var(--theme-primary, #0d6efd)) !important;
            color: var(--color-primary, var(--theme-primary, #0d6efd)) !important;
            box-shadow: 0 8px 20px color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 16%, transparent) !important;
        }

        html[data-theme-family="official"] body .form-check:has(.form-check-input:checked) .form-check-label i,
        html[data-theme-family="official"] body .payment-method-option input[type="radio"]:checked + label i {
            color: var(--color-primary, var(--theme-primary, #0d6efd)) !important;
        }

        html[data-theme-family="official"] body #priceDisplay {
            background: linear-gradient(
                135deg,
                color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 14%, #ffffff),
                color-mix(in srgb, var(--surface-elevated, #ffffff) 88%, var(--color-primary, var(--theme-primary, #0d6efd)))
            ) !important;
        }

        html[data-theme-family="official"] body .price-display h4,
        html[data-theme-family="official"] body .price-highlight,
        html[data-theme-family="official"] body #finalPrice,
        html[data-theme-family="official"] body #totalPriceDisplay {
            color: #ffffff !important;
        }

        html[data-theme-family="official"] body .price-display h5 i,
        html[data-theme-family="official"] body .price-display h4 i {
            color: #ffffff !important;
        }

        html[data-theme-family="official"] body .price-highlight {
            background: linear-gradient(
                135deg,
                var(--color-primary, var(--theme-primary, #0d6efd)),
                color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 72%, #ffffff)
            ) !important;
            border-radius: 999px !important;
            padding: 0.4rem 0.85rem !important;
        }

        html[data-theme-family="official"] body .price-details,
        html[data-theme-family="official"] body #priceDetails {
            background: color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 8%, #ffffff) !important;
            border: 1px solid color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 14%, transparent) !important;
        }

        html[data-theme-family="official"] body .btn-submit,
        html[data-theme-family="official"] body .share-buttons .btn,
        html[data-theme-family="official"] body .btn-contact,
        html[data-theme-family="official"] body #applyCouponBtn,
        html[data-theme-family="official"] body #whatsappBtn,
        html[data-theme-family="official"] body #viberBtn,
        html[data-theme-family="official"] body #telegramBtn,
        html[data-theme-family="official"] body #copyBookingBtn,
        html[data-theme-family="official"] body .review-form-card .btn,
        html[data-theme-family="official"] body .share-dropdown .dropdown-toggle {
            border-radius: var(--theme-radius-button, 999px) !important;
            font-weight: 700 !important;
            transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease !important;
        }

        html[data-theme-family="official"] body .btn-submit {
            background: linear-gradient(
                135deg,
                var(--color-primary, var(--theme-primary, #0d6efd)),
                color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 72%, #ffffff)
            ) !important;
            color: #ffffff !important;
            box-shadow: 0 14px 32px color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 28%, transparent) !important;
        }

        html[data-theme-family="official"] body .btn-submit:hover,
        html[data-theme-family="official"] body .share-buttons .btn:hover,
        html[data-theme-family="official"] body .btn-contact:hover,
        html[data-theme-family="official"] body #applyCouponBtn:hover,
        html[data-theme-family="official"] body .review-form-card .btn:hover,
        html[data-theme-family="official"] body .share-dropdown .dropdown-toggle:hover {
            transform: translateY(-2px);
        }

        html[data-theme-family="official"] body .btn-contact,
        html[data-theme-family="official"] body .share-buttons .btn,
        html[data-theme-family="official"] body #applyCouponBtn {
            color: #ffffff !important;
            border: none !important;
        }

        html[data-theme-family="official"] body .btn-whatsapp,
        html[data-theme-family="official"] body #shareWhatsappBtn,
        html[data-theme-family="official"] body #whatsappBtn {
            background: linear-gradient(135deg, #22c55e, #16a34a) !important;
            border-color: #16a34a !important;
        }

        html[data-theme-family="official"] body .btn-viber,
        html[data-theme-family="official"] body #shareViberBtn,
        html[data-theme-family="official"] body .btn-purple,
        html[data-theme-family="official"] body #viberBtn {
            background: linear-gradient(135deg, #7c5cff, #6650d8) !important;
            border-color: #6650d8 !important;
        }

        html[data-theme-family="official"] body .btn-telegram,
        html[data-theme-family="official"] body #shareTelegramBtn,
        html[data-theme-family="official"] body #telegramBtn {
            background: linear-gradient(135deg, #0ea5e9, #0284c7) !important;
            border-color: #0284c7 !important;
        }

        html[data-theme-family="official"] body #copyBookingBtn {
            background: linear-gradient(135deg, #64748b, #475569) !important;
            border-color: #475569 !important;
            color: #ffffff !important;
        }

        html[data-theme-family="official"] body #applyCouponBtn {
            background: linear-gradient(
                135deg,
                var(--color-primary, var(--theme-primary, #0d6efd)),
                color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 72%, #ffffff)
            ) !important;
            box-shadow: 0 10px 22px color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 20%, transparent) !important;
        }

        html[data-theme-family="official"] body .share-dropdown .dropdown-toggle,
        html[data-theme-family="official"] body .share-dropdown .dropdown-menu {
            background: var(--surface-elevated, #ffffff) !important;
            color: var(--text-primary, var(--theme-text-primary, #1f2937)) !important;
            border-color: var(--border-subtle, rgba(15, 23, 42, 0.08)) !important;
        }

        html[data-theme-family="official"] body .form-header {
            background: linear-gradient(
                135deg,
                var(--color-primary, var(--theme-primary, #0d6efd)),
                color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 62%, #ffffff)
            ) !important;
            color: #ffffff !important;
            box-shadow: 0 18px 36px color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 26%, transparent) !important;
        }

        html[data-theme-family="official"] body .form-header::after {
            border-top-color: color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 62%, #ffffff) !important;
        }

        html[data-theme-family="official"] body .form-header h3,
        html[data-theme-family="official"] body .form-header h3 i,
        html[data-theme-family="official"] body .form-header .position-absolute,
        html[data-theme-family="official"] body .form-header .share-dropdown,
        html[data-theme-family="official"] body .form-header .share-dropdown .dropdown-toggle {
            color: #ffffff !important;
        }

        html[data-theme-family="official"] body .form-header .share-dropdown .dropdown-toggle {
            background: rgba(255, 255, 255, 0.16) !important;
            border: 1px solid rgba(255, 255, 255, 0.26) !important;
            backdrop-filter: blur(10px) !important;
            box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14) !important;
        }

        html[data-theme-family="official"] body .form-header .share-dropdown .dropdown-toggle:hover,
        html[data-theme-family="official"] body .form-header .share-dropdown .dropdown-toggle:focus {
            background: rgba(255, 255, 255, 0.24) !important;
            border-color: rgba(255, 255, 255, 0.42) !important;
            color: #ffffff !important;
        }

        html[data-theme-family="official"] body .share-dropdown .dropdown-item {
            color: var(--text-primary, var(--theme-text-primary, #1f2937)) !important;
        }

        html[data-theme-family="official"] body .share-dropdown .dropdown-item:hover {
            background: color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 8%, #ffffff) !important;
            color: var(--color-primary, var(--theme-primary, #0d6efd)) !important;
        }

        html[data-theme-family="official"] body .share-dropdown .dropdown-divider {
            border-color: var(--border-subtle, rgba(15, 23, 42, 0.08)) !important;
        }

        html[data-theme-family="official"] body .form-header .share-dropdown .dropdown-menu {
            border-radius: 16px !important;
            box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16) !important;
        }

        html[data-theme-family="official"] body .share-dropdown .dropdown-item i,
        html[data-theme-family="official"] body .share-dropdown .dropdown-item svg {
            color: inherit !important;
        }

        html[data-theme-family="official"] body .share-dropdown .dropdown-item:hover i,
        html[data-theme-family="official"] body .share-dropdown .dropdown-item:hover svg {
            color: inherit !important;
        }

        html[data-theme-family="official"] body .booking-details-card strong,
        html[data-theme-family="official"] body .booking-number,
        html[data-theme-family="official"] body .waiting-info h6,
        html[data-theme-family="official"] body .api-error h6,
        html[data-theme-family="official"] body #successContainer h6,
        html[data-theme-family="official"] body #successMessage .detail-item strong,
        html[data-theme-family="official"] body .notification-item .value,
        html[data-theme-family="official"] body .notification-item .value.price {
            color: var(--text-primary, var(--theme-text-primary, #1f2937)) !important;
        }

        html[data-theme-family="official"] body .invalid-feedback {
            background: color-mix(in srgb, #ef4444 10%, #ffffff) !important;
            border-left-color: #ef4444 !important;
        }

        html[data-theme-family="official"] body .discount-alert .discount-icon,
        html[data-theme-family="official"] body .discount-alert .discount-badge i,
        html[data-theme-family="official"] body .waiting-info h6 i,
        html[data-theme-family="official"] body .waiting-highlight i,
        html[data-theme-family="official"] body .waiting-info p i,
        html[data-theme-family="official"] body .booking-notification h5 i,
        html[data-theme-family="official"] body #discountNote i {
            color: var(--color-primary, var(--theme-primary, #0d6efd)) !important;
        }

        html[data-theme-family="official"] body .discount-alert .discount-badge {
            color: #ffffff !important;
        }

        html[data-theme-family="official"] body .discount-alert .discount-badge i {
            color: #ffffff !important;
        }

        html[data-theme-family="official"] body #errorContainer {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.10), rgba(248, 113, 113, 0.14)) !important;
            border-color: rgba(239, 68, 68, 0.30) !important;
            color: #b91c1c !important;
        }

        html[data-theme-family="official"] body #errorContainer h6,
        html[data-theme-family="official"] body #errorContainer li {
            color: #b91c1c !important;
        }

        html[data-theme-family="official"] body #successContainer,
        html[data-theme-family="official"] body #successMessage,
        html[data-theme-family="official"] body .booking-notification {
            background: linear-gradient(
                135deg,
                color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 10%, #ffffff),
                var(--surface-elevated, #ffffff)
            ) !important;
        }

        html[data-theme-family="official"] body .deposit-notice,
        html[data-theme-family="official"] body .coupon-section,
        html[data-theme-family="official"] body #couponDiscountRow {
            background: color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 8%, #ffffff) !important;
            border-color: color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 16%, transparent) !important;
            color: var(--text-primary, var(--theme-text-primary, #1f2937)) !important;
        }

        html[data-theme-family="official"] body #couponDiscountRow {
            border: 1px solid color-mix(in srgb, var(--color-primary, var(--theme-primary, #0d6efd)) 16%, transparent) !important;
            border-radius: 12px !important;
            padding: 0.85rem 1rem !important;
        }

        html[data-theme-family="official"] body #couponFeedback.text-success,
        html[data-theme-family="official"] body #couponDiscountRow {
            color: #15803d !important;
        }

        html[data-theme-family="official"] body #couponFeedback.text-danger {
            color: #b91c1c !important;
        }
        /* ===== End Official Package Theme Overrides ===== */

/* ═══════════════════════════════════════════════════════════════
   Transfer Booking Wizard (twz-*) — steps, progress, sticky summary
   ═══════════════════════════════════════════════════════════════ */

/* ── Progress bar ── */
.twz-progress {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 22px 18px 10px;
    background: var(--surface-elevated, #fff);
}
.twz-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 74px;
    cursor: default;
    user-select: none;
}
.twz-progress-step.reachable { cursor: pointer; }
.twz-progress-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    background: var(--bg-secondary, #eef0f4);
    color: var(--text-muted, #6c757d);
    border: 2px solid transparent;
    transition: all 0.25s ease;
}
.twz-progress-dot .fa-check { display: none; font-size: 0.8rem; }
.twz-progress-step.active .twz-progress-dot {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.45);
    border-color: rgba(255, 255, 255, 0.35);
}
.twz-progress-step.done .twz-progress-dot {
    background: rgba(102, 126, 234, 0.13);
    color: #667eea;
    border-color: #667eea;
}
.twz-progress-step.done .twz-progress-num { display: none; }
.twz-progress-step.done .fa-check { display: inline-block; }
.twz-progress-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted, #6c757d);
    text-align: center;
    line-height: 1.25;
}
.twz-progress-step.active .twz-progress-label { color: var(--text-primary, #2c3e50); }
.twz-progress-line {
    flex: 1 1 auto;
    max-width: 90px;
    height: 2px;
    background: var(--border-subtle, #e2e8f0);
    margin-top: 18px;
}

/* ── Steps ── */
.twz-step { display: none; animation: twzFadeIn 0.35s ease; }
.twz-step.active { display: block; }
@keyframes twzFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Navigation buttons ── */
.twz-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}
.twz-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(102, 126, 234, 0.35);
}
.twz-btn:hover, .twz-btn:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(102, 126, 234, 0.45);
}
.twz-btn-outline {
    background: transparent;
    color: var(--text-muted, #6c757d);
    border: 2px solid var(--border-subtle, #d7dce3);
    padding: 10px 26px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.twz-btn-outline:hover, .twz-btn-outline:focus {
    border-color: #667eea;
    color: #667eea;
}

/* ── Confirmation summary (step 4) ── */
.twz-confirmation .twz-confirm-block {
    background: var(--bg-secondary, #f8f9fa);
    border: 1px solid var(--border-subtle, #e9ecef);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.twz-confirmation .twz-confirm-block h6 {
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary, #2c3e50);
}
.twz-confirm-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--border-subtle, #e2e8f0);
    font-size: 0.93rem;
}
.twz-confirm-row:last-child { border-bottom: none; }
.twz-confirm-row span { color: var(--text-muted, #6c757d); }
.twz-confirm-row strong { text-align: end; word-break: break-word; }
.twz-confirm-total {
    font-size: 1.1rem;
    padding-top: 12px;
    margin-top: 6px;
    border-top: 2px solid #667eea;
    border-bottom: none;
}
.twz-confirm-total strong { color: #667eea; font-size: 1.2rem; }

/* ── Sticky price summary (desktop sidebar) ── */
.twz-summary {
    position: sticky;
    top: 90px;
    background: var(--surface-elevated, #fff);
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
.twz-summary-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 700;
    padding: 14px 18px;
    display: flex;
    align-items: center;
}
.twz-summary-close {
    display: none;
    margin-inline-start: auto;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.twz-summary-body { padding: 16px 18px; }
.twz-summary-empty {
    text-align: center;
    color: var(--text-muted, #94a3b8);
    padding: 22px 6px;
}
.twz-summary-empty i { font-size: 2rem; margin-bottom: 10px; display: block; opacity: 0.5; }
.twz-summary-empty p { margin: 0; font-size: 0.92rem; }
.twz-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.9rem;
    border-bottom: 1px dashed var(--border-subtle, #eef0f4);
}
.twz-summary-label { color: var(--text-muted, #6c757d); white-space: nowrap; }
.twz-summary-label i { color: #667eea; width: 16px; }
.twz-summary-value { font-weight: 600; text-align: end; word-break: break-word; }
.twz-summary-prices { margin-top: 12px; }
.twz-summary-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding: 4px 0;
    color: var(--text-muted, #6c757d);
}
.twz-summary-price-row.twz-discount { color: #16a34a; font-weight: 600; }
.twz-summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 1.15rem;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid #667eea;
    color: var(--text-primary, #2c3e50);
}
.twz-summary-total span:last-child { color: #667eea; }

/* ── Mobile sticky bottom bar ── */
.twz-summary-bar {
    display: none;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 1040;
    background: var(--surface-elevated, #fff);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.14);
    padding: 12px 18px;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 3px solid #667eea;
}
.twz-summary-bar.visible { display: none; }
.twz-bar-info { display: flex; flex-direction: column; min-width: 0; }
.twz-bar-vehicle {
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.twz-bar-hint { font-size: 0.75rem; color: var(--text-muted, #6c757d); }
.twz-bar-total { font-weight: 800; font-size: 1.25rem; color: #667eea; white-space: nowrap; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    .twz-summary-bar.visible { display: flex; }
    .twz-summary {
        display: none;
        position: fixed;
        inset-inline: 12px;
        bottom: 74px;
        top: auto;
        z-index: 1041;
        max-height: 65vh;
        overflow-y: auto;
    }
    .twz-summary.mobile-open { display: block; }
    .twz-summary.mobile-open .twz-summary-close { display: flex; align-items: center; justify-content: center; }
    body { padding-bottom: 70px; }
}
@media (max-width: 576px) {
    .twz-progress { padding: 16px 6px 8px; gap: 2px; }
    .twz-progress-step { min-width: 58px; }
    .twz-progress-dot { width: 30px; height: 30px; font-size: 0.85rem; }
    .twz-progress-label { font-size: 0.66rem; }
    .twz-progress-line { max-width: 40px; margin-top: 15px; }
    .twz-btn { padding: 11px 24px; font-size: 0.95rem; }
    .twz-btn-outline { padding: 9px 18px; font-size: 0.9rem; }
}

/* ── RTL adjustments ── */
[dir="rtl"] .twz-confirm-row strong,
[dir="rtl"] .twz-summary-value { text-align: start; }

/* ── Maps mode (ride-hailing step 1) ── */
.twz-maps-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}
.twz-maps-tab {
    flex: 1;
    padding: 10px 16px;
    border-radius: 12px;
    border: 2px solid var(--border-subtle, #e2e8f0);
    background: var(--surface-elevated, #fff);
    color: var(--text-muted, #6c757d);
    font-weight: 600;
    transition: all 0.2s ease;
}
.twz-maps-tab.active {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
}
.twz-map {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle, #e2e8f0);
    background: var(--bg-secondary, #f1f5f9);
}
.twz-route-info {
    display: flex;
    gap: 18px;
    align-items: center;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 12px;
    padding: 10px 16px;
    margin-bottom: 18px;
    font-weight: 600;
    color: var(--text-primary, #2c3e50);
}
.twz-route-info i { color: #667eea; }
.twz-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.twz-vehicle-card {
    position: relative;
    border: 2px solid var(--border-subtle, #e2e8f0);
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    background: var(--surface-elevated, #fff);
    transition: all 0.2s ease;
}
.twz-vehicle-card:hover { border-color: #a5b4fc; transform: translateY(-2px); }
.twz-vehicle-card.selected {
    border-color: #667eea;
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.25);
    background: rgba(102, 126, 234, 0.05);
}
.twz-vehicle-img {
    width: 100%;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
}
.twz-vehicle-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #94a3b8);
    font-size: 1.6rem;
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 10px;
}
.twz-vehicle-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 3px;
    color: var(--text-primary, #2c3e50);
}
.twz-vehicle-capacity {
    font-size: 0.78rem;
    color: var(--text-muted, #6c757d);
    margin-bottom: 6px;
}
.twz-vehicle-price {
    font-weight: 800;
    color: #667eea;
    font-size: 1.02rem;
}
.twz-vehicle-badge {
    position: absolute;
    top: -9px;
    inset-inline-start: 10px;
    background: #16a34a;
    color: #fff;
    font-size: 0.66rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
}
/* Places Autocomplete dropdown above modals/sticky bars */
.pac-container { z-index: 1055; }
@media (max-width: 576px) {
    .twz-map { height: 260px; }
    .twz-vehicle-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); }
}

/* ── Places (New) autocomplete web component — force LIGHT rendering + full width ── */
gmp-place-autocomplete,
.twz-pac {
    width: 100%;
    display: block;
    color-scheme: light;                 /* stop the component rendering dark/black */
    --gmp-mat-color-surface: #ffffff;
    --gmp-mat-color-on-surface: #1e293b;
    --gmp-mat-color-outline: #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
}
/* The internal input of the component (best-effort part styling) */
gmp-place-autocomplete::part(input) {
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 12px 14px !important;
    font-size: 1rem !important;
}
.twz-search-wrap { position: relative; }

/* "Use my location" button pinned to the end of the pickup field */
.twz-geo-btn {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 9px;
    background: rgba(22, 163, 74, 0.10);
    color: #16a34a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: background 0.2s ease, transform 0.2s ease;
}
.twz-geo-btn:hover { background: rgba(22, 163, 74, 0.20); }
.twz-geo-btn:active { transform: scale(0.94); }
.twz-geo-btn.loading i { animation: twzSpin 0.8s linear infinite; }
@keyframes twzSpin { to { transform: rotate(360deg); } }

/* Single available vehicle — do not stretch full width */
.twz-vehicle-grid.twz-single { grid-template-columns: minmax(180px, 260px); }
