/**
 * Find Trusted Help (Customer Founding Member) — CF7 form styles.
 * Scoped to this page form only. Editable fields live in Contact Form 7.
 */

.rc-fth-page {
	position: relative;
	overflow: hidden;
	background-color: #f7f5ef;
	background-image:
		url("../images/founding/ellipse-lg.svg"),
		url("../images/founding/ellipse-md.svg"),
		url("../images/founding/ellipse-sm.svg"),
		url("../images/founding/ellipse-lg.svg"),
		url("../images/founding/ellipse-md.svg"),
		url("../images/founding/ellipse-sm.svg");
	background-repeat: no-repeat;
	background-size: 520px 520px, 300px 300px, 360px 360px, 520px 520px, 300px 300px, 360px 360px;
	background-position:
		-220px -220px,
		-120px -120px,
		calc(100% + 80px) -180px,
		calc(100% + 40px) 60%,
		calc(100% + 100px) 70%,
		-180px calc(100% - 40px);
}

.rc-fth-inner,
.rc-fth-shortcode {
	position: relative;
	z-index: 1;
	width: 100%;
}

.rc-fth {
	box-sizing: border-box;
	width: 100%;
	max-width: 800px;
	margin: 0 auto;
	padding: 32px;
	background: #ffffff;
	border: 1px solid #e3dbdb;
	border-radius: 32px;
	box-shadow: 0 12px 12px rgba(0, 0, 0, 0.03);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
}

.rc-fth *,
.rc-fth *::before,
.rc-fth *::after {
	box-sizing: border-box;
}

.rc-fth__step {
	margin: 0;
	font-family: "Montaga", Georgia, serif;
	font-size: 23px;
	font-weight: 400;
	line-height: 1.2;
	color: #1a4b1a;
	text-align: center;
}

.rc-fth__block {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rc-fth__block + .rc-fth__block {
	gap: 12px;
}

.rc-fth__question {
	margin: 0;
	font-family: "Montaga", Georgia, serif;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.3;
	color: #1e1e1e;
}

.rc-fth__cats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	width: 100%;
}

.rc-fth__cat {
	background: #f7f5ef;
	border: 1px solid #e3dbdb;
	border-radius: 12px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.rc-fth__cat-title {
	margin: 0;
	font-family: "Montaga", Georgia, serif;
	font-size: 16px;
	font-weight: 400;
	color: #1a4b1a;
}

.rc-fth__cat .wpcf7-checkbox,
.rc-fth__cat .wpcf7-form-control-wrap {
	display: flex;
	flex-direction: column;
	gap: 4px;
	width: 100%;
}

.rc-fth__cat .wpcf7-list-item {
	margin: 0;
	display: flex;
	width: 100%;
}

.rc-fth__cat .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 4px 0;
	cursor: pointer;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: #4a4a4a;
}

