/* Contact Form - public styles */

.cfm-section {
	--cfm-pad-top: var(--cfm-pad-top-set, 40px);
	--cfm-pad-bot: var(--cfm-pad-bot-set, 80px);
	--cfm-card-pad-x: var(--cfm-card-pad-x-set, 59px);
	--cfm-card-pad-y: var(--cfm-card-pad-y-set, 23px);
	--cfm-card-radius: var(--cfm-card-radius-set, 40px);
	--cfm-heading-fs: var(--cfm-heading-fs-set, 40px);
	--cfm-sub-fs: var(--cfm-sub-fs-set, 20px);
	--cfm-form-gap: var(--cfm-form-gap-set, 46px);
	--cfm-col-gap: var(--cfm-col-gap-set, 20px);
	--cfm-row-gap: var(--cfm-row-gap-set, 20px);
	--cfm-field-h: var(--cfm-field-h-set, 50px);
	--cfm-area-h: var(--cfm-area-h-set, 174px);
	--cfm-btn-gap: var(--cfm-btn-gap-set, 48px);
	--cfm-btn-w: var(--cfm-btn-w-set, 144px);

	box-sizing: border-box;
	width: 100%;
	padding-top: 40px !important;
	padding-bottom: var(--cfm-pad-bot);
	background: var(--cfm-section-bg, transparent);
}

.cfm-section *,
.cfm-section *::before,
.cfm-section *::after {
	box-sizing: border-box;
}

.cfm-container {
	width: 100%;
	max-width: var(--cfm-content, 1200px);
	margin: 0 auto;
}

