/** Consulting request form Section  Start --------------------------------------------------------------------- **/
/* --- استایل‌های بخش فرم مشاوره --- */
.consultation-section {
    /* اصلاح ۱: اضافه کردن پدینگ بالا/پایین و چپ/راست برای جلوگیری از چسبیدن به لبه‌ها */
    padding: 60px 20px;
    position: relative;
    z-index: 1;
    /* اصلاح ۲: جلوگیری از بیرون زدن blob و ایجاد اسکرول افقی مزاحم */
    overflow: hidden;
    width: 100%;
    /* اطمینان از عرض کامل */
}

.consult-wrapper {
    max-width: 1130px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* ستون توضیحات و ستون فرم */
    gap: 50px;
    /* افزایش فاصله بین ستون‌ها */
    align-items: center;
    /* تراز عمودی وسط */
}

/* کارت سمت راست: اطلاعات تماس و متن */
.consult-info-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* حذف padding-left اجباری که در موبایل مشکل ساز بود */
}

.consult-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(236, 72, 153, 0.1);
    color: #d946ef;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    width: fit-content;
    /* اصلاح عرض */
    margin-bottom: 20px;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.consult-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    /* فونت واکنش‌گرا */
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-main);
}

.consult-desc {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
    font-size: 1.05rem;
    text-align: justify;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.c-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.c-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    box-shadow: var(--card-shadow);
    transition: 0.3s;
    flex-shrink: 0;
    /* جلوگیری از جمع شدن آیکون */
}

.c-item:hover .c-icon {
    background: var(--primary);
    color: white;
    transform: rotate(-10deg);
}

.c-text h4 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 4px;
}

.c-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* کارت سمت چپ: فرم */
.consult-form-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* خط رنگی بالای فرم */
.consult-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: var(--gradient-main);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: none;
    /* حذف سایه پیش‌فرض مرورگر */
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: var(--bg-card);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* دکمه ارسال */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
}

/* ریسپانسیو - اصلاح شده برای جلوگیری از بهم ریختگی */
@media (max-width: 900px) {
    .consultation-section {
        padding: 20px 20px;
        /* تنظیم پدینگ در موبایل */
    }

    .consult-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .consult-info-card {
        padding-left: 0;
        text-align: center;
        align-items: center;
    }

    .consult-desc {
        text-align: center;


    }

    .contact-items {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* در موبایل جهت آیتم‌ها همان راست به چپ بماند بهتر است */
    .c-item {
        justify-content: flex-start;
    }

    .consult-form-card {
        padding: 25px 20px;
        /* کاهش پدینگ داخلی کارت فرم در موبایل */
    }

    .form-grid {
        grid-template-columns: 1fr;
        /* تک ستونه شدن فیلدها */
        gap: 15px;
    }

    .form-group.full-width {
        grid-column: span 1;
    }
}

/** Consulting request form Section  End --------------------------------------------------------------------- **/
