/* ==========================================================================
   فرم دریافت لید (صفحه اصلی و صفحات عمومی) — نسخه ۱.۸.۰
   ========================================================================== */

.home-lead {
    --hl-primary: #4f46e5;
    --hl-soft: #eef2ff;
    --hl-text: #111827;
    --hl-muted: #6b7280;
    --hl-border: #e5e7eb;

    padding: 40px 16px;
    direction: rtl;
    background:
        radial-gradient(700px 320px at 90% 0%, rgba(79, 70, 229, 0.12), transparent 60%),
        radial-gradient(600px 300px at 5% 100%, rgba(245, 158, 11, 0.12), transparent 60%),
        #f8fafc;
}

/* پنهان‌سازی مطمئن فرم/پیام موفقیت با hidden */
.home-lead [hidden] {
    display: none !important;
}

.home-lead-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.home-lead-copy h2 {
    font-size: clamp(1.25rem, 3.6vw, 1.85rem);
    margin: 0 0 10px;
    color: var(--hl-text);
    line-height: 1.7;
}

.home-lead-copy p {
    color: var(--hl-muted);
    font-size: 0.95rem;
    line-height: 2;
    margin: 0 0 16px;
}

.home-lead-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.home-lead-points li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #374151;
}

.home-lead-points .material-icons {
    font-size: 20px;
    color: var(--hl-primary);
}

.home-lead-card {
    background: #fff;
    border: 1px solid var(--hl-border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.home-lead-form {
    display: grid;
    gap: 14px;
}

.home-lead-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-lead-field span {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
}

.home-lead-field input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1.5px solid var(--hl-border);
    background: #fbfdff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-lead-field input:focus {
    outline: none;
    border-color: var(--hl-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

.home-lead-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--hl-primary), #6366f1);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(79, 70, 229, 0.26);
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.home-lead-submit:hover:not(:disabled) {
    transform: translateY(-2px);
}

.home-lead-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.home-lead-msg {
    margin: 0;
    min-height: 1.2rem;
    font-size: 0.85rem;
    text-align: center;
}

.home-lead-msg.is-error {
    color: #dc2626;
    font-weight: 700;
}

.home-lead-privacy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    font-size: 0.74rem;
    color: var(--hl-muted);
}

.home-lead-privacy .material-icons {
    font-size: 15px;
}

.home-lead-success {
    text-align: center;
    padding: 10px 6px;
}

.home-lead-success .material-icons {
    font-size: 54px;
    color: #16a34a;
}

.home-lead-success h3 {
    margin: 8px 0 6px;
    font-size: 1.1rem;
    color: var(--hl-text);
}

.home-lead-success p {
    margin: 0;
    color: var(--hl-muted);
    font-size: 0.9rem;
    line-height: 1.9;
}

/* تله‌ی ربات‌ها (مشترک همه‌ی فرم‌های لید) */
.lead-honeypot,
form[data-lead-form] input[name="website"] {
    position: absolute;
    right: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 900px) {
    .home-lead-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .home-lead {
        padding: 26px 12px;
    }

    .home-lead-card {
        padding: 16px;
    }
}