/* panel */
.cfm-panel {
	padding: var(--cfm-card-pad-y) var(--cfm-card-pad-x);
	background: var(--cfm-card-bg, #FFFFFF);
	border-radius: var(--cfm-card-radius);
	box-shadow: var(--cfm-shadow, 0 0 25px 1px rgba(0, 0, 0, 0.05));
}

/* header */
.cfm-head {
	text-align: center;
}

.cfm-section .cfm-heading {
	font-family: 'Anybody', sans-serif;
	font-weight: 700;
	font-size: var(--cfm-heading-fs);
	line-height: 1.025;
	text-transform: var(--cfm-heading-tt, uppercase);
	color: var(--cfm-heading, #333333);
	letter-spacing: 0;
	margin: 0;
	padding: 0;
}

.cfm-section .cfm-subheading {
	font-family: 'Google Sans', sans-serif;
	font-weight: 400;
	font-size: var(--cfm-sub-fs);
	line-height: 1.25;
	color: var(--cfm-sub, #9F9F9F);
	margin: var(--cfm-head-gap, 10px) 0 0 0;
	padding: 0;
	max-width: 705px;
	margin-left: auto;
	margin-right: auto;
}

/* form */
.cfm-form {
	margin-top: var(--cfm-form-gap);
}

.cfm-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: var(--cfm-col-gap);
	row-gap: var(--cfm-row-gap);
}

.cfm-field--half {
	grid-column: span 1;
}

.cfm-field--country {
	position: relative;
	z-index: 1;
}

.cfm-field--country.is-open {
	z-index: 60;
}

.cfm-field--full {
	grid-column: 1 / -1;
}

/* label */
.cfm-section .cfm-label {
	display: block;
	font-family: 'Google Sans', sans-serif;
	font-weight: 500;
	font-size: var(--cfm-label-fs, 16px);
	line-height: 1.25;
	color: var(--cfm-label, #333333);
	margin: 0 0 var(--cfm-label-gap, 7px) 0;
	padding: 0;
}

.cfm-req {
	color: var(--cfm-req, #FF3B30);
	margin-left: 0;
}

/* control */
.cfm-control {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--cfm-field-h);
	padding: 0 var(--cfm-field-pad-x, 18px);
	background: var(--cfm-field-bg, #FAFAFA);
	border-radius: var(--cfm-field-radius, 52px);
	box-shadow: inset 0 0 0 1px var(--cfm-field-border, transparent);
	transition: box-shadow 0.15s ease;
}

.cfm-control:focus-within {
	box-shadow: inset 0 0 0 1px var(--cfm-field-focus, #2663EB);
}

.cfm-field--invalid .cfm-control {
	box-shadow: inset 0 0 0 1px var(--cfm-err, #C62828);
}

.cfm-field-icon {
	display: block;
	flex: 0 0 auto;
	width: var(--cfm-icon, 24px);
	height: var(--cfm-icon, 24px);
	margin-right: var(--cfm-icon-gap, 12px);
	color: var(--cfm-icon-color, #333333);
	line-height: 0;
}

.cfm-field-icon svg,
.cfm-chevron svg,
.cfm-status-icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* input */
.cfm-section .cfm-input {
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
	height: calc(var(--cfm-field-h) - 2px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	outline: none;
	font-family: 'Google Sans', sans-serif;
	font-weight: 400;
	font-size: var(--cfm-input-fs, 14px);
	line-height: 1.286;
	color: var(--cfm-input, #333333);
	-webkit-appearance: none;
	appearance: none;
}

.cfm-section .cfm-input:focus {
	outline: none;
	box-shadow: none;
	background: none;
}

.cfm-section .cfm-input::placeholder {
	color: var(--cfm-ph, #778AA9);
	opacity: 1;
}

.cfm-section .cfm-input:-webkit-autofill {
	-webkit-text-fill-color: var(--cfm-input, #333333);
	-webkit-box-shadow: inset 0 0 0 100px var(--cfm-field-bg, #FAFAFA);
	box-shadow: inset 0 0 0 100px var(--cfm-field-bg, #FAFAFA);
}

/* select */
.cfm-section .cfm-select {
	padding-right: calc(var(--cfm-icon, 24px) + var(--cfm-icon-gap, 12px));
	cursor: pointer;
	background-image: none;
}

.cfm-section .cfm-select.is-empty {
	color: var(--cfm-ph, #778AA9);
}

.cfm-section .cfm-select option {
	color: #333333;
}

.cfm-chevron {
	position: absolute;
	top: 50%;
	right: var(--cfm-field-pad-x, 18px);
	width: var(--cfm-icon, 24px);
	height: var(--cfm-icon, 24px);
	margin-top: calc(var(--cfm-icon, 24px) / -2);
	color: var(--cfm-icon-color, #333333);
	pointer-events: none;
	line-height: 0;
}

/* the built dropdown */
.cfm-control--combo .cfm-select {
	display: none;
}

.cfm-section .cfm-combo {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	height: calc(var(--cfm-field-h) - 2px);
	margin: 0;
	padding: 0 calc(var(--cfm-icon, 24px) + var(--cfm-icon-gap, 12px)) 0 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: 'Google Sans', sans-serif;
	font-weight: 400;
	font-size: var(--cfm-input-fs, 14px);
	line-height: 1.286;
	color: var(--cfm-input, #333333);
	text-align: left;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.cfm-section .cfm-combo:focus,
.cfm-section .cfm-combo:focus-visible {
	outline: none;
	box-shadow: none;
	background: none;
}

.cfm-combo-value {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.cfm-combo.is-empty .cfm-combo-value {
	color: var(--cfm-ph, #778AA9);
}

.cfm-control--combo .cfm-chevron {
	transition: transform 0.18s ease;
}

.cfm-control--combo.is-open .cfm-chevron {
	transform: rotate(180deg);
}

/* the panel */
.cfm-dd {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 60;
	display: none;
	flex-direction: column;
	overflow: hidden;
	background: var(--cfm-dd-bg, #FFFFFF);
	border: 1px solid var(--cfm-dd-border, #EDEFF3);
	border-radius: var(--cfm-dd-radius, 22px);
	box-shadow: var(--cfm-dd-shadow, 0 18px 44px rgba(17, 24, 39, 0.14));
}

.cfm-control--combo.is-open .cfm-dd {
	display: flex;
}

.cfm-dd--up {
	top: auto;
	bottom: calc(100% + 8px);
}

.cfm-dd-search {
	flex: 0 0 auto;
	padding: 12px 14px;
	border-bottom: 1px solid var(--cfm-dd-border, #EDEFF3);
}

.cfm-section .cfm-dd-input {
	display: block;
	width: 100%;
	height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--cfm-dd-border, #EDEFF3);
	border-radius: 40px;
	background: var(--cfm-field-bg, #FAFAFA);
	box-shadow: none;
	outline: none;
	font-family: 'Google Sans', sans-serif;
	font-weight: 400;
	font-size: var(--cfm-input-fs, 14px);
	color: var(--cfm-input, #333333);
	-webkit-appearance: none;
	appearance: none;
}

.cfm-section .cfm-dd-input:focus {
	border-color: var(--cfm-field-focus, #2663EB);
	outline: none;
	box-shadow: none;
}

.cfm-section .cfm-dd-input::placeholder {
	color: var(--cfm-ph, #778AA9);
	opacity: 1;
}

.cfm-section .cfm-dd-list {
	flex: 1 1 auto;
	max-height: var(--cfm-dd-max-h, 300px);
	margin: 0;
	padding: 6px;
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

.cfm-section .cfm-dd-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 40px;
	margin: 0;
	padding: 9px 12px;
	border-radius: 12px;
	font-family: 'Google Sans', sans-serif;
	font-weight: 400;
	font-size: var(--cfm-input-fs, 14px);
	line-height: 1.4;
	color: var(--cfm-input, #333333);
	cursor: pointer;
	list-style: none;
}

.cfm-section .cfm-dd-option.is-active {
	background: var(--cfm-dd-hover-bg, #F4F6FB);
}

.cfm-section .cfm-dd-option[aria-selected="true"] {
	background: var(--cfm-dd-sel-bg, #EEF3FE);
	color: var(--cfm-dd-sel, #2663EB);
	font-weight: 500;
}

.cfm-section .cfm-dd-option[aria-selected="true"]::after {
	content: "";
	flex: 0 0 auto;
	width: 6px;
	height: 11px;
	margin-right: 3px;
	border: solid var(--cfm-dd-sel, #2663EB);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg) translateY(-2px);
}

.cfm-section .cfm-dd-empty {
	margin: 0;
	padding: 18px 14px 22px;
	font-family: 'Google Sans', sans-serif;
	font-weight: 400;
	font-size: var(--cfm-input-fs, 14px);
	color: var(--cfm-ph, #778AA9);
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.cfm-control--combo .cfm-chevron {
		transition: none;
	}
}

/* textarea */
.cfm-field--area .cfm-control {
	align-items: flex-start;
	min-height: var(--cfm-area-h);
	padding: var(--cfm-area-pad-y, 15px) var(--cfm-field-pad-x, 18px);
	border-radius: var(--cfm-area-radius, 22px);
}

.cfm-field--area .cfm-field-icon {
	margin-top: 0;
}

.cfm-section textarea.cfm-input {
	height: calc(var(--cfm-area-h) - (var(--cfm-area-pad-y, 15px) * 2));
	min-height: 0;
	resize: none;
	display: block;
}

/* error */
.cfm-section .cfm-error {
	display: none;
	font-family: 'Google Sans', sans-serif;
	font-weight: 400;
	font-size: 13px;
	line-height: 1.4;
	color: var(--cfm-err, #C62828);
	margin: 6px 0 0 var(--cfm-field-pad-x, 18px);
	padding: 0;
}

.cfm-section .cfm-error:not(:empty) {
	display: block;
}

/* button */
/* The character counter */
.cfm-section .cfm-count {
	margin: 4px 2px 0;
	text-align: right;
	font-size: 12px;
	line-height: 1.4;
	color: var(--cfm-ph, #778AA9);
	font-variant-numeric: tabular-nums;
}
.cfm-section .cfm-count:empty { display: none; }
.cfm-section .cfm-count.is-near { color: var(--cfm-field-focus, #2663EB); }

.cfm-section .cfm-field--invalid .cfm-count { display: none; }

/* reCAPTCHA */
.cfm-grid {
	position: relative;
	z-index: 1;
}

.cfm-captcha {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-start;
	margin-top: var(--cfm-row-gap);
	margin-bottom: 0;
	padding: 12px 0;
	position: relative;
	z-index: 10;
}
.cfm-captcha { min-height: 78px; }

@media (max-width: 360px) {
	.cfm-captcha {
		transform: scale(0.86);
		transform-origin: left top;
	}
}

.cfm-section .cfm-captcha-error {
	grid-column: 1 / -1;
	display: none;
	font-family: 'Google Sans', sans-serif;
	font-weight: 400;
	font-size: 15px;
	line-height: 0;
	color: var(--cfm-err, #C62828);
	/* margin: 6px 0 0 var(--cfm-field-pad-x, 18px); */
	padding: 0;
}

.cfm-section .cfm-captcha-error:not(:empty) {
	display: block;
}

.cfm-section .cfm-captcha-noscript {
	margin-top: var(--cfm-btn-gap);
	text-align: center;
	font-size: 14px;
	line-height: 1.5;
	color: var(--cfm-err, #C62828);
}

.cfm-section .cfm-submit.is-waiting,
.cfm-section .cfm-submit:disabled {
	opacity: .55;
	cursor: not-allowed;
}
.cfm-section .cfm-submit.is-sending { cursor: progress; }

.cfm-actions {
	display: flex;
	justify-content: center;
	margin-top: var(--cfm-btn-gap);
}

.cfm-section .cfm-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: var(--cfm-btn-w);
	min-width: var(--cfm-btn-w);
	height: var(--cfm-btn-h, 46px);
	padding: 0 16px;
	border: 0;
	border-radius: var(--cfm-btn-radius, 13px);
	background: linear-gradient(90deg, var(--cfm-btn-from, #2663EB) 0%, var(--cfm-btn-to, #773DED) 100%);
	font-family: 'Google Sans', sans-serif;
	font-weight: 600;
	font-size: var(--cfm-btn-fs, 18px);
	line-height: 1.278;
	text-transform: capitalize;
	color: var(--cfm-btn-color, #FFFFFF);
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.cfm-section .cfm-submit:hover {
	filter: brightness(1.06);
}

.cfm-section .cfm-submit:active {
	transform: translateY(1px);
}

.cfm-section .cfm-submit:focus-visible {
	outline: 2px solid var(--cfm-btn-from, #2663EB);
	outline-offset: 3px;
}

.cfm-section .cfm-submit[disabled] {
	cursor: default;
	filter: none;
	opacity: 0.75;
}

.cfm-spinner {
	display: none;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: cfm-spin 0.7s linear infinite;
}

.cfm-submit.is-sending .cfm-spinner {
	display: block;
}

@keyframes cfm-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cfm-spinner {
		animation-duration: 3s;
	}

	.cfm-section .cfm-submit,
	.cfm-control {
		transition: none;
	}
}

/* status */
.cfm-status {
	display: none;
	align-items: flex-start;
	gap: 8px;
	margin: 18px auto 0;
	max-width: 640px;
	padding: 12px 16px;
	border-radius: 12px;
	font-family: 'Google Sans', sans-serif;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
}

.cfm-status.is-ok,
.cfm-status.is-err {
	display: flex;
}

.cfm-status.is-ok {
	background: var(--cfm-ok-bg, #EAF7EE);
	color: var(--cfm-ok, #1B7F3B);
}

.cfm-status.is-err {
	background: var(--cfm-err-bg, #FDECEC);
	color: var(--cfm-err, #C62828);
}

.cfm-status-icon {
	display: none;
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	line-height: 0;
}

.cfm-status.is-ok .cfm-status-icon--ok,
.cfm-status.is-err .cfm-status-icon--err {
	display: block;
}

/* honeypot */
.cfm-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* responsive */
@media (max-width: 1100px) {
	.cfm-section {
		--cfm-pad-top: 64px;
		--cfm-pad-bot: 64px;
		--cfm-card-pad-x: 40px;
		--cfm-card-pad-y: 32px;
		--cfm-heading-fs: 34px;
		--cfm-sub-fs: 18px;
		--cfm-form-gap: 36px;
		--cfm-btn-gap: 38px;
	}
}

@media (max-width: 780px) {
	.cfm-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.cfm-field--full {
		grid-column: 1 / -1;
	}

	.cfm-section {
		--cfm-pad-top: 52px;
		--cfm-pad-bot: 52px;
		--cfm-card-pad-x: 32px;
		--cfm-card-pad-y: 30px;
		--cfm-card-radius: 28px;
		--cfm-heading-fs: 30px;
		--cfm-sub-fs: 17px;
		--cfm-form-gap: 30px;
		--cfm-row-gap: 18px;
		--cfm-btn-gap: 32px;
		--cfm-area-h: 150px;
	}
}

@media (max-width: 520px) {
	.cfm-section {
		--cfm-pad-top: 40px;
		--cfm-pad-bot: 40px;
		--cfm-card-pad-x: 20px;
		--cfm-card-pad-y: 24px;
		--cfm-card-radius: 22px;
		--cfm-heading-fs: 26px;
		--cfm-sub-fs: 16px;
		--cfm-form-gap: 26px;
		--cfm-btn-gap: 28px;
		--cfm-field-h: 48px;
		--cfm-area-h: 140px;
		--cfm-btn-w: 100%;
	}

	.cfm-status {
		font-size: 14px;
	}
}
