
        :root { --primary: #2563eb; --secondary: #f59e0b; --dark: #1e293b; --light-bg: #f8fafc; --white: #ffffff; --text: #334155; }
        * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Vazirmatn', sans-serif; }
        a { text-decoration: none; color: inherit; transition: 0.3s; }
        img { max-width: 100%; display: block; }
        .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }



        /* چیدمان تماس */
        .contact-layout { display: flex; gap: 50px; padding: 60px 0; flex-wrap: wrap; }

        /* فرم */
        .contact-form-wrapper { flex: 1; min-width: 350px; background: white; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
        .form-title { font-size: 1.8rem; color: var(--dark); margin-bottom: 10px; }
        .form-subtitle { color: #64748b; margin-bottom: 30px; }

        .form-group { margin-bottom: 20px; }
        .form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
        .form-input { width: 100%; padding: 14px; border: 1px solid #e2e8f0; border-radius: 8px; outline: none; transition: 0.3s; font-family: inherit; }
        .form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
        textarea.form-input { height: 120px; resize: none; }

        .btn-submit { width: 100%; background: var(--primary); color: white; border: none; padding: 14px; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: 0.3s; }
        .btn-submit:hover { background: #1d4ed8; transform: translateY(-2px); }

        /* اطلاعات و نقشه */
        .info-map-wrapper { flex: 1; min-width: 300px; display: flex; flex-direction: column; gap: 30px; }

        .info-card { background: white; padding: 30px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-top: 4px solid var(--secondary); }
        .info-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; color: #64748b; }
        .info-icon { width: 40px; height: 40px; background: #fffbeb; color: var(--secondary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }

        .map-placeholder { background: #cbd5e1; border-radius: 20px; height: 400px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 1.2rem; }

        @media (max-width: 768px) {
            .contact-layout { flex-direction: column; }
        }
        
        
/* ==========================================
   ریپانسیو کردن فرم تماس (ایزوله شده از بقیه سایت)
   ========================================== */

/* لایه اصلی - ایجاد چیدمان دو ستونه در دسکتاپ */
.contact-layout {
    display: flex;
    flex-wrap: wrap; /* اجازه می‌دهد در موبایل به خط بعد برود */
    gap: 40px; /* فاصله بین فرم و ستون کناری */
    align-items: flex-start;
    padding: 40px 0;
}

/* نیمه عرض را در دسکتاپ می‌گیرد */
.contact-layout .contact-form-wrapper,
.contact-layout .info-map-wrapper {
    flex: 1 1 45%; /* رشد و جمع شدن با حداقل 45% عرض */
    min-width: 300px; /* جلوگیری از کوچک شدن بیش از حد */
}

/* ----- استایل‌های فرم ----- */
.contact-layout .form-group {
    margin-bottom: 20px;
}

.contact-layout .form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box; /* بسیار مهم: جلوگیری از پاره شدن کادر در موبایل */
    transition: border-color 0.3s;
}

.contact-layout .form-input:focus {
    border-color: #0056b3; /* رنگ دلخواه شما */
    outline: none;
    box-shadow: 0 0 5px rgba(0, 86, 179, 0.2);
}

.contact-layout textarea.form-input {
    resize: vertical; /* اجازه تغییر اندازه فقط به صورت عمودی */
    min-height: 120px;
}

.contact-layout .captcha {
    display: block;
    margin: 15px 0;
    border-radius: 4px;
}

.contact-layout #id_captcha_1 { /* اینپوت کپچا */
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    margin-top: 5px;
}

.contact-layout .btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--dark, #333); /* استفاده از متغیر شما یا رنگ پیش‌فرض */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.contact-layout .btn-submit:hover {
    opacity: 0.85;
}

/* ----- استایل‌های اطلاعات و نقشه ----- */
.contact-layout .info-map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px; /* فاصله بین کارت اطلاعات و نقشه */
}

.contact-layout .info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-layout .info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-layout .info-item:last-child {
    margin-bottom: 0;
}

.contact-layout .info-icon {
    font-size: 1.3rem;
    min-width: 30px;
    text-align: center;
}

/* رفع مشکل نقشه در موبایل (بسیار مهم) */
.contact-layout .map-placeholder {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.contact-layout .map-placeholder iframe {
    width: 100% !important; /* Override کردن عرض 600 پیکسل inline */
    height: 350px !important; /* Override کردن ارتفاع 600 پیکسل inline */
    display: block;
    border-radius: 12px;
}


/* ==========================================
   مدیا کوئری برای موبایل و تبلت
   ========================================== */

/* تبلت */
@media (max-width: 992px) {
    .contact-layout .map-placeholder iframe {
        height: 300px !important; /* کمی نقشه را کوچکتر می‌کنیم */
    }
}

/* موبایل */
@media (max-width: 768px) {
    .contact-layout {
        flex-direction: column; /* فرم و اطلاعات زیر هم قرار می‌گیرند */
        gap: 30px;
    }

    .contact-layout .contact-form-wrapper,
    .contact-layout .info-map-wrapper {
        flex: 1 1 100%; /* در موبایل تمام عرض را می‌گیرند */
        min-width: unset;
    }

    .contact-layout .map-placeholder iframe {
        height: 250px !important; /* ارتفاع نقشه در موبایل */
    }
}



    /* container کپچا */
    .captcha-container {
        margin-top: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }
    
    /* استایل خطاهای کپچا */
    .captcha-error {
        color: #dc3545;
        font-size: 14px;
        margin-top: 8px;
        padding: 8px 12px;
        background: #f8d7da;
        border-radius: 4px;
        border: 1px solid #f5c6cb;
        list-style: none;
    }
    
    /* اگر خطاها به صورت لیست هستند */
    .captcha-error ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .captcha-error ul li {
        margin: 0;
    }
    
    /* استایل فیلد کپچا در حالت خطا */
    .captcha-container.has-error input,
    .captcha-container.has-error img {
        border-color: #dc3545;
    }