/* RODAS site-wide enquiry form (footer), restored 2026-10-25.
   Every rule is scoped to .rodas-enquiry (Elementor templates 6647 / 5734)
   or .rodas-eq-form (CF7 6637 / 6805). Nothing here styles global inputs,
   buttons, labels or other Elementor widgets. */

.rodas-enquiry {
	--rodas-eq-accent: #834199;
	--rodas-eq-accent-dark: #6c3480;
	--rodas-eq-text: #403226;
	--rodas-eq-muted: #6b5d52;
	--rodas-eq-line: #d8cfdc;
	--rodas-eq-error: #b3261e;
	--rodas-eq-ok: #2e6b33;
	color: var(--rodas-eq-text);
	/* The theme's footer area already draws the rounded purple frame. */
	padding: 18px 8px 6px;
	margin: 0 auto;
}
.rodas-enquiry > .elementor-container { max-width: none; }

/* ---------- introduction ---------- */
.rodas-enquiry .rodas-enquiry-intro > .elementor-widget-wrap.elementor-element-populated { align-content: flex-start; padding: 0 40px 0 0; }
.rodas-enquiry .rodas-enquiry-kicker p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 500;
	letter-spacing: .02em;
	color: var(--rodas-eq-accent);
}
.rodas-enquiry .rodas-enquiry-title .elementor-heading-title {
	margin: 0 0 14px;
	font-family: "Space Grotesk", sans-serif;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 500;
	color: var(--rodas-eq-text);
}
.rodas-enquiry .rodas-enquiry-lead p {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	font-weight: 300;
	color: var(--rodas-eq-text);
}
.rodas-enquiry .rodas-enquiry-art { margin-top: 26px; }
.rodas-enquiry .rodas-enquiry-art img { width: 100%; max-width: 300px; height: auto; opacity: .9; }
.rodas-enquiry .rodas-enquiry-privacy p {
	margin: 14px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--rodas-eq-muted);
}
.rodas-enquiry .rodas-enquiry-privacy a { color: var(--rodas-eq-accent); text-decoration: underline; }

/* ---------- form grid ---------- */
.rodas-eq-form .rodas-eq-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px 20px;
}
.rodas-eq-form .rodas-eq-field { min-width: 0; grid-column: span 6; }
.rodas-eq-form .rodas-eq-half { grid-column: span 3; }
.rodas-eq-form .rodas-eq-third { grid-column: span 2; }

.rodas-eq-form label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 500;
	color: var(--rodas-eq-text);
}
.rodas-eq-form .rodas-eq-req { color: var(--rodas-eq-accent); }
.rodas-eq-form .rodas-eq-opt { font-weight: 300; color: var(--rodas-eq-muted); }
.rodas-eq-form .wpcf7-form-control-wrap { display: block; position: relative; }

