/* EH Lead Form — matches the theme's .form-one inputs (procounsel). */

/* ---------- selects ---------- */
.form-one select.eh-lf-area,
.form-one select.eh-lf-sub {
	display: block;
	width: 100%;
	height: 60px;
	padding: 0 56px 0 30px;
	border: none;
	border-radius: 0;
	outline: none;
	background-color: var(--procounsel-gray2, #ededed);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c7954a' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 28px center;
	color: var(--procounsel-text, #838790);
	font-family: var(--procounsel-font, "Plus Jakarta Sans", sans-serif);
	font-size: 14px;
	font-weight: 600;
	line-height: 25px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: all 500ms ease;
}

.form-one select.eh-lf-area:focus,
.form-one select.eh-lf-sub:focus {
	color: var(--procounsel-black, #0e0b06);
	box-shadow: 0 0 0 2px var(--procounsel-base, #c7954a);
}

.form-one select.eh-lf-sub:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.form-one select optgroup {
	font-weight: 700;
	color: var(--procounsel-primary, #19223a);
}

.form-one select option {
	font-weight: 500;
	color: #1d1d1d;
}

/* ---------- themed dropdown (replaces the native option menu) ---------- */
.eh-lf-dd {
	position: relative;
}

/* The real <select> stays in the form for submitting and validation. */
.form-one select.eh-lf-native {
	position: absolute !important;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
}

.eh-lf-dd-trigger {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 60px;
	padding: 0 56px 0 30px;
	border: none;
	border-radius: 0;
	outline: none;
	background: var(--procounsel-gray2, #ededed);
	color: var(--procounsel-text, #838790);
	font-family: var(--procounsel-font, "Plus Jakarta Sans", sans-serif);
	font-size: 14px;
	font-weight: 600;
	line-height: 25px;
	text-align: left;
	cursor: pointer;
	transition: box-shadow 200ms ease, color 200ms ease;
}

.eh-lf-dd.has-value .eh-lf-dd-trigger {
	color: var(--procounsel-primary, #19223a);
}

.eh-lf-dd-value {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.eh-lf-dd-trigger:focus-visible,
.eh-lf-dd.is-open .eh-lf-dd-trigger {
	box-shadow: inset 0 0 0 2px var(--procounsel-base, #c7954a);
}

.eh-lf-dd-trigger:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.eh-lf-dd-chevron {
	position: absolute;
	top: 50%;
	right: 28px;
	width: 12px;
	height: 8px;
	margin-top: -4px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c7954a' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
	transition: transform 200ms ease;
}

.eh-lf-dd.is-open .eh-lf-dd-chevron {
	transform: rotate(180deg);
}

.form-one .eh-lf-native.wpcf7-not-valid ~ .eh-lf-dd-trigger {
	box-shadow: inset 0 0 0 1px #dc3232 !important;
}

.eh-lf-dd-panel {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 60;
	overflow: hidden;
	min-width: 240px;
	background: #fff;
	border-top: 3px solid var(--procounsel-base, #c7954a);
	box-shadow: 0 18px 40px rgba(25, 34, 58, 0.18), 0 2px 6px rgba(25, 34, 58, 0.08);
	animation: eh-lf-dd-in 140ms ease-out;
}

.eh-lf-dd.opens-up .eh-lf-dd-panel {
	top: auto;
	bottom: calc(100% + 6px);
	border-top: none;
	border-bottom: 3px solid var(--procounsel-base, #c7954a);
}

@keyframes eh-lf-dd-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.eh-lf-dd-search {
	padding: 12px 12px 8px;
	border-bottom: 1px solid #eee9e0;
}

.form-one .eh-lf-dd-search input[type="text"] {
	height: 40px;
	padding: 0 14px 0 36px;
	background: #f6f3ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237782a0' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center;
	font-size: 13px;
	font-weight: 500;
	color: var(--procounsel-primary, #19223a);
}

.eh-lf-dd-list {
	max-height: 300px;
	margin: 0;
	padding: 6px 0;
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
}

.eh-lf-dd-group {
	margin: 8px 0 2px;
	padding: 8px 20px 4px;
	border-top: 1px solid #f0ece4;
	color: var(--procounsel-base, #c7954a);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.eh-lf-dd-list > .eh-lf-dd-group:first-child {
	margin-top: 0;
	border-top: none;
}

.eh-lf-dd-option {
	position: relative;
	margin: 0;
	padding: 10px 44px 10px 20px;
	color: var(--procounsel-primary, #19223a);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	cursor: pointer;
	transition: background-color 120ms ease, color 120ms ease;
}

.eh-lf-dd-option.is-grouped {
	padding-left: 32px;
}

.eh-lf-dd-option.is-active {
	background: #f6f3ee;
	color: var(--procounsel-primary, #19223a);
}

.eh-lf-dd-option.is-active::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 3px;
	background: var(--procounsel-base, #c7954a);
}

.eh-lf-dd-option.is-selected {
	font-weight: 700;
}

.eh-lf-dd-option.is-selected::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 20px;
	width: 12px;
	height: 9px;
	margin-top: -5px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5l3.2 3L11 1' fill='none' stroke='%23c7954a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.eh-lf-dd-empty {
	margin: 0;
	padding: 16px 20px;
	color: var(--procounsel-text-dark, #7782a0);
	font-size: 13px;
}

.eh-lf-hidden {
	display: none !important;
}

/* ---------- phone with +1 ---------- */
.eh-lf-phone-field {
	position: relative;
	display: block;
}

.eh-lf-phone-prefix {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	height: 60px;
	padding: 0 14px 0 30px;
	border-right: 1px solid rgba(0, 0, 0, 0.12);
	color: var(--procounsel-black, #0e0b06);
	font-size: 14px;
	font-weight: 700;
	pointer-events: none;
}

.form-one .eh-lf-phone-field input[type="tel"] {
	padding-left: 82px;
}

/* ---------- errors ---------- */
.form-one .wpcf7-not-valid {
	box-shadow: inset 0 0 0 1px #dc3232;
}

.eh-lf-tip.wpcf7-not-valid-tip,
.eh-lf-section .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	font-weight: 500;
	color: #dc3232;
}

.form-one .cf-turnstile {
	margin-bottom: 16px;
}

/* ---------- contact page layout (underlined fields) ---------- */
.contact-one__form select.eh-lf-area,
.contact-one__form select.eh-lf-sub,
.contact-one__form .eh-lf-dd-trigger {
	height: 52px;
	padding-left: 0;
	background-color: transparent;
	background-position: right 4px center;
	border-bottom: 1px solid var(--procounsel-border-color, #d9d9d9);
}

.contact-one__form .eh-lf-dd-chevron {
	right: 4px;
}

.contact-one__form select.eh-lf-area:focus,
.contact-one__form select.eh-lf-sub:focus,
.contact-one__form .eh-lf-dd-trigger:focus-visible,
.contact-one__form .eh-lf-dd.is-open .eh-lf-dd-trigger {
	box-shadow: none;
	border-color: var(--procounsel-base, #c7954a);
}

.contact-one__form .eh-lf-native.wpcf7-not-valid ~ .eh-lf-dd-trigger {
	box-shadow: none !important;
	border-bottom-color: #dc3232;
}

.contact-one__form .wpcf7-not-valid {
	box-shadow: none;
	border-bottom-color: #dc3232 !important;
}

.contact-one__form .eh-lf-phone-prefix {
	height: 52px;
	padding-left: 0;
}

.contact-one__form .eh-lf-phone-field input[type="tel"] {
	padding-left: 48px;
}

/* ---------- site-wide section ---------- */
.eh-lf-section {
	position: relative;
	padding: 100px 0;
	background: #f6f3ee;
}

.eh-lf-container {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 60px;
	align-items: center;
	max-width: 1150px;
	margin: 0 auto;
	padding: 0 15px;
}

.eh-lf-eyebrow {
	margin: 0 0 12px;
	color: var(--procounsel-base, #c7954a);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.eh-lf-heading {
	margin: 0 0 18px;
	color: var(--procounsel-primary, #19223a);
	font-size: 42px;
	line-height: 1.15;
}

.eh-lf-text {
	margin: 0 0 24px;
	color: var(--procounsel-text-dark, #7782a0);
	font-size: 16px;
	line-height: 1.7;
}

.eh-lf-call {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding-left: 18px;
	border-left: 3px solid var(--procounsel-base, #c7954a);
	color: var(--procounsel-text-dark, #7782a0);
	font-size: 14px;
}

.eh-lf-call a {
	color: var(--procounsel-primary, #19223a);
	font-size: 22px;
	font-weight: 700;
	text-decoration: none;
}

.eh-lf-call a:hover {
	color: var(--procounsel-base, #c7954a);
}

.eh-lf-card {
	padding: 44px 40px;
	background: #fff;
	box-shadow: 0 20px 50px rgba(25, 34, 58, 0.08);
}

.eh-lf-card .form-one__group {
	grid-gap: 20px;
}

.eh-lf-card textarea {
	height: 150px !important;
}

@media (max-width: 991px) {
	.eh-lf-section {
		padding: 70px 0;
	}

	.eh-lf-container {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.eh-lf-heading {
		font-size: 32px;
	}
}

@media (max-width: 575px) {
	.eh-lf-section {
		padding: 56px 0;
	}

	.eh-lf-card {
		padding: 28px 18px;
	}

	.eh-lf-heading {
		font-size: 28px;
	}
}

/* ---------- filled values ---------- */
/* Typed values read as answers (navy), placeholders stay grey. */
.eh-lf-form input[type="text"]:not(:placeholder-shown),
.eh-lf-form input[type="email"]:not(:placeholder-shown),
.eh-lf-form input[type="tel"]:not(:placeholder-shown),
.eh-lf-form textarea:not(:placeholder-shown) {
	color: var(--procounsel-primary, #19223a);
	font-weight: 600;
}

/*
 * Browser autofill paints its own light-blue/yellow background. Cover it
 * with the field's normal background (inset shadow is the only thing that
 * paints over it) and keep the text colour.
 */
.eh-lf-form input:-webkit-autofill,
.eh-lf-form input:-webkit-autofill:hover,
.eh-lf-form input:-webkit-autofill:focus,
.eh-lf-form textarea:-webkit-autofill {
	-webkit-text-fill-color: var(--procounsel-primary, #19223a);
	caret-color: var(--procounsel-primary, #19223a);
	-webkit-box-shadow: 0 0 0 1000px var(--procounsel-gray2, #ededed) inset !important;
	box-shadow: 0 0 0 1000px var(--procounsel-gray2, #ededed) inset !important;
	transition: background-color 99999s ease-out 0s;
	font-weight: 600;
}

.eh-lf-form input.wpcf7-not-valid:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px var(--procounsel-gray2, #ededed) inset, inset 0 0 0 1px #dc3232 !important;
	box-shadow: 0 0 0 1000px var(--procounsel-gray2, #ededed) inset, inset 0 0 0 1px #dc3232 !important;
}

/* Contact-section layout (home, /contact/): white card, underlined fields. */
.contact-one__form .eh-lf-form input:-webkit-autofill,
.contact-one__form .eh-lf-form input:-webkit-autofill:hover,
.contact-one__form .eh-lf-form input:-webkit-autofill:focus {
	-webkit-box-shadow: 0 0 0 1000px #fff inset !important;
	box-shadow: 0 0 0 1000px #fff inset !important;
}

.contact-one__form .eh-lf-form input.wpcf7-not-valid:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #fff inset !important;
	box-shadow: 0 0 0 1000px #fff inset !important;
}

/* The theme packs this layout's columns 7px apart; give them room. */
.contact-one__form .eh-lf-form .form-one__group {
	column-gap: 32px;
	row-gap: 10px;
}

@media (max-width: 575px) {
	.contact-one__form .eh-lf-form .form-one__group {
		row-gap: 6px;
	}
}

/* ---------- locked to the page's service ---------- */
.eh-lf-dd.is-locked .eh-lf-dd-trigger {
	cursor: default;
	color: var(--procounsel-primary, #19223a);
}

.eh-lf-dd.is-locked .eh-lf-dd-trigger:focus-visible {
	box-shadow: inset 0 0 0 2px rgba(199, 149, 74, 0.45);
}

.eh-lf-dd.is-locked .eh-lf-dd-chevron {
	width: 12px;
	height: 14px;
	margin-top: -7px;
	transform: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='14' viewBox='0 0 12 14' fill='none' stroke='%23c7954a' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='1' y='6' width='10' height='7' rx='1.5'/%3E%3Cpath d='M3.5 6V4.2a2.5 2.5 0 0 1 5 0V6'/%3E%3C/svg%3E");
}

/* ---------- submit button: sending / sent ---------- */
.eh-lf-form .wpcf7-spinner {
	display: none !important; /* CF7's own spinner; the button shows progress */
}

.eh-lf-form .procounsel-btn:disabled {
	cursor: default;
}

.eh-lf-form .procounsel-btn.eh-lf-btn-busy,
.eh-lf-form .procounsel-btn.eh-lf-btn-sent {
	pointer-events: none;
}

/* No hover flip while busy / sent: the label stays in place. */
.eh-lf-form .procounsel-btn.eh-lf-btn-busy > span,
.eh-lf-form .procounsel-btn.eh-lf-btn-sent > span {
	display: none;
}

.eh-lf-form .procounsel-btn.eh-lf-btn-busy > i,
.eh-lf-form .procounsel-btn.eh-lf-btn-sent > i {
	gap: 10px;
	transform: none !important;
}

/* A light sweep across the button while the form is being sent. */
.eh-lf-form .procounsel-btn.eh-lf-btn-busy::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
	transform: translateX(-100%);
	animation: eh-lf-sweep 1.3s ease-in-out infinite;
	pointer-events: none;
}

.eh-lf-spinner {
	display: inline-block;
	flex: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: eh-lf-spin 0.7s linear infinite;
}

.eh-lf-check {
	display: inline-block;
	flex: none;
	width: 14px;
	height: 11px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' viewBox='0 0 14 11'%3E%3Cpath d='M1.5 5.5l3.8 3.6L12.5 1.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
	animation: eh-lf-pop 260ms ease-out;
}

/* Fields fade slightly and can't be edited while sending. */
.eh-lf-form.eh-lf-sending .form-one__control:not(:last-child) {
	opacity: 0.6;
	pointer-events: none;
	transition: opacity 200ms ease;
}

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

@keyframes eh-lf-sweep {
	to {
		transform: translateX(100%);
	}
}

@keyframes eh-lf-pop {
	from {
		opacity: 0;
		transform: scale(0.4);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.eh-lf-spinner {
		animation-duration: 1.6s;
	}
	.eh-lf-form .procounsel-btn.eh-lf-btn-busy::after {
		display: none;
	}
}

/* ---------- message character counter ---------- */
.eh-lf-count {
	display: block;
	margin-top: 6px;
	text-align: right;
	font-size: 12px;
	font-weight: 500;
	color: var(--procounsel-text-dark, #7782a0);
	transition: color 150ms ease;
}

.eh-lf-count.is-short {
	color: #b4671d;
}

.eh-lf-count.is-ok {
	color: var(--procounsel-primary, #19223a);
}

.eh-lf-count.is-max {
	color: var(--procounsel-base, #c7954a);
	font-weight: 700;
}

/* The box only holds 150 characters now; it needs less height. */
.eh-lf-form textarea[name="your-message"] {
	height: 120px !important;
}

/* ---------- consent checkbox ---------- */
.eh-lf-check-control .wpcf7-list-item {
	margin: 0;
}

.eh-lf-check-control label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.55;
	text-transform: none;
	color: var(--procounsel-text-dark, #7782a0);
	cursor: pointer;
}

.eh-lf-check-control input[type="checkbox"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	border: 1.5px solid #c9ccd6;
	border-radius: 3px;
	background: #fff;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.eh-lf-check-control input[type="checkbox"]:checked {
	border-color: var(--procounsel-base, #c7954a);
	background: var(--procounsel-base, #c7954a) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5l3.2 3L11 1' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.eh-lf-check-control input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--procounsel-base, #c7954a);
	outline-offset: 2px;
}

.eh-lf-consent-control input[type="checkbox"].wpcf7-not-valid,
.eh-lf-consent-control .wpcf7-not-valid input[type="checkbox"] {
	border-color: #dc3232;
	box-shadow: none;
}

.eh-lf-check-control a {
	color: var(--procounsel-base, #c7954a);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* ---------- "prefer to discuss at the consultation" ---------- */
.eh-lf-consult-control + .eh-lf-consent-control {
	margin-top: -10px;
}

.eh-lf-consult-control label {
	color: var(--procounsel-primary, #19223a);
}


.eh-lf-form .cf-turnstile {
	margin-top: 4px;
}

/* CF7's status box: hide it while it has nothing to say (e.g. the blue
   "validating" frame CF7 shows when a checkbox is clicked). */
.eh-lf-form .wpcf7-response-output:empty {
	display: none !important;
}