.rc-fth__cat .wpcf7-list-item input {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	margin: 0;
	flex: 0 0 18px;
	border: none;
	border-radius: 0;
	opacity: 0.5;
	background-color: transparent;
	background-image: url("../images/founding/radio.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
	cursor: pointer;
}

.rc-fth__cat .wpcf7-list-item input:checked {
	opacity: 1;
	background-color: transparent;
	background-image: url("../images/founding/radio-selected.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 18px 18px;
}

.rc-fth__cat .wpcf7-list-item input:checked + span {
	font-weight: 500;
	color: #1e1e1e;
}

.rc-fth__other-input,
.rc-fth__cat--other input[type="text"],
.rc-fth__cat--other textarea.rc-fth__other-input,
.rc-fth__cat--other textarea.wpcf7-textarea {
	display: block;
	width: 100%;
	min-height: 50px;
	height: 50px;
	margin-top: 4px;
	padding: 8px 12px;
	border: 1px solid #e3dbdb;
	border-radius: 8px;
	background: #fff;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 17px;
	color: #4a4a4a;
	resize: none;
	overflow: hidden;
	box-sizing: border-box;
}

.rc-fth__cat--other textarea.rc-fth__other-input::placeholder,
.rc-fth__cat--other textarea.wpcf7-textarea::placeholder,
.rc-fth__other-input::placeholder {
	color: #4a4a4a;
	opacity: 1;
}

.rc-fth__cat--other textarea.rc-fth__other-input:disabled,
.rc-fth__cat--other textarea.wpcf7-textarea:disabled,
.rc-fth__other-input:disabled,
.rc-fth__cat--other textarea.rc-fth__other-input.is-disabled,
.rc-fth__cat--other textarea.wpcf7-textarea.is-disabled {
	background: #f0eeea;
	color: #9a9a9a;
	cursor: not-allowed;
	opacity: 1;
}

.rc-fth__cat--other textarea.rc-fth__other-input:disabled::placeholder,
.rc-fth__cat--other textarea.wpcf7-textarea:disabled::placeholder,
.rc-fth__other-input:disabled::placeholder {
	color: #9a9a9a;
	opacity: 1;
}

.rc-fth__chips .wpcf7-radio,
.rc-fth__chips .wpcf7-checkbox,
.rc-fth__chips .wpcf7-form-control-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
}

.rc-fth__chips > p,
.rc-fth__block > p:has(.wpcf7-form-control-wrap) {
	margin: 0;
	padding: 0;
	width: 100%;
	background: transparent;
}

.rc-fth__chips .wpcf7-list-item {
	margin: 0;
	position: relative;
}

.rc-fth__chips .wpcf7-list-item label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border: 1.5px solid #e3dbdb;
	border-radius: 999px;
	background-color: #ffffff;
	background-image: none;
	box-shadow: none;
	cursor: pointer;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: #4a4a4a;
	line-height: 1;
	white-space: nowrap;
}

.rc-fth__chips .wpcf7-list-item-label {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	color: inherit;
	font: inherit;
}

.rc-fth__chips .wpcf7-list-item input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	pointer-events: none;
	appearance: none;
	-webkit-appearance: none;
}

.rc-fth__chips .wpcf7-list-item label:has(input:checked) {
	border-color: #1a4b1a;
	background-color: rgba(26, 75, 26, 0.08);
	background-image: none;
	color: #1a4b1a;
}

.rc-fth__actions {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 16px;
	width: 100%;
}

.rc-fth__actions > p {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
}

.rc-fth__actions br {
	display: none !important;
}

.rc-fth__actions .wpcf7-spinner {
	display: none !important;
}

.rc-fth__btn,
.rc-fth__actions a.rc-fth__btn--back,
.rc-fth__actions input.wpcf7-submit {
	flex: 1 1 0;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 0;
	width: auto !important;
	height: 48px !important;
	min-height: 48px !important;
	padding: 0 20px !important;
	border-radius: 999px !important;
	font-family: "Montserrat", sans-serif !important;
	font-size: 14px !important;
	line-height: 1 !important;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none !important;
	outline: none !important;
	background-image: none !important;
	-webkit-appearance: none;
	appearance: none;
}

.rc-fth__actions a.rc-fth__btn--back::before,
.rc-fth__actions a.rc-fth__btn--back::after,
.rc-fth__chips .wpcf7-list-item label::before,
.rc-fth__chips .wpcf7-list-item label::after {
	content: none !important;
	display: none !important;
}

.rc-fth__btn--back,
.rc-fth__actions a.rc-fth__btn--back {
	background-color: #ffffff !important;
	border: 1.5px solid #1a4b1a !important;
	color: #1a4b1a !important;
	font-weight: 600 !important;
}

.rc-fth__btn--submit,
.rc-fth__actions input.wpcf7-submit {
	background-color: #1a4b1a !important;
	border: 1.5px solid #1a4b1a !important;
	color: #ffffff !important;
	font-weight: 700 !important;
}

