﻿/* نمط صفحة طلب الإشتراك */

.subscribe-content {
    padding: 30px 0;
    margin: 0 auto;
}

.subscribe-content .container {
    padding-right: 20px;
    padding-left: 0;
}

/* عنوان الصفحة */
.subscribe-title {
    color: #00A3A8;
    font-size: var(--font-2xl);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
}

.subscribe-title:after {
    content: '';
    width: 80px;
    height: 3px;
    background-color: #FF7A00;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* نموذج الإشتراك */
.subscribe-form {
    width: 1200px !important;
    height: 855px !important;
    /* margin-right: 20px !important;
    margin-left: 20px !important; */
    box-sizing: border-box !important;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
}

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

.phone-input {
    margin-top: 32px;
}
.country-code {
    margin-top: 12px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-size: var(--font-sm);
    color: #666;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #E5E5E5;
    border-radius: 5px;
    font-size: var(--font-base);
    transition: border-color 0.3s;
}

/* حقل الاسم الكامل / اسم الجهة */
#full-name, 
.subscribe-form #full-name {
    width: 710px !important;
    height: 69px !important;
    max-width: 710px !important;
    min-height: 69px !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    border: 0.85px solid #E5E5E5 !important;
    padding: 24px 16px !important;
    font-family: "Droid Arabic Kufi", sans-serif !important;
    font-size: 16px !important;
    color: #333 !important;
    background-color: #fff !important;
    transition: border-color 0.3s ease !important;
}

#full-name:focus,
.subscribe-form #full-name:focus {
    border-color: #00A3A8 !important;
    outline: none !important;
}

#full-name::placeholder,
.subscribe-form #full-name::placeholder {
    color: #999 !important;
    font-family: "Droid Arabic Kufi", sans-serif !important;
}

/* قائمة نوع الاشتراك - subscription-type */
#subscription-type,
.subscribe-form #subscription-type {
    width: 479px !important;
    height: 69px !important;
    max-width: 479px !important;
    min-height: 69px !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    border: 0.85px solid #E5E5E5 !important;
    padding: 24px 16px !important;
    font-family: "Droid Arabic Kufi", sans-serif !important;
    font-size: 16px !important;
    color: #333 !important;
    background-color: #fff !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    transition: border-color 0.3s ease !important;
    text-align: right !important;
    direction: rtl !important;
}

#subscription-type:focus {
    border-color: #00A3A8 !important;
    outline: none !important;
}

#subscription-type option {
    font-family: "Droid Arabic Kufi", sans-serif !important;
    font-size: 16px !important;
    color: #333 !important;
    background-color: #fff !important;
    padding: 10px !important;
}

#subscription-type option:disabled {
    color: #999 !important;
}

/* حقول البريد الإلكتروني، اسم المستخدم، كلمة السر، تأكيد كلمة السر */
#email, 
#username, 
#password, 
#confirm-password {
    width: 1200px !important;
    height: 69px !important;
    max-width: 1200px !important;
    min-height: 69px !important;
    box-sizing: border-box !important;
    border-radius: 10px !important;
    border: 0.85px solid #E5E5E5 !important;
    padding: 24px 16px !important;
    font-family: "Droid Arabic Kufi", sans-serif !important;
    font-size: 16px !important;
    color: #333 !important;
    background-color: #fff !important;
    transition: border-color 0.3s ease !important;
}

#email:focus,
#username:focus,
#password:focus,
#confirm-password:focus {
    border-color: #00A3A8 !important;
    outline: none !important;
}

#email::placeholder,
#username::placeholder,
#password::placeholder,
#confirm-password::placeholder {
    color: #999 !important;
    font-family: "Droid Arabic Kufi", sans-serif !important;
}

/* رمز الدولة للهاتف - تنسيق مبسط ونظيف */
.phone-row {
    display: flex !important;
    gap: 19px !important;
    flex-direction: row-reverse !important; /* حقل الهاتف على اليمين ورمز البلد على اليسار */
    align-items: stretch !important; /* جعل جميع العناصر بنفس الارتفاع */
    justify-content: flex-start !important;
    width: 1200px !important;
    margin-bottom: 20px !important;
    height: 69px !important;
    box-sizing: border-box !important;
}

/* إزالة الـ CSS المكرر والمعقد */
/* حاوي حقل الهاتف */
.form-group.phone-input {
    width: 1037.23px !important;
    flex: 0 0 1037.23px !important;
    height: 69px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* حاوي رمز البلد */
.form-group.country-code {
    width: 144px !important;
    flex: 0 0 144px !important;
    height: 69px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
}

/* حقل رقم الهاتف */
#phone {
    width: 100% !important;
    height: 69px !important;
    border: 0.85px solid #E5E5E5 !important;
    border-radius: 8px !important;
    padding: 24px 16px !important;
    font-family: "Droid Arabic Kufi", sans-serif !important;
    font-size: 16px !important;
    color: #333 !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    text-align: right !important;
    direction: rtl !important;
    transition: border-color 0.3s ease !important;
    margin: 0 !important;
}

