/**
 * FTC Enquiry Form
 * Headings Lora, body Manrope. Success heading 22px, section prompts 20px,
 * labels, inputs and body copy 14px.
 * Accent #c21c27 on white. Fluid width, never a fixed pixel width.
 */

.ftc-ef-root {
	width: 100%;
	max-width: 100%;
}

.ftc-ef {
	--ftc-accent: #c21c27;
	--ftc-accent-dark: #a3161f;
	--ftc-ink: #1a1a1a;
	--ftc-body: #444c54;
	--ftc-mute: #7b858e;
	--ftc-line: #dfe3e6;
	--ftc-line-strong: #c3cad0;
	--ftc-bg: #ffffff;

	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	background: var(--ftc-bg);
	border-radius: 6px;
	padding: 28px;
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: var(--ftc-body);
	box-shadow: 0 16px 40px rgba(15, 25, 35, .16);
}

.ftc-ef *,
.ftc-ef *::before,
.ftc-ef *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- headings */

.ftc-ef__heading {
	font-family: 'Lora', Georgia, serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--ftc-ink);
	margin: 0 0 6px;
}

.ftc-ef__sub {
	font-size: 14px;
	color: var(--ftc-mute);
	margin: 0 0 20px;
}

/* ---------------------------------------------------------------- progress */

.ftc-ef__progress {
	margin-bottom: 22px;
}

.ftc-ef__bar {
	display: block;
	height: 4px;
	background: var(--ftc-line);
	border-radius: 99px;
	overflow: hidden;
}

.ftc-ef__bar-fill {
	display: block;
	height: 100%;
	background: var(--ftc-accent);
	border-radius: 99px;
	transition: width .28s ease;
}

.ftc-ef__progress-label {
	font-size: 14px;
	color: var(--ftc-mute);
	margin: 9px 0 0;
}

/* ------------------------------------------------------------------ fields */

.ftc-ef__step {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ftc-ef__field {
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.ftc-ef__label {
	display: block;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ftc-ink);
}

/* Section question above a group of choices. */
.ftc-ef__prompt {
	display: block;
	font-family: 'Lora', Georgia, serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ftc-ink);
	margin-bottom: 2px;
}

.ftc-ef__input {
	width: 100%;
	max-width: 100%;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ftc-ink);
	background: #fff;
	border: 1px solid var(--ftc-line-strong);
	border-radius: 4px;
	padding: 13px 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.ftc-ef__input::placeholder {
	color: #a6aeb5;
}

.ftc-ef__input:focus {
	outline: none;
	border-color: var(--ftc-accent);
	box-shadow: 0 0 0 3px rgba(194, 28, 39, .14);
}

.ftc-ef__input:-webkit-autofill,
.ftc-ef__input:-webkit-autofill:hover,
.ftc-ef__input:-webkit-autofill:focus,
.ftc-ef__input:-webkit-autofill:active {
	-webkit-text-fill-color: var(--ftc-ink);
	-webkit-box-shadow: 0 0 0 40px #fff inset;
	box-shadow: 0 0 0 40px #fff inset;
	border: 1px solid var(--ftc-line-strong);
	caret-color: var(--ftc-ink);
	transition: background-color 5000s ease-in-out 0s;
}

.ftc-ef__input:-webkit-autofill:focus {
	border-color: var(--ftc-accent);
}

/* Placeholder colour has to be declared per vendor or browsers diverge. */
.ftc-ef__input::-webkit-input-placeholder { color: #a6aeb5; opacity: 1; }
.ftc-ef__input::-moz-placeholder { color: #a6aeb5; opacity: 1; }
.ftc-ef__input:-ms-input-placeholder { color: #a6aeb5; opacity: 1; }
.ftc-ef__input::-ms-input-placeholder { color: #a6aeb5; opacity: 1; }

.ftc-ef__textarea {
	min-height: 84px;
	resize: vertical;
}

.ftc-ef__field.has-error .ftc-ef__input {
	border-color: var(--ftc-accent);
	background: #fff8f8;
}

.ftc-ef__error {
	font-size: 14px;
	color: var(--ftc-accent);
	margin: 0;
}

/* ------------------------------------------------------------------- pills */

.ftc-ef__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ftc-ef__pill {
	flex: 1 1 auto;
	min-width: calc(50% - 4px);
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ftc-body);
	background: #fff;
	border: 1px solid var(--ftc-line-strong);
	border-radius: 4px;
	padding: 12px 14px;
	text-align: left;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.ftc-ef__pill:hover {
	border-color: var(--ftc-accent);
}

.ftc-ef__pill.is-active {
	background: var(--ftc-accent);
	border-color: var(--ftc-accent);
	color: #fff;
	font-weight: 600;
}

.ftc-ef__pill:focus-visible {
	outline: 3px solid rgba(194, 28, 39, .3);
	outline-offset: 2px;
}

/* ----------------------------------------------------------------- actions */

.ftc-ef__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
}

.ftc-ef__submit {
	flex: 1;
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	background: var(--ftc-accent);
	border: none;
	border-radius: 4px;
	padding: 16px 22px;
	cursor: pointer;
	transition: background .15s ease;
}

.ftc-ef__submit:hover:not(:disabled) {
	background: var(--ftc-accent-dark);
}

.ftc-ef__submit:disabled {
	opacity: .65;
	cursor: default;
}

.ftc-ef__back {
	font-family: 'Manrope', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--ftc-mute);
	background: none;
	border: none;
	padding: 16px 6px;
	cursor: pointer;
}

.ftc-ef__back:hover {
	color: var(--ftc-ink);
}

.ftc-ef__submit:focus-visible,
.ftc-ef__back:focus-visible {
	outline: 3px solid rgba(194, 28, 39, .35);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------- misc */

.ftc-ef__success-call a {
	color: var(--ftc-ink);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid var(--ftc-accent);
}

.ftc-ef__notice {
	font-size: 14px;
	color: var(--ftc-accent);
	background: #fdf2f3;
	border-left: 3px solid var(--ftc-accent);
	padding: 11px 14px;
	margin: 18px 0 0;
}

.ftc-ef__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none;
}

/* ----------------------------------------------------------------- success */

.ftc-ef__success {
	text-align: center;
	padding: 14px 0 6px;
}

.ftc-ef__check {
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--ftc-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ftc-ef__success-call {
	font-size: 14px;
	color: var(--ftc-mute);
	margin: 16px 0 0;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 520px) {
	.ftc-ef {
		padding: 22px 18px;
	}

	.ftc-ef__pill {
		min-width: 100%;
	}

	.ftc-ef__actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.ftc-ef__submit {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ftc-ef *,
	.ftc-ef *::before,
	.ftc-ef *::after {
		transition: none !important;
		animation: none !important;
	}
}
