/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: Child theme for Hello Elementor
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ==================== TICKETS BOOKING SYSTEM ==================== */

/* Progress Bar */
.booking-progress-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 40px;
    padding: 25px 20px !important;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    max-width: 600px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #6B0098;
    color: white;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: #333;
}

.progress-line {
    width: 80px;
    height: 3px;
    background: #e0e0e0;
    margin: 0 15px 20px;
}

/* توسيط وتحسين الحاوية الرئيسية */
.tribe-tickets__tickets-wrapper {
    max-width: 700px;
    margin: 20px auto !important;
    padding: 0 30px !important;
}

/* التذكرة بتصميم أفضل */
.tribe-tickets__tickets-item {
    background: white;
    border: 3px solid #6B0098 !important;
    border-radius: 15px !important;
    padding: 30px !important;
    margin-bottom: 25px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* اسم التذكرة والسعر */
.tribe-tickets__tickets-item-content-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
}

.tribe-tickets__tickets-item-extra-price {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #6B0098 !important;
}

/* أزرار الكمية */
.tribe-tickets__tickets-item-quantity {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 20px !important;
    margin-top: 25px !important;
    padding-top: 20px !important;
    border-top: 2px solid #f0f0f0 !important;
}

.tribe-tickets__tickets-item-quantity-remove,
.tribe-tickets__tickets-item-quantity-add {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: 3px solid #6B0098 !important;
    background: white !important;
    color: #6B0098 !important;
    font-size: 26px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.tribe-tickets__tickets-item-quantity-remove:hover,
.tribe-tickets__tickets-item-quantity-add:hover {
    background: #6B0098 !important;
    color: white !important;
    transform: scale(1.1);
}

/* ==================== MODAL (البوب اب) ==================== */

.tribe-modal__wrapper {
    max-width: 900px !important;
    margin: 0 auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
}

.tribe-modal__title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #333 !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

/* بطاقات التذاكر داخل Modal */
.tribe-modal-cart .tribe-tickets__tickets-item {
    background: white;
    border: 3px solid #6B0098 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    position: relative;
}

/* زر الحذف في Modal */
.tribe-tickets__tickets-item-remove {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: #e74c3c !important;
    border: none !important;
    color: white !important;
    cursor: pointer !important;
}

.tribe-tickets__tickets-item-remove::before {
    content: "×";
    font-size: 24px;
}

/* تنظيم عناصر التذكرة في Modal */
.tribe-modal-cart .tribe-tickets__tickets-item-content-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #6B0098 !important;
}

/* أزرار الكمية في Modal */
.tribe-modal-cart .tribe-tickets__tickets-item-quantity {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 2px solid #f0f0f0 !important;
}

.tribe-modal-cart .tribe-tickets__tickets-item-quantity-remove,
.tribe-modal-cart .tribe-tickets__tickets-item-quantity-add {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 2px solid #6B0098 !important;
}

/* قسم تفاصيل الحضور */
.tribe-tickets__attendee-tickets-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 30px !important;
}

.tribe-tickets__attendee-tickets-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #6B0098 !important;
}

.tribe-tickets__attendee-tickets-item-remove {
    background: #e74c3c !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    border: none !important;
}

/* حقول الإدخال */
.tribe-tickets__form-field-input {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
}

.tribe-tickets__form-field-input:focus {
    border-color: #6B0098 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(107, 0, 152, 0.1) !important;
}

/* زر Checkout Now */
.tribe-tickets__attendee-tickets-submit {
    background: linear-gradient(135deg, #28a745 0%, #20863a 100%) !important;
    padding: 16px 50px !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    display: block !important;
    margin: 30px auto 0 !important;
}

/* ==================== صفحة CHECKOUT ==================== */

.tribe-tickets__commerce-checkout {
    max-width: 900px;
    margin: 0 auto !important;
    padding: 40px 20px !important;
}

.tribe-tickets__commerce-checkout-header-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 15px !important;
}

.tribe-tickets__commerce-checkout-cart {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 2px solid #6B0098;
}

.tribe-tickets__commerce-checkout-cart-item {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
}

