/* RDP: Avada forms + popups (rdplastmould.com, redesign 2026-11-04). Loaded by inc/rdp-forms.php; behaviour in
   rdp-forms.js (inline errors, sending state, success panel, product groups). Colours = site blue #1b4d89. */

.rdp-form {
	--rdp-blue: #1b4d89;
	--rdp-blue-dark: #163f70;
	--rdp-ink: #212934;
	--rdp-muted: #5b6573;
	--rdp-line: #c9d1db;
	--rdp-err: #c62828;
	--rdp-err-bg: #fdecec;
	--rdp-ok: #1e7b45;
	--rdp-ok-bg: #eaf6ef;
	container-type: inline-size;
}

/* ---------- fields ---------- */
.rdp-form .fusion-form-field {
	margin: 0 0 16px !important;
}
.rdp-form .fusion-form-field label,
.rdp-form .fusion-form-field legend .label {
	display: block;
	margin: 0 0 6px;
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--rdp-ink) !important;
}
.rdp-form .fusion-form-label-wrapper {
	margin: 0;
}
.rdp-form abbr.fusion-form-element-required {
	margin-left: 2px;
	color: var(--rdp-err);
	text-decoration: none;
	border: 0;
	cursor: default;
}
.rdp-form .fusion-form-field input.fusion-form-input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.rdp-form .fusion-form-field textarea.fusion-form-input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	font-size: 16px;
	line-height: 1.4;
	color: var(--rdp-ink);
	background: #ffffff;
	border: 1px solid var(--rdp-line);
	border-radius: 8px;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rdp-form .fusion-form-field textarea.fusion-form-input {
	height: auto;
	min-height: 112px;
	padding: 12px 14px;
	resize: vertical;
}
.rdp-form .fusion-form-input::placeholder {
	color: #8a94a3;
	opacity: 1;
}
.rdp-form .fusion-form-field input.fusion-form-input:hover,
.rdp-form .fusion-form-field textarea.fusion-form-input:hover {
	border-color: #9aa8b8;
}
.rdp-form .fusion-form-field input.fusion-form-input:focus,
.rdp-form .fusion-form-field textarea.fusion-form-input:focus {
	border-color: var(--rdp-blue);
	box-shadow: 0 0 0 3px rgba(27, 77, 137, 0.18);
	outline: none;
}

/* hint under a field (added by rdp-forms.js); hidden while the field shows an error */
.rdp-invalid .rdp-hint {
	display: none;
}
.rdp-hint {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--rdp-muted);
}

/* ---------- inline errors ---------- */
.rdp-form .fusion-form-field.rdp-invalid input.fusion-form-input,
.rdp-form .fusion-form-field.rdp-invalid textarea.fusion-form-input,
.rdp-form .fusion-form-field.rdp-invalid .fusion-form-upload-field-container > .fusion-form-upload-field {
	border-color: var(--rdp-err) !important;
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}
.rdp-ferr {
	display: flex;
	gap: 6px;
	align-items: flex-start;
	margin: 6px 0 0;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--rdp-err);
}
.rdp-ferr::before {
	content: "!";
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	font-size: 11px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
	color: #ffffff;
	background: var(--rdp-err);
	border-radius: 50%;
}
.rdp-form-errors {
	margin: 0 0 14px;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--rdp-err);
	background: var(--rdp-err-bg);
	border-left: 4px solid var(--rdp-err);
	border-radius: 6px;
}

/* ---------- submit ---------- */
.rdp-form .fusion-form-submit-field {
	margin-top: 4px !important;
}
.rdp-form .form-form-submit.fusion-button {
	width: 100%;
	min-height: 50px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.2px;
	border-radius: 8px;
}
.rdp-form .form-form-submit.fusion-form-working,
.rdp-form .form-form-submit.rdp-sending {
	pointer-events: none;
	opacity: 0.85;
}
.rdp-form .form-form-submit.rdp-sending .fusion-button-text,
.rdp-form .form-form-submit.fusion-form-working .fusion-button-text {
	display: inline-flex;
	gap: 10px;
	align-items: center;
}
.rdp-form .form-form-submit.rdp-sending .fusion-button-text::before,
.rdp-form .form-form-submit.fusion-form-working:not(.rdp-sending) .fusion-button-text::before {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: rdp-spin 0.7s linear infinite;
}
@keyframes rdp-spin {
	to {
		transform: rotate(360deg);
	}
}
.rdp-form-note {
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--rdp-muted);
	text-align: center;
}
.rdp-form-note a {
	color: inherit;
	text-decoration: underline;
}

