/* ==========================================================================
   ۱. بخش بنر سراسری (Gene Hero Banner) - با حل مشکل اسکرول افقی در موبایل
   ========================================================================== */
.gene-hero-banner {
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    line-height: 0;
}

.gene-hero-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.gene-container {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif !important;
    direction: rtl;
    text-align: right;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px; /* ایجاد فاصله یکنواخت در پایین صفحه */
    box-sizing: border-box;
}

/* ==========================================================================
   ۲. بخش معرفی خدمات (Intro)
   ========================================================================== */
.gene-intro {
    background: #ffffff;
    border-right: 5px solid #0070C0; /* مرز سمت راست با رنگ تم ژن */
    padding: 30px;
    border-radius: 0 0 8px 8px; /* گوشه‌های بالا صاف جهت انطباق تمیز با بنر */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    margin-bottom: 40px;
    line-height: 1.8;
    direction: rtl;
}

.gene-title {
    color: #0070C0;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.gene-subtitle {
    color: #444444;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.gene-description {
    line-height: 1.8;
    color: #555555;
    font-size: 15px;
    text-align: justify;
}

.gene-description .list-title {
    margin-top: 15px;
    color: #222222;
    font-weight: bold;
}

.gene-features-list {
    list-style-type: none;
    padding-right: 20px;
    margin: 15px 0;
}

.gene-features-list li {
    position: relative;
    margin-bottom: 10px;
    padding-right: 18px;
    font-size: 14.5px;
    color: #444444;
}

.gene-features-list li::before {
    content: "■";
    color: #0070C0;
    font-size: 12px;
    position: absolute;
    right: 0;
    top: -1px;
}

.gene-cta-text {
    color: #0070C0;
    font-size: 18px;
    text-align: center;
    margin-top: 25px;
    font-weight: bold;
}

.gene-consult-text {
    color: #555555;
    font-size: 15px;
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}

/* ==========================================================================
   ۳. استایل فرم ثبت سفارش
   ========================================================================== */
.order-section {
    background-color: #f9f9f9;
    padding: 40px 15px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 112, 192, 0.05);
    border-top: 5px solid #0070C0;
    box-sizing: border-box;
}

.form-container h2 {
    text-align: center;
    color: #0070C0;
    margin-bottom: 35px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.05rem;
}

.form-select-custom {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    /* تصحیح انکدینگ آیکون فلش SVG برای نمایش تضمین شده در فایرفاکس و کروم */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%230070C0' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    background-size: 20px;
    padding-left: 40px;
}

.form-select-custom:focus {
    border-color: #0070C0;
    box-shadow: 0 0 0 3px rgba(0, 112, 192, 0.2);
}

.form-group label span.label-badge {
    background-color: #0070C0;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 10px;
    font-size: 0.9em;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #0070C0;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 112, 192, 0.4);
}

.sequence-helper {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

.seq-counter {
    float: left;
    font-weight: bold;
    color: #0070C0;
}

/* دکمه ارسال */
.btn-submit {
    background-color: #0070C0;
    color: white;
    font-family: inherit;
    border: none;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
}

.btn-submit:hover {
    background-color: #005694;
}

.btn-submit:active {
    transform: scale(0.98);
}

/* ==========================================================================
   ۴. بخش سوالات متداول (FAQ)
   ========================================================================== */
.faq-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0;
}

.faq-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}

.faq-item {
    border: 1px solid #e2e8f0;
    margin-bottom: 12px;
    background-color: #f9fbfd;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: #0070C0;
}

.faq-question {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    margin: 0;
    user-select: none;
    transition: background-color 0.2s ease;
    font-weight: bold;
    font-size: 1rem;
}

.faq-question:hover {
    background-color: rgba(0, 112, 192, 0.05); /* تصحیح شفافیت هاور جهت خوانایی عالی */
}

.faq-icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #0070C0;
    font-size: 1.1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    padding: 15px 20px 25px 20px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #4a5568;
    text-align: justify;
    border-top: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.download-link {
    color: #0070C0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease, transform 0.2s ease;
}

.download-link:hover {
    color: #005694 !important;
    text-decoration: underline;
}

/* ==========================================================================
   ۵. بخش ریسپانسیو (Responsive Mobile Styles)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .gene-title {
        font-size: 22px;
    }

    .gene-subtitle {
        font-size: 17px;
    }

    .gene-intro {
        padding: 20px;
        margin-top: 20px;
    }

    .form-container {
        padding: 25px 15px;
    }

    .faq-question {
        padding: 15px;
        font-size: 0.9rem;
    }
}
