/* فرم‌های پوسته (inc/forms.php): تماس و خبرنامه. */
.weesa-form { display: grid; gap: 0.8rem; }
.weesa-form *, .weesa-form *::before, .weesa-form *::after { box-sizing: border-box; }
.weesa-form__f { display: grid; gap: 0.3rem; margin: 0; }
.weesa-form__f label { font-size: 0.82rem; color: var(--wp--preset--color--muted); }
.weesa-form :is(input[type="text"], input[type="email"], textarea) {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--md, 12px);
	background: color-mix(in srgb, var(--wp--preset--color--base) 40%, #fff);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	font-size: 0.92rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.weesa-form textarea { resize: vertical; min-height: 8rem; }
.weesa-form :is(input, textarea):focus { outline: none; border-color: var(--wp--preset--color--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 18%, transparent); }
.weesa-form__actions { margin: 0.2rem 0 0; }
.weesa-form__actions .wp-element-button { width: 100%; border: 0; cursor: pointer; }
.weesa-form__trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.weesa-form__ok, .weesa-form__err { margin: 0; padding: 0.7rem 1rem; border-radius: var(--wp--custom--radius--md, 12px); font-size: 0.9rem; }
.weesa-form__ok { background: color-mix(in srgb, var(--wp--preset--color--accent) 14%, var(--wp--preset--color--base)); color: var(--wp--preset--color--contrast); }
.weesa-form__err { background: #fbe9e7; color: #8a2c1d; }
.weesa-form--news { grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem; }
.weesa-form--news .weesa-form__ok { grid-column: 1 / -1; }
.weesa-form--news input[type="email"] { min-width: 0; border-radius: var(--wp--custom--radius--button, 999px); padding: 0.6rem 1rem; text-align: right; }
.weesa-form--news .wp-element-button { border: 0; border-radius: var(--wp--custom--radius--button, 999px); cursor: pointer; padding-inline: 1.3rem; }