.tribe-tickets__commerce-checkout-gateways {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

#tec-tc-gateway-stripe-checkout-button {
    background: linear-gradient(135deg, #28a745 0%, #20863a 100%) !important;
    padding: 18px 60px !important;
    border-radius: 12px !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    color: white !important;
    border: none !important;
    width: 100%;
    max-width: 400px;
    margin: 30px auto 0 !important;
    display: block !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .tribe-modal-cart .tribe-tickets__tickets-item-quantity {
        flex-direction: row !important;
    }
    
    .tribe-tickets__attendee-tickets-item-remove {
        width: 100%;
    }
    
    .tribe-tickets__commerce-checkout-cart-item {
        display: block !important;
        text-align: center;
    }
}

.event-tickets .tec-tickets-commerce-checkout-cart__coupons .tec-tickets-commerce-checkout-cart__coupons-add-link, .tribe-common .tec-tickets-commerce-checkout-cart__coupons .tec-tickets-commerce-checkout-cart__coupons-add-link {
    color: #ffffff !important;
    font-size: var(--tec-font-size-2);
    padding: 10px !important;
    border-radius: 5px;
}

.event-tickets .tribe-tickets__commerce-checkout-cart-item, .tribe-common .tribe-tickets__commerce-checkout-cart-item{
	padding:15px !important;
}

/* ==================== تحسينات الجوال - بدون نصوص عربية ==================== */

@media (max-width: 768px) {
    
    /* صفحة Checkout على الجوال */
    .tribe-tickets__commerce-checkout {
        padding: 20px 15px !important;
    }
    
    /* عنوان الصفحة */
    .tribe-tickets__commerce-checkout-header-title {
        font-size: 20px !important;
        margin-bottom: 20px !important;
        text-align: left !important;
    }
    
    /* بطاقة السلة */
    .tribe-tickets__commerce-checkout-cart {
        padding: 20px 15px !important;
        margin-bottom: 20px;
    }
    
    .tribe-tickets__commerce-checkout-cart-header {
        text-align: center !important;
    }
    
    .tribe-tickets__commerce-checkout-cart-header-title a {
        font-size: 18px !important;
    }
    
    /* عناصر السلة - توسيط */
    .tribe-tickets__commerce-checkout-cart-item {
        display: block !important;
        padding: 15px !important;
        text-align: center !important;
        margin-bottom: 15px !important;
    }
    
    /* اسم التذكرة */
    .tribe-tickets__commerce-checkout-cart-item-details {
        text-align: center !important;
    }
    
    .tribe-tickets__commerce-checkout-cart-item-details-title {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #333 !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }
    
    /* السعر الفردي */
    .tribe-tickets__commerce-checkout-cart-item-price {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #666 !important;
        margin-bottom: 8px !important;
        display: block !important;
        text-align: center !important;
    }
    
    /* الكمية */
    .tribe-tickets__commerce-checkout-cart-item-quantity {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #666 !important;
        margin-bottom: 8px !important;
        display: block !important;
        text-align: center !important;
    }
    
    /* المجموع */
    .tribe-tickets__commerce-checkout-cart-item-subtotal {
        font-size: 14px !important;
        font-weight: 700 !important;
        color: #6B0098 !important;
        margin-top: 10px !important;
        display: block !important;
        padding-top: 10px !important;
        border-top: 2px solid #e0e0e0 !important;
        text-align: center !important;
    }
	span.tec-tickets-price.amount,span.tribe-tickets__commerce-checkout-cart-footer-total-wrap,span.tribe-tickets__commerce-checkout-cart-footer-quantity-number{
		 font-size: 14px !important;
	}
    /* Footer السلة */
    .tribe-tickets__commerce-checkout-cart-footer {
        flex-direction: column !important;
        text-align: center !important;
        padding: 15px !important;
        gap: 12px !important;
    }
    
    .tribe-tickets__commerce-checkout-cart-footer-quantity,
    .tribe-tickets__commerce-checkout-cart-footer-total {
        text-align: center !important;
    }
    
    .tribe-tickets__commerce-checkout-cart-footer-quantity-label,
    .tribe-tickets__commerce-checkout-cart-footer-total-label {
        font-size: 14px !important;
    }
    
    .tribe-tickets__commerce-checkout-cart-footer-quantity-number,
    .tribe-tickets__commerce-checkout-cart-footer-total-wrap {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #6B0098 !important;
        margin-top: 5px !important;
    }
    
    /* Coupon Section */
    .tec-tickets-commerce-checkout-cart__coupons {
        text-align: center !important;
    }
    
    .tec-tickets-commerce-checkout-cart__coupons-add-link {
        font-size: 14px !important;
    }
    
    .tec-tickets-commerce-checkout-cart__coupons-input-field {
        width: 100% !important;
        font-size: 14px !important;
        padding: 10px !important;
    }
    
    .tec-tickets-commerce-checkout-cart__coupons-apply-button {
        width: 100%;
        font-size: 14px !important;
        padding: 10px !important;
    }
    
    /* Payment Gateway */
    .tribe-tickets__commerce-checkout-gateways {
        padding: 20px 15px !important;
        text-align: center !important;
    }
    
    .tribe-tickets__commerce-checkout-section-header {
        font-size: 16px !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }
    
    /* زر Purchase Tickets */
    #tec-tc-gateway-stripe-checkout-button,
    .tribe-tickets__commerce-checkout-form-submit-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 16px 30px !important;
        font-size: 17px !important;
    }
    
    /* روابط Header */
    .tribe-tickets__commerce-checkout-header-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        text-align: center !important;
    }
	.event-tickets .tribe-tickets__commerce-checkout-cart-item, .tribe-common .tribe-tickets__commerce-checkout-cart-item{
    display: flex !important;
    flex-wrap: nowrap !important;
    padding: 10px !important;
	}
	.event-tickets .tribe-tickets__commerce-checkout-cart-footer, .tribe-common .tribe-tickets__commerce-checkout-cart-footer{
		flex-direction: row !important;
    	flex-wrap: nowrap !important;
    	justify-content: center !important;
	}
}

a.tribe-common-anchor-alt.tribe-tickets__commerce-checkout-header-link-back-to-event{
	display:none !important;
}