.rc-fth__actions input.wpcf7-submit:hover,
.rc-fth__actions a.rc-fth__btn--back:hover {
	opacity: 0.92;
}

.rc-fth .wpcf7-response-output {
	margin: 0;
	width: 100%;
}

/* Provider Details — field labels, languages tags, cream inputs */
.rc-fth__label {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: #1e1e1e;
}

.rc-fth__langs {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.rc-fth__langs-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	position: relative;
}

.rc-fth__langs-dd-wrap {
	position: relative;
	flex-shrink: 0;
}

.rc-fth__langs-add {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid #1a4b1a;
	border-radius: 999px;
	background: #ffffff;
	color: #1a4b1a;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}

.rc-fth__langs-add img {
	display: block;
	width: 14px;
	height: 14px;
}

.rc-fth__langs-dd {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 40;
	width: min(320px, 82vw);
	max-height: 280px;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e3dbdb;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	overflow: hidden;
}

.rc-fth__langs-dd[hidden] {
	display: none !important;
}

.rc-fth__langs-dd-search {
	flex: 0 0 auto;
	padding: 10px;
	border-bottom: 1px solid #e3dbdb;
	background: #f7f5ef;
}

.rc-fth__langs-dd-input {
	width: 100%;
	height: 36px;
	padding: 0 12px;
	border: 1px solid #e3dbdb;
	border-radius: 8px;
	background: #ffffff;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	color: #1e1e1e;
	outline: none;
}

.rc-fth__langs-dd-input:focus {
	border-color: #1a4b1a;
}

.rc-fth__langs-dd-list {
	list-style: none;
	margin: 0;
	padding: 6px 0;
	overflow-y: auto;
	flex: 1 1 auto;
	max-height: 220px;
}

.rc-fth__langs-dd-item {
	padding: 10px 14px;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	color: #1e1e1e;
	cursor: pointer;
	line-height: 1.2;
}

.rc-fth__langs-dd-item:hover {
	background: rgba(26, 75, 26, 0.08);
	color: #1a4b1a;
}

.rc-fth__langs-dd-item.is-selected {
	color: #8a8a8a;
	cursor: default;
	background: transparent;
}

.rc-fth__langs-dd-empty {
	margin: 0;
	padding: 16px 14px;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	color: #4a4a4a;
	text-align: center;
}

.rc-fth__langs-box {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px;
	background: #f7f5ef;
	border: 1.25px solid #e3dbdb;
	border-radius: 12px;
	min-height: 48px;
}

.rc-fth__lang-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.rc-fth__lang-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 5px 10px;
	background: #ffffff;
	border: 1px solid #e3dbdb;
	border-radius: 50px;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 400;
	color: #1e1e1e;
	line-height: 1;
}

.rc-fth__lang-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	line-height: 0;
}

.rc-fth__lang-remove img {
	display: block;
	width: 16px;
	height: 16px;
}

.rc-fth__lang-entry {
	display: none !important;
}

.rc-fth__langs .wpcf7-form-control-wrap[data-name="languages"],
.rc-fth__langs input[name="languages"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

.rc-fth__field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 100%;
	padding: 10px 15px;
	background: #f7f5ef;
	border: 1.25px solid #e3dbdb;
	border-radius: 12px;
}

.rc-fth__field .wpcf7-form-control-wrap {
	width: 100%;
}

.rc-fth__field-input,
.rc-fth__field input.wpcf7-text,
.rc-fth__field input.wpcf7-number,
.rc-fth__field textarea.wpcf7-textarea {
	width: 100% !important;
	min-height: 30px;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: "Montserrat", sans-serif !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	color: #1e1e1e !important;
	outline: none !important;
}

.rc-fth__field input.wpcf7-text::placeholder,
.rc-fth__field input.wpcf7-number::placeholder {
	color: #4a4a4a;
	opacity: 0.7;
}

