/* ==========================================================================
   ۱. بخش بنر سراسری (Peptide Hero Banner) - بهینه شده بدون باگ اسکرول افقی
   ========================================================================== */
.peptide-hero-banner {
    width: 100%;
    max-width: 100vw;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
    line-height: 0;
}

.peptide-hero-banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.peptide-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)
   ========================================================================== */
.peptide-intro {
    background: #ffffff;
    border-right: 5px solid #00B050;
    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;
}

.peptide-title {
    color: #00B050;
    font-size: 28px;
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
}

.peptide-subtitle {
    color: #444444;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.peptide-description {
    line-height: 1.8;
    color: #555555;
    font-size: 15px;
    text-align: justify;
}

.peptide-description .list-title {
    margin-top: 15px;
    color: #222222;
    font-weight: bold;
}

.peptide-features-list {
    list-style-type: none;
    padding-right: 20px;
    margin: 15px 0;
}

.peptide-features-list li {
    position: relative;
    margin-bottom: 10px;
    padding-right: 18px;
    font-size: 14.5px;
    color: #444444;
}

.peptide-features-list li::before {
    content: "■";
    color: #00B050;
    font-size: 12px;
    position: absolute;
    right: 0;
    top: -1px;
}

.peptide-cta-text {
    color: #00B050;
    font-size: 18px;
    text-align: center;
    margin-top: 25px;
    font-weight: bold;
}

.peptide-consult-text {
    color: #555555;
    font-size: 15px;
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
}

/* ==========================================================================
   بخش اقلام تحویلی (Delivery Items) - کاملا واکنش‌گرا و مدرن
   ========================================================================== */
.delivery-items-section {
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
    direction: rtl;
    box-sizing: border-box;
}

.delivery-section-title {
    text-align: center;
    color: #333;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.title-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #00B050;
    border-radius: 2px;
}

/* نمایش انعطاف‌پذیر گرید بر اساس پهنای صفحه */
.delivery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* استایل کلی کارت */
.delivery-card {
    background: #ffffff;
    border: 1px solid #eef2f3;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

/* بخش تصویر بالای کارت */
.card-banner {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: relative;
}

.card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* بخش متنی پایین کارت */
.card-body {
    padding: 20px 15px;
    text-align: center;
    border-top: 4px solid #00B050;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 1.05rem;
    color: #222;
    margin: 0;
    font-weight: 700;
    line-height: 1.4;
}

/* افکت هاور کارت و زوم تصویر */
.delivery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 176, 80, 0.15) !important;
    border-color: #00B050;
}

.delivery-card:hover .card-banner img {
    transform: scale(1.08);
}

/* ==========================================================================
   ۳. استایل فرم ثبت سفارش پپتید
   ========================================================================== */
.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, 0, 0, 0.05);
    border-top: 5px solid #00B050;
    box-sizing: border-box;
}

.form-container h2 {
    text-align: center;
    color: #00B050;
    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;
    /* حل مشکل عدم نمایش آیکون فلش در کروم، فایرفاکس و سافاری */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg fill='%2300B050' 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: #00B050;
    box-shadow: 0 0 0 3px rgba(0, 176, 80, 0.15);
}

/* برچسب رنگی فیلدها */
.form-group label span.label-badge {
    background-color: #00B050;
    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: #00B050;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 176, 80, 0.2);
}

.sequence-helper {
    font-size: 0.85em;
    color: #666;
    margin-top: 5px;
}

.seq-counter {
    float: left;
    font-weight: bold;
    color: #00B050;
}

/* دکمه ارسال فرم */
.btn-submit {
    background-color: #00B050;
    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: #008f41;
}

.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 #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: #00B050;
}

.faq-question {
    background-color: #f7f7f7;
    padding: 18px 20px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s;
    margin: 0;
    user-select: none;
}

.faq-question:hover {
    background-color: rgba(0, 176, 80, 0.05); /* تصحیح شفافیت هاور جهت سازگاری و خوانایی متن */
}

.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: #555;
    text-align: justify;
    border-top: 1px solid #eee;
}

.faq-item.active .faq-answer {
    opacity: 1;
}

.faq-icon {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #008f41;
    font-size: 1.1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* ==========================================================================
   ۵. استایل‌های ریسپانسیو (Responsive Styles)
   ========================================================================== */
@media screen and (max-width: 992px) {
    .delivery-grid {
        grid-template-columns: repeat(2, 1fr); /* دو ستونه شدن بخش تحویل در تبلت‌ها */
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {
    .peptide-title {
        font-size: 22px;
    }

    .peptide-subtitle {
        font-size: 17px;
    }

    .peptide-intro {
        padding: 20px;
        margin-top: 20px;
    }

    .delivery-grid {
        grid-template-columns: 1fr; /* تک ستونه شدن بخش تحویل در موبایل */
    }

    .form-container {
        padding: 25px 15px;
    }

    .faq-question {
        padding: 15px;
        font-size: 0.9rem;
    }
}
