/* NWIMS Contact Form — matches the NWIMS Modern theme, works with any theme. */
.nwims-cf { margin: 0 0 3rem; padding: 32px; border: 1px solid #e3e9f1; border-radius: 18px; background: #fff; box-shadow: 0 12px 32px rgba(15, 35, 64, .06); }
.nwims-cf-title { margin: 0 0 8px !important; }
.nwims-cf-intro { margin: 0 0 22px; color: #55647a; }
.nwims-cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.nwims-cf-field { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.nwims-cf-wide { grid-column: 1 / -1; }
.nwims-cf label { font-weight: 600; color: #0f2340; font-size: 15px; }
.nwims-cf-opt { font-weight: 400; color: #6b7a8f; }
.nwims-cf-req { color: #b42318; }
.nwims-cf input[type="text"], .nwims-cf input[type="email"], .nwims-cf input[type="tel"], .nwims-cf select, .nwims-cf textarea {
	width: 100%; box-sizing: border-box; min-height: 48px; padding: 10px 14px; font: inherit; color: #1c2a3d;
	background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
.nwims-cf textarea { min-height: 220px; resize: vertical; overflow-y: hidden; field-sizing: content; max-height: none; }
.nwims-cf input:focus, .nwims-cf select:focus, .nwims-cf textarea:focus { outline: none; border-color: var(--nw-accent, #1f6fe0); box-shadow: 0 0 0 3px rgba(31, 111, 224, .18); }
.nwims-cf .is-invalid { border-color: #b42318 !important; }
.nwims-cf-error { color: #b42318; font-size: 14px; font-weight: 500; }
.nwims-cf-consent { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; }
.nwims-cf-consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--nw-accent, #1f6fe0); }
.nwims-cf-consent label { font-weight: 400; color: #3c4b60; }
.nwims-cf-actions { margin: 22px 0 0; }
.nwims-cf-submit[disabled] { opacity: .6; cursor: wait; }
.nwims-cf-notice { margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; font-weight: 500; }
.nwims-cf-notice.is-ok { background: #e3f5ee; color: #0b5c43; }
.nwims-cf-notice.is-err { background: #fdecea; color: #8a1c12; }
.nwims-cf-live:empty { display: none; }
.nwims-cf-live { margin-top: 18px; }
.nwims-cf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) {
	.nwims-cf { padding: 22px 18px; }
	.nwims-cf-grid { grid-template-columns: minmax(0, 1fr); }
}