/* ---------- Avada notices (server error; success is replaced by the panel) ---------- */
.rdp-form .fusion-form-response {
	margin: 12px 0 0 !important;
	padding: 12px 14px !important;
	font-size: 14.5px;
	line-height: 1.45;
	text-align: left !important;
	border-radius: 8px !important;
	border-width: 0 0 0 4px !important;
}
.rdp-form .fusion-form-response-error {
	color: var(--rdp-ink) !important;
	background: var(--rdp-err-bg) !important;
	border-color: var(--rdp-err) !important;
}
.rdp-form .fusion-form-response-error a {
	font-weight: 600;
	color: var(--rdp-err) !important;
}
.rdp-form .fusion-form-response-success {
	color: var(--rdp-ink) !important;
	background: var(--rdp-ok-bg) !important;
	border-color: var(--rdp-ok) !important;
}
.rdp-done .fusion-form-response-success {
	display: none !important;
}

/* ---------- success panel ---------- */
.rdp-done .rdp-form > .fusion-builder-row,
.rdp-done .rdp-form-errors {
	display: none !important;
}
.rdp-done-panel {
	padding: 28px 22px;
	text-align: center;
	background: #ffffff;
	border: 1px solid #d7e9de;
	border-radius: 10px;
	outline: none;
}
.rdp-done-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 12px;
	color: #ffffff;
	background: var(--rdp-ok, #1e7b45);
	border-radius: 50%;
}
.rdp-done-icon svg {
	width: 28px;
	height: 28px;
}
.rdp-done-title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #212934;
}
.rdp-done-text {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.5;
	color: #3d4652;
}
.rdp-done-call {
	margin: 0 0 14px;
	font-size: 14.5px;
	color: #3d4652;
}
.rdp-done-call a {
	font-weight: 700;
	color: #1b4d89;
	white-space: nowrap;
}
.rdp-done-again {
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #1b4d89;
	background: transparent;
	border: 1px solid #1b4d89;
	border-radius: 8px;
	cursor: pointer;
}
.rdp-done-again:hover,
.rdp-done-again:focus-visible {
	color: #ffffff;
	background: #1b4d89;
}

