/* ==========================================================================
   متغیرهای رنگی با تم زرد/طلایی اختصاصی RNA
   ========================================================================== */
:root {
    --primary-rna: #CFBE0C;
    --primary-rna-hover: #bdae0a;
    --primary-rna-light: rgba(207, 190, 12, 0.1);
    --dark-bg: #1e1e1e;
    --gray-light: #f9f9f9;
    --text-dark: #333333;
    --border-color: #dddddd;
}

/* ==========================================================================
   ۱. بخش بنر سراسری (RNA Banner) - بدون ایجاد اسکرول افقی
   ========================================================================== */
.rna-banner-section {
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    line-height: 0;
}

.brand-banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.rna-container {
    direction: rtl;
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px; /* ایجاد فاصله استاندارد از پایین صفحه */
    box-sizing: border-box;
}

/* ==========================================================================
   ۲. بخش معرفی (Intro)
   ========================================================================== */
.rna-intro {
    background: #ffffff;
    border-right: 5px solid var(--primary-rna);
    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;
}

.rna-title {
    color: var(--primary-rna);
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: bold;
}

.rna-subtitle {
    color: #444444;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.rna-description {
    line-height: 1.8;
    color: #555555;
    font-size: 15px;
    text-align: justify;
}

.rna-description .list-title {
    margin-top: 15px;
    color: #222222;
    font-weight: bold;
}

.rna-features-list {
    list-style-type: none;
    padding-right: 20px;
    margin: 15px 0;
}

.rna-features-list li {
    position: relative;
    margin-bottom: 10px;
    padding-right: 18px;
    font-size: 14.5px;
    color: #444444;
}

.rna-features-list li::before {
    content: "■";
    color: var(--primary-rna);
    font-size: 12px;
    position: absolute;
    right: 0;
    top: -1px;
}

.rna-cta-text {
    color: var(--primary-rna);
    font-size: 17px;
    text-align: center;
    margin-top: 25px;
    font-weight: bold;
}

.rna-consult-text {
    color: #555555;
    font-size: 15px;
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}

/* ==========================================================================
   ۳. بخش اقلام تحویلی (Delivery Items) - کاملا واکنش‌گرا
   ========================================================================== */
.delivery-items-section {
    margin: 50px auto;
    max-width: 1200px;
    box-sizing: border-box;
}

.delivery-section-title {
    text-align: center;
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
    font-weight: bold;
}

.title-underline {
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-rna);
    margin: 8px auto 0;
    border-radius: 2px;
}

.delivery-grid-three {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.delivery-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.card-banner {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-rna);
    transition: transform 0.4s ease;
}

.card-body {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.card-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: bold;
}

/* اصلاح افکت هاور کارت و رفع خطای مقدار عددی سایه */
.delivery-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 25px rgba(207, 190, 12, 0.2) !important;
    border-color: var(--primary-rna);
}

.delivery-card:hover .card-banner img {
    transform: scale(1.05);
}

/* ==========================================================================
   ۴. بخش فرم ثبت سفارش RNA
   ========================================================================== */
.order-section {
    background-color: #f9f9f9;
    padding: 40px 15px;
    border-radius: 12px;
    margin-bottom: 50px;
    direction: rtl;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-rna);
    text-align: right;
    box-sizing: border-box;
}

.form-container h2 {
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 30px;
    font-size: 22px;
    font-weight: 700;
}

/* استایل پیام‌های سیستم (Alerts) */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.05rem;
    text-align: right;
}

.label-wrapper label {
    margin-bottom: 0;
}

.form-group label span.label-badge {
    background-color: var(--primary-rna);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9em;
    direction: rtl;
}

.step-num {
    margin-left: 2px;
}

/* اصلاح رنگ ستاره الزامی بودن فیلد جهت خوانایی */
.required-star {
    color: #f1f1f1;
    margin-right: 3px;
    font-weight: bold;
}

.seq-counter {
    background: #fefdf0;
    color: var(--primary-rna);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--primary-rna);
    outline: none;
    box-shadow: 0 0 5px rgba(207, 190, 12, 0.4);
}

.force-rtl {
    direction: rtl !important;
    text-align: right !important;
}

.force-rtl::placeholder {
    text-align: right !important;
    direction: rtl !important;
}

/* دراپ‌داون اختصاصی با آیکون فلش تضمین‌شده در تمام مرورگرها */
.form-select-custom {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif !important;
    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;
    /* اصلاح انکودینگ هشتگ جهت رندر قطعی آیکون فلش طلایی */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%23CFBE0C' 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;
    padding-right: 15px;
    direction: rtl;
    text-align: right;
}

.form-select-custom:focus {
    border-color: var(--primary-rna);
    box-shadow: 0 0 0 3px rgba(207, 190, 12, 0.2);
}

.sequence-helper {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
    text-align: right;
}

.btn-submit {
    display: block;
    width: 100%;
    background: var(--primary-rna);
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 17px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    font-family: 'Vazirmatn', sans-serif !important;
}

.btn-submit:hover {
    background: var(--primary-rna-hover);
}

.btn-submit:active {
    transform: scale(0.99);
}

/* ==========================================================================
   ۵. بخش سوالات متداول (FAQ)
   ========================================================================== */
.faq-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: justify;
    box-sizing: border-box;
}

.faq-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-weight: bold;
}

.faq-item {
    border: 1px solid var(--border-color);
    margin-bottom: 12px;
    background-color: #fdfdf5; /* هاله ملایم زرد/طلایی */
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: var(--primary-rna);
}

.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;
    color: var(--text-dark);
}

.faq-question:hover {
    background-color: rgba(207, 190, 12, 0.1);
}

.faq-icon {
    display: inline-block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--primary-rna);
    font-size: 1.1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.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;
    background-color: #ffffff;
}

.faq-content {
    padding: 15px 20px 25px 20px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #4a5568;
    border-top: 1px solid #eee;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

/* ==========================================================================
   ۶. استایل‌های ریسپانسیو (Responsive)
   ========================================================================== */
@media screen and (max-width: 768px) {
    .rna-title {
        font-size: 22px;
    }

    .rna-subtitle {
        font-size: 17px;
    }

    .rna-intro {
        padding: 20px;
        margin-top: 20px;
    }

    .delivery-grid-three {
        grid-template-columns: 1fr; /* تک ستونه شدن روی موبایل */
    }

    .form-container {
        padding: 25px 15px;
    }

    .faq-question {
        padding: 15px;
        font-size: 0.9rem;
    }
}
