/* جعبه پیشنهاد عنوان — Maghalat AI (خودکفا؛ با توکن‌های قالب مقالات هماهنگ می‌شود) */

.mg-submit-box {
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, #e2e8f0);
    border-radius: var(--radius-lg, 16px);
    padding: clamp(1.4rem, 3.5vw, 2.2rem);
    margin: 0 auto;
    max-width: 46rem;
    text-align: center;
    box-shadow: 0 6px 28px rgba(15, 23, 42, 0.06);
}

.mg-submit-box h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.mg-submit-box .mai-sub {
    color: var(--muted, #64748b);
    font-size: 0.93rem;
    margin: 0 0 1.3rem;
}

.mg-submit-box .mai-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: nowrap;
}

.mg-submit-box input[type="text"] {
    flex: 1;
    min-width: 14rem;
    border: 1px solid var(--line, #e2e8f0);
    background: var(--bg, #f8fafc);
    border-radius: 10px;
    min-height: 60px;
    padding: 0.9rem 1.1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink, #0f172a);
}

.mg-submit-box input[type="text"]:focus {
    outline: 2px solid var(--brand, #4f46e5);
    outline-offset: 1px;
    border-color: transparent;
}

.mg-submit-box .mg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    min-width: 150px;
    background: var(--brand, #4f46e5);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.8rem;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}
.mg-submit-box .mg-btn:hover { background: var(--brand-strong, #4338ca); }
.mg-submit-box .mg-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* تله ربات: خارج از دید، نه display:none تا ربات‌های ساده پر کنند */
.mai-hp {
    position: absolute !important;
    right: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.mai-msg {
    margin: 0.9rem 0 0;
    font-size: 0.92rem;
    font-weight: 600;
    min-height: 1.4em;
}
.mai-msg.is-ok { color: #15803d; }
.mai-msg.is-error { color: #b91c1c; }

.mai-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.85rem 0 0;
    text-align: right;
    font-size: 0.8rem;
    line-height: 1.85;
    color: var(--muted, #64748b);
}
.mai-consent input {
    width: 1rem;
    height: 1rem;
    margin-top: 0.35rem;
    flex: 0 0 auto;
    accent-color: var(--brand, #4f46e5);
}
.mai-consent a { color: var(--brand, #4f46e5); font-weight: 800; }
.mai-consent a:hover { text-decoration: underline; }

@media (max-width: 600px) {
    .mg-submit-box .mai-row { flex-direction: column; }
    .mg-submit-box input[type="text"] { min-width: 0; }
    .mg-submit-box .mg-btn { width: 100%; }
}
