/* ROIS contact form. Uses the rois theme colours/fonts (CSS variables) with fallbacks.
   Designed for the dark footer band; .rois-form--light can be used on white backgrounds. */

.rois-form {
	--rf-navy: var(--wp--preset--color--navy, #001F51);
	--rf-red: var(--wp--preset--color--red, #D93A43);
	--rf-text: #fff;
	--rf-muted: rgb(255 255 255 / .72);
	--rf-field-bg: rgb(255 255 255 / .08);
	--rf-field-border: rgb(255 255 255 / .22);
	color: var(--rf-text);
}
.rois-form--light {
	--rf-text: var(--wp--preset--color--ink, #17294B);
	--rf-muted: var(--wp--preset--color--muted, #52617B);
	--rf-field-bg: #fff;
	--rf-field-border: var(--wp--preset--color--line, #DCE2EC);
}

.rois-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.rois-form__field { margin: 0; display: grid; gap: 0.35rem; }
.rois-form__field--email,
.rois-form__field--message { grid-column: 1 / -1; }

.rois-form label { font-size: 0.95rem; font-weight: 600; color: var(--rf-text); }
.rois-form__req { color: var(--rf-red); }

.rois-form input[type="text"],
.rois-form input[type="email"],
.rois-form textarea {
	width: 100%; box-sizing: border-box;
	padding: 0.75rem 0.9rem; border-radius: 8px;
	border: 1px solid var(--rf-field-border); background: var(--rf-field-bg); color: var(--rf-text);
	font: inherit; font-size: 1rem; line-height: 1.4;
	transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.rois-form textarea { resize: vertical; min-height: 7.5rem; }
.rois-form input:focus,
.rois-form textarea:focus {
	outline: none; border-color: var(--rf-red);
	box-shadow: 0 0 0 3px rgb(217 58 67 / .3);
}
.rois-form [aria-invalid="true"] { border-color: var(--rf-red); }

.rois-form__consent { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1rem 0 0; }
.rois-form__consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex: none; accent-color: var(--rf-red); }
.rois-form__consent label { font-weight: 400; color: var(--rf-muted); }
.rois-form__consent a { color: var(--rf-text); }

.rois-form__actions { margin-top: 1.25rem; }
.rois-form__submit { cursor: pointer; border: 0; }
.rois-form__submit[disabled] { opacity: .65; cursor: progress; }

.rois-form__result:empty { display: none; }
.rois-form__status { margin: 1rem 0 0; padding: 0.8rem 1rem; border-radius: 8px; font-weight: 600; }
.rois-form__status.is-success { background: rgb(116 185 120 / .18); border: 1px solid rgb(116 185 120 / .6); }
.rois-form__status.is-error { background: rgb(217 58 67 / .15); border: 1px solid rgb(217 58 67 / .6); }

.rois-form__note { margin: 0.9rem 0 0; font-size: 0.8rem; color: var(--rf-muted); }
.rois-form__note a { color: inherit; }

/* Honeypot: invisible to people, tempting to bots. */
.rois-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* The site uses Google reCAPTCHA v3; its badge is replaced by the text note above (allowed by Google). */
.grecaptcha-badge { visibility: hidden; }

@media (max-width: 600px) {
	.rois-form__grid { grid-template-columns: 1fr; }
}
