/* ============ SERVICES SECTION ============ */
.svc { 
    display: grid; 
    grid-template-columns: 1fr 1.2fr; 
    gap: 48px; 
    align-items: start; 
}
.svc-list { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}
.svc-item { 
    display: flex; 
    gap: 14px; 
    padding: 16px; 
    border-radius: 12px; 
    cursor: pointer; 
    border: 1px solid transparent; 
    transition: background 160ms cubic-bezier(.16,.84,.44,1); 
}
.svc-item:hover, .svc-item.on { 
    background: #FFFFFF; 
    border-color: #E2E6EC; 
}
.svc-item.on { 
    box-shadow: inset 3px 0 0 #F59E1B; 
}
.svc-item h3 { 
    font-size: 18px; 
    margin: 0 0 4px 0; 
    color: #2E3D5C; 
}
.svc-item .muted { 
    color: #6B7280; 
    font-size: 14px; 
}
.svc-preview { 
    background: #FFFFFF; 
    border: 1px solid #E2E6EC; 
    border-radius: 12px; 
    padding: 24px; 
    min-height: 360px; 
}
.svc-preview .ph { 
    aspect-ratio: 4/3; 
    margin-bottom: 18px; 
    border-radius: 12px;
    overflow: hidden;
    /* این بخش برای حالت بدون عکس (پلیسهولدر) است */
    background: repeating-linear-gradient(45deg,#E8ECF2,#E8ECF2 10px,#F1F4F8 10px,#F1F4F8 20px); 
    border: 1px dashed #C3CBD8; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.svc-preview .ph img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.icn { 
    width: 18px; 
    height: 18px; 
    stroke: currentColor; 
    fill: none; 
    stroke-width: 1.8; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
    flex-shrink: 0;
}

/* ریسپانسیو */
@media (max-width: 768px) { 
    .svc { grid-template-columns: 1fr; } 
}

.hover-move {
    transition: transform 0.1s ease-in-out;
}

.hover-move:hover {
    transform: translateY(-2px);
}
.wp-block-uagb-container.uagb-block-56fe6e11.alignfull.uagb-is-root-container {
    margin-top: -77px !important;
}


/* ============ استایل دکمه فیلتر فعال (Active State) ============ */
.brand-filters-wrap.active-filter .wp-block-button__link,
.brand-filters-wrap.active-filter .uagb-buttons-repeater {
    background-color: #2E3D5C !important; /* پس‌زمینه سرمه‌ای */
    border-color: #2E3D5C !important; /* حاشیه سرمه‌ای */
}

/* اجبار اسپکترا به تغییر رنگ متن داخلی دکمه */
.brand-filters-wrap.active-filter .wp-block-button__link,
.brand-filters-wrap.active-filter .uagb-button__link {
    color: #FFFFFF !important; /* رنگ متن سفید */
}


/* ============ MAP SECTION (طراحی اختصاصی) ============ */
.mapbox {
    width: 100%;
    max-width: 550px; /* مقدار قبلی 800 بود، الان کوچکتر شد تا ارتفاع کم شود */
    margin: 0 auto;
}

.mapbox svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 360px; /* این خط نقشه را مجبور می‌کند که بیش از حد کش نیاید */
    filter: drop-shadow(0 8px 16px rgba(30, 42, 56, 0.08));
}

/* ۱. استایل تمام استان‌ها (وضعیت پیش‌فرض / خارج از پوشش) */
.mapbox svg path {
    fill: #FDF1DD; /* نارنجی ملایم (کرم) برای مناطق غیرفعال */
    stroke: #FFFFFF; /* خط مرزی سفید برای تفکیک تمیز استان‌ها */
    stroke-width: 1.5px;
    transition: fill 0.3s ease, transform 0.3s ease;
    cursor: default;
}

/* ۲. استایل استان‌های تحت پوشش (فعال) */
.mapbox svg path.active-area {
    fill: #191667; /* سرمه‌ای تیره اختصاصی شما */
    cursor: pointer;
}

/* ۳. افکت هاور روی استان‌های تحت پوشش */
.mapbox svg path.active-area:hover,
.mapbox svg path.active-area:focus {
    fill: #F59E1B; /* تغییر به نارنجی برند هنگام هاور */
    outline: none;
}

/* ============ FINAL CTA FORM (Dark & Minimal) ============ */

/* تنظیمات کانتینر اصلی فرم */
.finalcta {
    text-align: center;
    width: 100%;
}

.finalcta form {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 26px;
    flex-wrap: wrap;
    max-width: 640px;
    margin-inline: auto;
}

/* استایل اینپوت‌ها (افکت شیشه‌ای روی پس‌زمینه تیره) */
.finalcta input {
    height: 48px !important;
    padding-inline: 16px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #ffffff !important; /* رنگ سفید اجباری برای متن */
    flex: 1;
    min-width: 180px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.25s ease !important;
}