.rc-fth__field input.wpcf7-number {
	-moz-appearance: textfield;
	appearance: textfield;
}

.rc-fth__field input.wpcf7-number::-webkit-outer-spin-button,
.rc-fth__field input.wpcf7-number::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.rc-fth__block > .rc-fth__label {
	width: 100%;
}

/* Organisation Details (Partner as Organisation) */
.rc-fth--org {
	max-width: 680px;
	padding: 40px;
	gap: 24px;
}

.rc-fth__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 16px;
	row-gap: 28px;
	width: 100%;
	align-items: start;
}

.rc-fth__field--sm {
	padding: 10px 16px;
	min-width: 0;
}

.rc-fth--org .rc-fth__field {
	position: relative;
	overflow: visible;
}

/* Step-1 prefilled identity fields (readonly — still submitted) */
.rc-fth--org .rc-fth__field.is-readonly,
.rc-fth--org .rc-fth__field:has(input[readonly]) {
	background-color: #ebe6dc;
	cursor: default;
}

.rc-fth--org .rc-fth__field input[readonly],
.rc-fth--org .rc-fth__field input.is-readonly {
	cursor: default;
	color: #4a4a4a;
	caret-color: transparent;
	user-select: text;
}

/* CF7 tip sits inside wrap — pull it below the beige field box */
.rc-fth--org .rc-fth__field .wpcf7-not-valid-tip {
	position: absolute;
	left: 0;
	top: calc(100% + 6px);
	z-index: 2;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: #b32d2e;
	white-space: nowrap;
}

.rc-fth--org .rc-fth__block .wpcf7-not-valid-tip {
	display: block;
	margin: 8px 0 0;
	padding: 0;
	border: none;
	background: transparent;
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: #b32d2e;
}

.rc-fth__field-label {
	margin: 0;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: #1e1e1e;
}

.rc-fth__chips--org .wpcf7-list-item label {
	padding: 8px 16px;
	font-size: 13px;
}

.rc-fth__chips--org .wpcf7-list-item label:has(input:checked) {
	background-color: rgba(26, 75, 26, 0.13);
}

.rc-fth__chips--org .wpcf7-radio,
.rc-fth__chips--org .wpcf7-checkbox,
.rc-fth__chips--org .wpcf7-form-control-wrap {
	gap: 8px;
}

.rc-fth__block--work {
	gap: 12px;
	padding-top: 8px;
}

.rc-fth__checklist .wpcf7-checkbox,
.rc-fth__checklist .wpcf7-form-control-wrap {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.rc-fth__checklist .wpcf7-list-item {
	margin: 0;
	display: block;
	width: 100%;
}

.rc-fth__checklist .wpcf7-list-item label {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	cursor: pointer;
	font-family: "Montserrat", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: #4a4a4a;
}

.rc-fth__checklist .wpcf7-list-item input {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	margin: 0;
	flex: 0 0 20px;
	border: none;
	border-radius: 0;
	opacity: 0.5;
	background-color: transparent;
	background-image: url("../images/founding/radio.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
	cursor: pointer;
}

.rc-fth__checklist .wpcf7-list-item input:checked {
	opacity: 1;
	background-image: url("../images/founding/radio-selected.svg");
}

.rc-fth__checklist .wpcf7-list-item-label {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	box-shadow: none !important;
	color: inherit;
	font: inherit;
}

.rc-fth--org .rc-fth__actions {
	padding-top: 8px;
}

@media (max-width: 767px) {
	.rc-fth {
		padding: 24px 16px;
		border-radius: 24px;
		gap: 24px;
	}

	.rc-fth--org {
		padding: 24px 16px;
	}

	.rc-fth__cats,
	.rc-fth__fields {
		grid-template-columns: 1fr;
	}

	.rc-fth__actions,
	.rc-fth__actions > p {
		flex-direction: column;
	}

	.rc-fth__step {
		font-size: 20px;
	}
}