/* ---------- product groups (Inquiry page): collapsible, options in columns ---------- */
.rdp-products-title {
	margin: 6px 0 2px;
	font-size: 16px;
	font-weight: 700;
	color: #212934;
}
.rdp-group-title {
	margin: 0;
}
.rdp-group-toggle {
	display: flex;
	gap: 10px;
	align-items: center;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font-size: 15.5px;
	font-weight: 600;
	color: #1b4d89;
	text-align: left;
	background: #f3f6fa;
	border: 1px solid #dbe2ea;
	border-radius: 8px;
	cursor: pointer;
}
.rdp-group-toggle::after {
	content: "";
	width: 9px;
	height: 9px;
	margin-left: auto;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 0.2s ease;
}
.rdp-group-toggle[aria-expanded="true"]::after {
	transform: rotate(-135deg) translate(-2px, -2px);
}
.rdp-group-count {
	font-size: 13px;
	font-weight: 600;
	color: #ffffff;
	background: #1b4d89;
	border-radius: 10px;
	padding: 1px 8px;
}
.rdp-group-count:empty {
	display: none;
}
.rdp-group.rdp-group-closed .rdp-checks {
	display: none;
}
.rdp-group .rdp-checks {
	margin: 10px 0 6px !important;
	padding: 0 4px;
}
.rdp-group-single .rdp-checks legend {
	display: none;
}
.rdp-checks legend .label {
	margin-bottom: 6px;
	color: #3d4652 !important;
}
.rdp-checks .fusion-form-checkbox {
	align-items: center;
	gap: 8px;
}
.rdp-checks .fusion-form-checkbox input[type="checkbox"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #1b4d89;
}
.rdp-checks .fusion-form-checkbox label {
	margin: 0 !important;
	padding: 5px 0;
	font-size: 14.5px !important;
	font-weight: 400 !important;
}
@media (min-width: 600px) {
	.rdp-checks fieldset {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 16px;
	}
}
@media (min-width: 1024px) {
	.rdp-checks fieldset {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- CV upload (Career): Avada's drop zone; an invisible "Choose File" link lies over the whole box, so a
   click anywhere opens the file chooser ---------- */
.rdp-form .fusion-form-upload-field-container > .fusion-form-upload-field {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
	min-height: 76px !important;
	height: auto !important;
	padding: 14px 16px !important;
	font-size: 14.5px;
	line-height: 1.4;
	text-align: center;
	color: #3d4652;
	background: #f8fafc;
	border: 1.5px dashed #9aa8b8;
	border-radius: 8px;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.rdp-form .fusion-form-upload-field-container > .fusion-form-upload-field::before {
	content: "";
	flex: none;
	width: 22px;
	height: 22px;
	background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b4d89' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4M7 9l5-5 5 5'/%3E%3Cpath d='M4 16v3a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-3'/%3E%3C/svg%3E");
}
.rdp-form .fusion-form-upload-field-container:hover > .fusion-form-upload-field,
.rdp-form .fusion-form-upload-field-container:focus-within > .fusion-form-upload-field {
	background: #f1f5fa;
	border-color: #1b4d89;
}
.rdp-form .fusion-form-upload-field-container:focus-within > .fusion-form-upload-field {
	box-shadow: 0 0 0 3px rgba(27, 77, 137, 0.18);
}
.rdp-form .fusion-form-upload-field-container .awb-uploads-preview {
	flex-basis: 100%;
	margin-top: 0 !important;
}

/* ---------- narrow places (home slide-in, sidebars, popups on phones): one field per row ---------- */
@container (max-width: 460px) {
	.rdp-form .fusion-layout-column.fusion_builder_column_1_2,
	.rdp-form .fusion-layout-column.fusion_builder_column_1_3 {
		width: 100% !important;
		flex-basis: 100% !important;
	}
}

/* ---------- popups ---------- */
.rdp-oc .awb-off-canvas-inner {
	padding: 26px 26px 22px;
}
.rdp-oc-title {
	margin: 0 0 4px;
	padding-right: 32px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #1b4d89;
}
.rdp-oc-sub {
	margin: 0 0 16px;
	font-size: 14.5px;
	line-height: 1.5;
	color: #5b6573;
}
.rdp-oc-call {
	margin: -8px 0 16px;
	font-size: 18px;
	font-weight: 700;
}
.rdp-oc-call a {
	color: #1b4d89;
}
.rdp-oc-open[role="button"] {
	cursor: pointer;
}
@media (max-width: 767px) {
	.rdp-oc .awb-off-canvas-inner {
		padding: 20px 18px 18px;
	}
	.rdp-oc-title {
		font-size: 20px;
	}
}

/* ---------- forms on the dark footer (Avada footer layout = .fusion-footer-widget-area) ---------- */
.fusion-footer-widget-area .rdp-form .fusion-form-field label {
	color: #ffffff !important;
}
.fusion-footer-widget-area .rdp-form abbr.fusion-form-element-required {
	color: #ffd2d2;
}
.fusion-footer-widget-area .rdp-form .fusion-form-field input.fusion-form-input:not([type="checkbox"]) {
	border-color: transparent;
}
.fusion-footer-widget-area .rdp-form .fusion-form-field input.fusion-form-input:focus {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}
.fusion-footer-widget-area .rdp-form .form-form-submit.fusion-button {
	background: #ffffff !important;
	color: #1b4d89 !important;
	--button_accent_color: #1b4d89;
	--button_accent_hover_color: #1b4d89;
}
.fusion-footer-widget-area .rdp-form .form-form-submit.fusion-button:hover,
.fusion-footer-widget-area .rdp-form .form-form-submit.fusion-button:focus {
	background: #e8eef6 !important;
}
.fusion-footer-widget-area .rdp-form .form-form-submit .fusion-button-text {
	color: #1b4d89 !important;
}
.fusion-footer-widget-area .rdp-form .form-form-submit.rdp-sending .fusion-button-text::before {
	border-color: rgba(27, 77, 137, 0.3);
	border-top-color: #1b4d89;
}
.fusion-footer-widget-area .rdp-ferr {
	color: #ffd2d2;
}
.fusion-footer-widget-area .rdp-form-note,
.fusion-footer-widget-area .rdp-hint {
	color: rgba(255, 255, 255, 0.8);
}

/* Career page: the form sits on an illustration -> white card for readability. */
#main .fusion-form-8451 {
	padding: 24px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 6px 24px rgba(23, 43, 77, 0.12);
}
@media (max-width: 767px) {
	/* phones: the illustration sits above the form and the page box already frames it */
	#main .fusion-form-8451 {
		padding: 0;
		background: transparent;
		box-shadow: none;
	}
}

/* Home slide-in "Get more info!" panel (.dsu-form, fixed): the form part scrolls inside the panel so the top
   fields stay on screen (the panel itself must not scroll: that would clip the "Enquire Now" tab). */
.dsu-form .contact_fild {
	max-height: calc(100vh - 290px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 4px 14px 14px;
}
@media (max-height: 640px) {
	.dsu-form .contact_fild {
		max-height: calc(100vh - 200px);
	}
}

/* Contact page box was fixed at 467 px for the old Quform form. */
.contact-info-form {
	height: auto !important;
}
