.elementor-1644 .elementor-element.elementor-element-a827689{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:10px 10px;--row-gap:10px;--column-gap:10px;}.elementor-1644 .elementor-element.elementor-element-a6bdbe1{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:10px 10px;--row-gap:10px;--column-gap:10px;}.elementor-1644 .elementor-element.elementor-element-1ed59bf{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:10px 10px;--row-gap:10px;--column-gap:10px;}.elementor-1644 .elementor-element.elementor-element-8d0a54e{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:10px 10px;--row-gap:10px;--column-gap:10px;}.elementor-1644 .elementor-element.elementor-element-610a3ca{--display:flex;--gap:10px 10px;--row-gap:10px;--column-gap:10px;}.elementor-1644 .elementor-element.elementor-element-539a04e{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:10px 10px;--row-gap:10px;--column-gap:10px;}.elementor-1644 .elementor-element.elementor-element-312fb9c{--display:flex;--flex-direction:row;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--align-items:stretch;--gap:10px 10px;--row-gap:10px;--column-gap:10px;}/* Start custom CSS for container, class: .elementor-element-610a3ca *//* استایل کلی کانتینر فرم */
.gform_wrapper {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 120, 183, 0.1);
    margin: 2rem auto;
}

.gform_body {
    padding: 2rem;
    box-sizing: border-box;
}

/* استایل برچسب فیلدها (Label) */
.gform_body .gfield_label {
    color: #393939;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    display: block;
    text-align: right;
    margin-top: 0 !important;
}

/* استایل فیلدهای ورودی (Input) و textarea */
.gform_body input[type="text"],
.gform_body input[type="tel"],
.gform_body input[type="email"],
.gform_body input[type="password"],
.gform_body textarea,
.gform_body .ginput_container_singleproduct input,
.gform_body .ginput_container_coupon input[type="text"] {
    width: 100%;
    margin-bottom: 1rem;
    border: 2px solid #0078b7;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fefefe;
    box-sizing: border-box;
    height: auto;
}

/* استایل حالت فوکوس (Focus) برای فیلدها */
.gform_body input:focus,
.gform_body textarea:focus {
    border-color: #f89e1f !important;
    box-shadow: 0 0 0 3px rgba(248, 158, 31, 0.25) !important;
}

/* جهت نوشتن (Direction) بر اساس کلاس‌های اختصاصی */
.fb_gf_name_family input,
.fb_gf_address textarea,
.fb_gf_message textarea {
    direction: rtl;
    text-align: right;
}

.fb_gf_code_melli input,
.fb_gf_mobile input,
.fb_gf_email input,
.fb_gf_code_posti input,
.fb_gf_code_off input,
.fb_gf_mablagh_panel input,
.fb_gf_mablagh_nahaei input {
    direction: ltr;
    text-align: left;
}

/* استایل ارتفاع textarea برای آدرس و متن پیام */
.fb_gf_address textarea,
.fb_gf_message textarea {
    height: 5rem !important;
    min-height: 5rem !important;
    resize: none !important;
    overflow: auto !important;
}

/* استایل اختصاصی فیلد Select (درپ‌داون) */
.gfield--type-select .ginput_container_select .select2-container--default .select2-selection--single {
    width: 100% !important;
    height: 44px !important;
    line-height: 44px !important;
    padding: 0 !important;
    border: 2px solid #0078b7 !important;
    border-radius: 8px !important;
    outline: none !important;
    background-color: #fefefe !important;
    box-sizing: border-box !important;
    position: relative !important;
    font-size: 1rem !important;
}

/* استایل متن و کانتینر داخلی فیلد Select */
.gfield--type-select .select2-selection__rendered {
    height: 100% !important;
    line-height: 40px !important;
    padding: 0 0.8rem !important;
    padding-right: 2.2rem !important;
    direction: rtl !important;
    text-align: right !important;
    color: #495057 !important;
}

/* استایل فلش درپ‌داون */
.gfield--type-select .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0.5rem !important;
    width: auto !important;
}

/* استایل آیکون فلش (المان b) */
.gfield--type-select .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent !important;
    border-style: solid !important;
    border-width: 5px 4px 0 4px !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
}

/* استایل حالت فوکوس برای فیلد Select */
.gfield--type-select .select2-container--default.select2-container--focus .select2-selection--single,
.gfield--type-select .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #f89e1f !important;
    box-shadow: 0 0 0 3px rgba(248, 158, 31, 0.25) !important;
}

/* استایل بخش آپلود فایل */
.gform_fileupload_multifile {
    direction: rtl;
    text-align: right;
}
.gform_drop_instructions {
    direction: rtl;
    text-align: right;
}
.gform_button_select_files {
    background-color: #0078b7 !important;
    color: #fff !important;
    border: none !important;
    padding: 0.6rem 0.8rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.3s ease, transform 0.1s ease !important;
}

/* استایل بخش کد تخفیف */
.ginput_container_coupon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ginput_container_coupon input[type="text"] {
    flex-grow: 1;
    margin-bottom: 0;
}
#gf_coupon_button {
    background-color: #0078b7;
    color: #fff;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    flex-shrink: 0;
    margin-bottom: 0;
}
#gf_coupon_button:hover { background-color: #005f91; }

#gf_coupon_info {
    width: 100%;
    margin-top: 0.5rem;
    direction: rtl;
    text-align: right;
}
#gf_coupon_info table { width: 100%; border-collapse: collapse; }
#gf_coupon_info tr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}
#gf_coupon_info tr:last-child { border-bottom: none; }
#gf_coupon_info .gf_coupon_name_container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-grow: 1;
    color: #393939;
    font-size: 0.9rem;
    font-weight: bold;
}
#gf_coupon_info .gf_coupon_name { margin: 0; }
#gf_coupon_info .gf_coupon_discount_container {
    color: #72be44;
    font-size: 0.9rem;
    font-weight: bold;
}
#gf_coupon_info .remove-coupon {
    color: #f89e1f;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}
#gf_coupon_info .remove-coupon:hover { text-decoration: underline; opacity: 0.8; }

/* استایل دکمه سابمیت و ریکپچا */
.gform_footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: row-reverse;
    justify-content: center;
}

.fb_gf_recaptcha .ginput_recaptcha {
    margin-top: 0;
    text-align: center;
    justify-self: center;
}

/* استایل دکمه سابمیت برای همه فرم‌ها */
.gform_button {
    width: 50%;
    max-width: 300px;
    background-color: #0078b7;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    margin: 0 auto; /* Added to center the button */
}
.gform_button:hover { background-color: #005f91; transform: translateY(-2px); }
.gform_button:active { transform: translateY(0); }

/* استایل فیلد مبلغ نهایی */
.fb_gf_mablagh_nahaei input {
    width: 100%;
    border: 2px solid #0078b7;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    background-color: #fefefe;
    box-sizing: border-box;
    text-align: center;
    direction: ltr;
}

/* تنظیمات ریسپانسیو برای موبایل */
@media (max-width: 600px) {
    .gform_footer {
        flex-direction: column;
        align-items: center;
        text-align: center; /* Added to ensure content is centered */
    }
    .gform_button {
        width: 100% !important;
        margin: 0 auto 1rem auto; /* Adjusted margin to center on mobile */
    }
}/* End custom CSS */