/* Transport Booking Plugin Styles - النسخة النهائية */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

* {
    box-sizing: border-box;
}

.transport-booking-wrapper {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #00529c 0%, #00529c 100%);
    min-height: 100vh;
    border-radius: 25px;
}

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

.booking-header h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.booking-header p {
    color: #fff;
    font-size: 16px;
    margin-bottom: 30px;
}

.booking-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: #ecf0f1;
    border-radius: 25px;
    transition: all 0.3s;
    cursor: default;
}

.step.active {
    background: #e67e22;
    color: white;
}

.step.completed {
    background: #27ae60;
    color: white;
}

.step-number {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    color: #95a5a6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.3s;
}

.step.active .step-number {
    color: #e67e22;
}

.step.completed .step-number {
    color: #27ae60;
}

.step-label {
    font-weight: 600;
}

.booking-form-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.step-content {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.step-content.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

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

.booking-form h2 {
    color: #2c3e50;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.form-subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.service-type-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.service-card {
    position: relative;
    padding: 25px 20px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.service-card:hover {
    border-color: #e67e22;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.2);
}

.service-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.service-card.selected,
.service-card:has(input[type="radio"]:checked) {
    border-color: #e67e22;
    background: #fef5e7;
}

.service-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.service-card-content {
    width: 100%;
}

.service-card h3 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 5px;
    font-weight: 700;
}

.service-card p {
    color: #7f8c8d;
    font-size: 13px;
    margin: 0;
}

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

.form-group select,
.form-group textarea,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group select:focus,
.form-group textarea:focus,
.form-group input:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 15px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.checkbox-label:hover {
    border-color: #e67e22;
    background: #fef5e7;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #e67e22;
}

.checkbox-icon {
    font-size: 20px;
    transition: transform 0.3s;
}

/* Step 2: Schedule Styles */
.schedule-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 30px;
}

.time-selection h3,
.calendar-selection h3,
.contact-info-section h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.time-slot {
    position: relative;
}

.time-slot input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.time-slot label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.time-slot input[type="radio"]:checked + label {
    border-color: #e67e22;
    background: #fef5e7;
}

.time-slot label strong {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.time-slot label span {
    font-size: 12px;
    color: #7f8c8d;
}

#booking-calendar {
    padding: 20px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    min-height: 350px;
    background: #fafafa;
}

.contact-info-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

/* Step 3: Payment Styles */
.booking-summary {
    max-width: 700px;
    margin: 0 auto;
}

.summary-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.summary-details h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-item .label {
    color: #7f8c8d;
    font-weight: 600;
}

.summary-item .value {
    color: #2c3e50;
    font-weight: 600;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 15px;
    border-top: 2px solid #e67e22;
    font-size: 20px;
}

.summary-total .label {
    color: #2c3e50;
    font-weight: 700;
}

.summary-total .value {
    color: #e67e22;
    font-weight: 700;
}

.payment-methods {
    margin-bottom: 30px;
}

.payment-methods h3 {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.payment-option {
    display: block;
    margin-bottom: 15px;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    display: none;
}

.payment-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    transition: all 0.3s;
}

.payment-option input[type="radio"]:checked + .payment-card {
    border-color: #e67e22;
    background: #fef5e7;
}

.payment-card:hover {
    border-color: #e67e22;
}

.payment-icon {
    font-size: 30px;
}

.payment-info strong {
    display: block;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.payment-info p {
    color: #7f8c8d;
    font-size: 13px;
    margin: 0;
}

.terms-checkbox {
    margin: 30px 0;
    padding: 20px;
    background: #fff9e6;
    border: 1px solid #f39c12;
    border-radius: 8px;
}

.terms-checkbox label {
    display: flex;
    align-items: start;
    gap: 10px;
    cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    accent-color: #e67e22;
}

.terms-checkbox a {
    color: #e67e22;
    text-decoration: underline;
}

/* Step 4: Confirmation Styles */
.confirmation-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #d4edda;
    color: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: bold;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.confirmation-container h2 {
    color: #27ae60;
    font-size: 28px;
    margin-bottom: 15px;
}

.confirmation-number {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 30px;
}

.confirmation-number strong {
    color: #e67e22;
}

.confirmation-details {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: right;
}

.confirmation-details h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: #7f8c8d;
}

.detail-row .value {
    color: #2c3e50;
    font-weight: 600;
}

.confirmation-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 30px;
}

.confirmation-message p {
    color: #856404;
    margin: 0;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #eb3118;
    color: white;
}

.btn-primary:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #3498db;
    color: white;
}

.btn-secondary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.help-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.help-section p {
    color: #7f8c8d;
    margin-bottom: 15px;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.contact-link:hover {
    background: #229954;
    transform: translateY(-2px);
}

.contact-link .icon {
    font-size: 20px;
}

/* Form Actions */
.form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-submit,
.btn-back {
    padding: 15px 40px;
    border: none;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-submit {
    background: #eb3118;
    color: white;
}

.btn-submit:hover {
    background: #f37022;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-back {
    background: #34495e;
    color: white;
}

.btn-back:hover {
    background: #2c3e50;
}

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

.contact-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fef5e7 100%);
    border: 2px solid #f39c12;
    border-radius: 10px;
    padding: 20px;
    margin-top: 30px;
}

.contact-icon {
    font-size: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info strong {
    display: block;
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-info p {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0;
}

.btn-contact {
    background: #f39c12;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-contact:hover {
    background: #e67e22;
    transform: scale(1.05);
}

/* Loading State */
.booking-form.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.booking-form.loading::after {
    content: "جاري الإرسال...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    font-weight: 700;
    color: #e67e22;
    z-index: 10;
}

select.error,
textarea.error,
input.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

select.error:focus,
textarea.error:focus,
input.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-form-container {
        padding: 20px;
    }
    
    .booking-steps {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .step-label {
        display: none;
    }
    
    .service-type-cards {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .schedule-container {
        grid-template-columns: 1fr;
    }
    
    .time-slots {
        grid-template-columns: 1fr;
    }
    
    .contact-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .btn-submit,
    .btn-back {
        width: 100%;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
    
    .contact-buttons {
        flex-direction: column;
    }
    
    .contact-link {
        width: 100%;
        justify-content: center;
    }
}