#phone:focus {
    border-color: #00A3A8 !important;
    outline: none !important;
}

#phone::placeholder {
    color: #999 !important;
    font-family: "Droid Arabic Kufi", sans-serif !important;
    font-size: 16px !important;
}

/* قائمة رمز البلد */
.country-select {
    display: flex !important;
    align-items: center !important;
    background-color: #fff !important;
    border: 0.85px solid #E5E5E5 !important;
    border-radius: 10px !important;
    height: 100% !important;
    width: 100% !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    gap: 8px !important;
    justify-content: center !important;
    transition: border-color 0.3s ease !important;
}

.country-select:hover,
.country-select:focus {
    border-color: #00A3A8 !important;
}

/* علم البلد */
.country-select .flag-circle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
}

.country-select .flag-img {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* أيقونة القلب */
.country-select .heart-icon {
    width: 16px !important;
    height: 14px !important;
    fill: #657685 !important;
    flex-shrink: 0 !important;
}

/* رمز البلد */
.country-select .code {
    font-family: "Droid Arabic Kufi", sans-serif !important;
    font-size: 14px !important;
    color: #333 !important;
    font-weight: 400 !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

.select-wrapper,
.subscribe-form .select-wrapper {
    width: 479px !important;
    max-width: 479px !important;
    box-sizing: border-box !important;
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.select-wrapper:has(#subscription-type) .arrow-icon {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 16px !important;
    height: 7px !important;
    border: none !important;
    background-image: url('../../assets/icons/list arrow.svg') !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    border-radius: 1.37px !important;
    pointer-events: none !important;
}

/* القوائم المنسدلة */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 30px;
    background-color: #fff;
}

.arrow-icon {
    width: 14px;
    height: 14px;
    border-left: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    transform: rotate(-45deg);
    display: inline-block;
    pointer-events: none;
    position: absolute;
    left: 20px;
    top: 50%;
    margin-top: -7px;
}

.form-control:focus {
    border-color: #00A3A8;
    outline: none;
}

/* العنوان الفرعي - خدمات إضافية */
.additional-services-title {
    font-family: "Almarai", sans-serif !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    line-height: 150% !important;
    letter-spacing: 0% !important;
    text-align: right !important;
    color: #2D3748 !important;
    margin: 30px 0 20px !important;
    direction: rtl !important;
}

/* مربع الاختيار */
.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #00A3A8;
}

.form-check-label {
    margin-bottom: 0;
    font-size: var(--font-base);
}

.terms-check {
    margin: 25px 0;
}

/* زر التسجيل */
.submit-btn {
    width: 1200px !important;
    height: 89px !important;
    background-color: #00A3A8 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 22px 0 !important;
    font-family: "Droid Arabic Kufi", sans-serif !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    box-sizing: border-box !important;
    text-align: center !important;
    display: block !important;
    margin: 0 auto !important;
}

.submit-btn:hover {
    background-color: #008B90 !important;
}

/* تنسيق الشاشات الصغيرة */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .subscribe-title {
        font-size: var(--font-2xl);
    }
    
    .country-code {
        flex: 0 0 100px;
    }
}

/* قائمة نوع الدفع - payment-method wrapper */
.select-wrapper:has(#payment-method) {
    width: 1200px !important;
    max-width: 1200px !important;
    height: 69px !important;
    border-radius: 10px !important;
    border: 0.85px solid #E5E5E5 !important;
    padding: 24px 16px !important;
    box-sizing: border-box !important;
    position: relative !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background-color: #fff !important;
    transition: border-color 0.3s ease !important;
}

.select-wrapper:has(#payment-method):hover {
    border-color: #00A3A8 !important;
}

/* قائمة نوع الدفع - payment-method */
#payment-method,
.subscribe-form #payment-method {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
    font-family: "Droid Arabic Kufi", sans-serif !important;
    font-size: 16px !important;
    color: #333 !important;
    text-align: right !important;
    direction: rtl !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    cursor: pointer !important;
}

#payment-method:focus {
    outline: none !important;
}

/* السهم المخصص لقائمة نوع الدفع */
.select-wrapper:has(#payment-method) .arrow-icon {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) rotate(-45deg) !important;
    width: 8px !important;
    height: 8px !important;
    border-left: 2px solid #999 !important;
    border-bottom: 2px solid #999 !important;
    pointer-events: none !important;
    background: none !important;
}

.form-control:focus {
    border-color: #00A3A8;
    outline: none;
}