.rodas-eq-form input[type="text"],
.rodas-eq-form input[type="email"],
.rodas-eq-form input[type="tel"] {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--rodas-eq-line) !important;
	border-radius: 10px;
	background: #fff;
	color: #222;
	font-size: 16px;
	line-height: 1.4;
	font-weight: 400;
	box-shadow: none;
	box-sizing: border-box;
}
.rodas-eq-form input[type="text"]::placeholder { color: #8d8178; opacity: 1; }

/* select2 (the theme turns every <select> into select2). The Customizer
   pins #page .select2-container to 275px; undo that inside this form only. */
#page .rodas-eq-form .select2-container {
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
}
#page .rodas-eq-form .select2-container .select2-selection--single {
	height: 48px;
	padding: 0 !important; /* the theme reserves 100px on the right */
	border: 1px solid var(--rodas-eq-line) !important;
	border-radius: 10px !important;
	background: #fff;
}
#page .rodas-eq-form .select2-container .select2-selection--single .select2-selection__rendered {
	line-height: 46px;
	padding-left: 14px;
	padding-right: 34px;
	color: #222;
	font-size: 16px;
	font-weight: 400 !important;
	width: 100% !important; /* the theme sizes this span at 50% of the box */
	box-sizing: border-box;
}
#page .rodas-eq-form .select2-container .select2-selection--single .select2-selection__arrow { height: 46px; right: 8px; }
.rodas-eq-form select { width: 100%; height: 48px; border: 1px solid var(--rodas-eq-line); border-radius: 10px; padding: 0 12px; font-size: 16px; background: #fff; }

/* focus - visible, not decorative */
.rodas-eq-form input[type="text"]:focus,
.rodas-eq-form select:focus,
.rodas-eq-form .select2-container--focus .select2-selection--single,
.rodas-eq-form .select2-container--open .select2-selection--single {
	outline: none;
	border-color: var(--rodas-eq-accent) !important;
	box-shadow: 0 0 0 3px rgba(131, 65, 153, .2);
}

/* ---------- attachment ---------- */
.rodas-eq-form .rodas-eq-file input[type="file"] {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 10px;
	border: 1px dashed #c4b2cc;
	border-radius: 10px;
	background: #faf8fb;
	color: var(--rodas-eq-text);
	font-size: 15px;
	line-height: 1.4;
	box-sizing: border-box;
	cursor: pointer;
}
.rodas-eq-form .rodas-eq-file input[type="file"]::file-selector-button {
	margin: 0 14px 0 0;
	padding: 9px 16px;
	border: 1px solid var(--rodas-eq-accent);
	border-radius: 8px;
	background: #fff;
	color: var(--rodas-eq-accent);
	font: inherit;
	font-weight: 500;
	cursor: pointer;
}
.rodas-eq-form .rodas-eq-file input[type="file"]:hover::file-selector-button { background: var(--rodas-eq-accent); color: #fff; }
.rodas-eq-form .rodas-eq-file input[type="file"]:focus-visible {
	outline: 3px solid rgba(131, 65, 153, .35);
	outline-offset: 2px;
}
.rodas-eq-form .rodas-eq-hint {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: var(--rodas-eq-muted);
}

/* ---------- actions ---------- */
.rodas-eq-form .rodas-eq-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-top: 22px;
}
.rodas-eq-form .rodas-eq-legend { margin: 0; font-size: 13px; color: var(--rodas-eq-muted); }
.rodas-eq-form .rodas-eq-submit-wrap { display: inline-flex; align-items: center; }
.rodas-eq-form .rodas-eq-legend span { color: var(--rodas-eq-accent); }
.rodas-eq-form input.rodas-eq-submit {
	min-height: 48px;
	margin: 0;
	padding: 12px 30px;
	border: 0;
	border-radius: 999px;
	background: var(--rodas-eq-accent);
	color: #fff;
	font-family: "Space Grotesk", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
	transition: background-color .15s ease;
}
.rodas-eq-form input.rodas-eq-submit:hover { background: var(--rodas-eq-accent-dark); }
.rodas-eq-form input.rodas-eq-submit:focus-visible { outline: 3px solid rgba(131, 65, 153, .4); outline-offset: 3px; }
.rodas-eq-form input.rodas-eq-submit:disabled,
.wpcf7-form.submitting .rodas-eq-form input.rodas-eq-submit { opacity: .6; cursor: progress; }
.rodas-eq-form .wpcf7-spinner { margin: 0 0 0 12px; }

/* ---------- validation and result ---------- */
.rodas-eq-form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--rodas-eq-error); }
.rodas-eq-form input.wpcf7-not-valid,
.rodas-eq-form .wpcf7-not-valid + .select2-container .select2-selection--single { border-color: var(--rodas-eq-error) !important; }
.rodas-enquiry .wpcf7 form .wpcf7-response-output {
	margin: 18px 0 0;
	padding: 12px 16px;
	border: 1px solid var(--rodas-eq-line);
	border-radius: 10px;
	font-size: 15px;
	line-height: 1.5;
}
.rodas-enquiry .wpcf7 form.sent .wpcf7-response-output { border-color: var(--rodas-eq-ok); background: #f2f8f2; color: var(--rodas-eq-ok); }
.rodas-enquiry .wpcf7 form.failed .wpcf7-response-output,
.rodas-enquiry .wpcf7 form.aborted .wpcf7-response-output,
.rodas-enquiry .wpcf7 form.spam .wpcf7-response-output { border-color: var(--rodas-eq-error); background: #fdf3f2; color: var(--rodas-eq-error); }
.rodas-enquiry .wpcf7 form.invalid .wpcf7-response-output,
.rodas-enquiry .wpcf7 form.unaccepted .wpcf7-response-output { border-color: #b26a00; background: #fff8ec; color: #7a4a00; }

/* honeypot: out of sight, out of the tab order (tabindex -1, aria-hidden) */
.rodas-eq-form .rodas-eq-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- responsive ---------- */
@media (max-width: 1399px) {
	.rodas-eq-form .rodas-eq-third { grid-column: span 3; }
	.rodas-eq-form .rodas-eq-third-last { grid-column: span 6; }
}
@media (max-width: 1024px) {
	/* Introduction above the form on tablets (the 36/64 split leaves the
	   form column too narrow for its select boxes). */
	.rodas-enquiry .elementor-inner-section > .elementor-container > .elementor-column { width: 100% !important; }
	.rodas-enquiry { padding: 16px 16px 6px; }
	.rodas-enquiry .rodas-enquiry-intro > .elementor-widget-wrap.elementor-element-populated { padding: 0 0 22px; }
	.rodas-enquiry .rodas-enquiry-art { display: none; }
}
@media (max-width: 767px) {
	.rodas-enquiry { padding: 12px 12px 4px; }
	.rodas-enquiry .rodas-enquiry-title .elementor-heading-title { font-size: 23px; }
	.rodas-eq-form .rodas-eq-half,
	.rodas-eq-form .rodas-eq-third,
	.rodas-eq-form .rodas-eq-third-last { grid-column: span 6; }
	.rodas-eq-form .rodas-eq-actions { flex-direction: column-reverse; align-items: stretch; }
	.rodas-eq-form .rodas-eq-submit-wrap { display: flex; position: relative; }
	.rodas-eq-form .rodas-eq-submit-wrap .wpcf7-spinner { position: absolute; right: 14px; top: 50%; margin: -12px 0 0; }
	.rodas-eq-form input.rodas-eq-submit { width: 100%; }
	.rodas-eq-form .rodas-eq-file input[type="file"] { font-size: 14px; }
}