/* افکت فوکوس اینپوت‌ها (حل مشکل ناپدید شدن متن) */
.finalcta input:focus {
    outline: none !important;
    border-color: #F59E1B !important; 
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.45) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important; /* جلوگیری از تیره شدن متن توسط قالب در زمان تایپ */
}

/* رنگ پلیس‌هولدرها */
.finalcta input::placeholder {
    color: #9fb0cc !important;
    opacity: 1 !important;
}

/* استایل دکمه ارسال (CTA) */
.finalcta .btn-accent {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    padding-inline: 28px !important;
    border-radius: 8px !important;
    background: #F59E1B !important;
    color: #22304A !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    border: none !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: transform 160ms ease, background 160ms ease !important;
}

.finalcta .btn-accent:hover {
    transform: translateY(-2px) !important;
    background: #FFB84D !important;
}

/* پیام بازخورد (Success/Error) */
#hug-form-msg {
    padding: 10px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    margin-top: 14px;
}

/* =========================================
   بهینه‌سازی ریسپانسیو برای موبایل و تبلت
========================================= */
@media screen and (max-width: 768px) {
    .finalcta form {
        flex-direction: column; /* چیدمان فیلدها زیر هم */
        padding-inline: 20px; /* ایجاد فاصله از لبه‌های گوشی */
        gap: 16px; /* فاصله بیشتر بین فیلدها برای لمس راحت‌تر */
    }
    
    .finalcta input, 
    .finalcta .btn-accent {
        width: 100% !important; /* عرض کامل برای همه عناصر */
        flex: none; /* حذف حالت کشسانی افقی */
    }
}

/* ============ BRAND EXPERIENCE (KINO) ============ */
.kino-section {
    background-color: #1B2740 !important;
    color: #ffffff;
    padding-block: 60px !important;
    overflow: hidden;
}

/* استایل تب‌های برند (بالا) */
.brand-tabs-wrap {
    margin-bottom: 32px !important;
}
.brand-tabs-wrap .uagb-buttons__wrap {
    justify-content: center !important;
}
.brand-tabs-wrap .btab .wp-block-button__link {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #cdd7e6 !important;
    padding: 9px 24px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}
.brand-tabs-wrap .btab .wp-block-button__link:hover {
    border-color: #FFB84D !important;
    color: #ffffff !important;
}
/* تب فعال */
.brand-tabs-wrap .btab.active-brand .wp-block-button__link {
    background: #F59E1B !important;
    border-color: #F59E1B !important;
    color: #22304A !important;
    font-weight: 600 !important;
}

/* ============ چیدمان دو ستونه دسکتاپ ============ */
.kino-inner {
    display: grid !important;
    grid-template-columns: 250px 1fr !important;
    gap: 32px !important;
    align-items: start !important;
}

/* استایل لیست محصولات داینامیک */
.bx-plist {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.bx-product-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-align: right;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.25s ease, background 0.25s ease;
}
.bx-product-btn:hover {
    border-color: #FFB84D;
    background: rgba(255, 255, 255, 0.03);
}
.bx-product-btn.on {
    border-color: #F59E1B;
    background: rgba(245, 158, 11, 0.08);
}

/* استایل صحنه نمایش */
.bx-stage-wrap {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
}
.bx-stage-media {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
}
.bx-stage-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* =========================================
   بهینه‌سازی ریسپانسیو و موبایل
========================================= */
@media screen and (max-width: 768px) {
    /* ۱. کم کردن فاصله‌ها در موبایل */
    .kino-section {
        padding-block: 40px !important;
    }
    
    /* ۲. یک ستونه کردن گرید و کاهش فاصله بین دکمه‌ها و عکس */
    .kino-inner {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* ۳. تبدیل لیست عمودی به نوار اسکرول‌شونده افقی (Swipe) */
    .bx-plist {
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding-bottom: 8px !important;
        /* اسکرول نرم در گوشی */
        -webkit-overflow-scrolling: touch !important; 
        scroll-snap-type: x mandatory !important;
        /* مخفی کردن اسکرول‌بار مرورگر */
        scrollbar-width: none !important; 
    }
    .bx-plist::-webkit-scrollbar {
        display: none !important; 
    }

    /* ۴. استایل دکمه‌ها در حالت افقی موبایل */
    .bx-product-btn {
        flex: 0 0 auto !important; /* جلوگیری از جمع شدن و دفرمه شدن دکمه */
        scroll-snap-align: start !important;
        text-align: center !important;
        padding: 10px 20px !important;
        font-size: 14px !important;
    }

    /* ۵. جمع‌وجور کردن صحنه نمایش */
    .bx-stage-wrap {
        padding: 16px !important;
    }
}