/**
 * Lead Form section — ffm-* class names ported from design source.
 *
 * @package Fundamento
 */

.ffm-root {
	font-family: "IBM Plex Sans", Inter, sans-serif;
	background: #0F624F;
}

.ffm-hero {
	min-height: 100vh;
	background-color: #0F624F;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	overflow: hidden;
}

.ffm-container {
	max-width: 1200px;
	margin: 0 auto;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
	z-index: 2;
}

.ffm-content {
	width: 50%;
	max-width: 660px;
}

.ffm-content h2 {
	font-family: "Season Mix Trial", Georgia, serif;
	color: #CFE6FA;
	font-size: 60px;
	font-weight: 400;
	line-height: 1.2;
	max-width: 494px;
}

.ffm-content p {
	margin-top: 14.5px;
	max-width: 336px;
	color: rgba(255, 255, 255, .82);
	font-size: 16px;
	line-height: 1.4;
}

.ffm-card {
	width: 500px;
	background: #ffffff;
	border-radius: 16px;
	padding: 56px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .08), 0 8px 20px rgba(0, 0, 0, .05);
}

.ffm-form-group {
	margin-bottom: 24px;
}

.ffm-form-group label {
	display: block;
	margin-bottom: 8px;
	color: #1F2937;
	font-size: 16px;
	font-weight: 600;
}

.ffm-card input[type=text],
.ffm-card input[type=email],
.ffm-card input[type=tel] {
	width: 100%;
	border: 1.23px solid #E6E1D8;
	border-radius: 8px;
	background: #F8F7F4;
	font-size: 16px;
	padding: 13.7px 14.8px;
}

.ffm-card input::placeholder {
	color: #B7B7B7;
}

.ffm-card input:focus {
	border-color: #837453;
	outline: none;
}

.ffm-phone, .ffm-phone p {
	display: flex;
	align-items: center;
	border: 1px solid #E6E1D8;
	border-radius: 8px;
	background: #F8F7F4;
	overflow: visible;
}

.ffm-country {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 13.7px 14.8px;
	border-right: 1px solid #E5E7EB;
	color: #374151;
	font-size: 14px;
	flex-shrink: 0;
	background: transparent;
}

.ffm-country .flag {
	font-size: 16px;
}

.ffm-dropdown-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	border: none;
	padding: 13.7px 14.8px;
	background: transparent;
	color: #374151;
	font: inherit;
	cursor: pointer;
	text-align: left;
}

.ffm-country-toggle {
	border-radius: 0;
	padding: 0;
}

.ffm-select-toggle {
	border: 1px solid #E6E1D8;
	border-radius: 8px;
	background: #F8F7F4;
}

.ffm-select-toggle .ffm-label {
	color: #6B7280;
}

.ffm-dropdown-toggle svg {
	color: #9CA3AF;
	transition: transform .2s ease;
}

.ffm-dropdown-toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.ffm-dropdown-list {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	width: 100%;
	max-height: 220px;
	overflow-y: auto;
	background: #ffffff;
	border: 1px solid #E5E7EB;
	border-radius: 16px;
	box-shadow: 0 18px 40px rgba(15, 50, 57, .12);
	z-index: 10;
}

.ffm-select-list {
	border-radius: 0;
}

.ffm-dropdown-list[hidden] {
	display: none;
}

.ffm-item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border: none;
	background: transparent;
	font: inherit;
	color: #1F2937;
	text-align: left;
	cursor: pointer;
}

.ffm-item:hover,
.ffm-item[aria-selected="true"] {
	background: #F8FAFC;
}

.ffm-country-item .flag {
	font-size: 14px;
}

.ffm-phone input {
	border: none !important;
	background: transparent !important;
	height: 100%;
	flex: 1;
}

.ffm-phone input:focus {
	box-shadow: none !important;
}

.ffm-submit {
	width: 100%;
	height: 44px;
	border: none;
	background: #86DCC0;
	color: #CFE6FA;
	font-size: 14px;
	font-weight: 500;
	margin-top: 8px;
	cursor: pointer;
	transition: .3s ease;
}

.ffm-submit span {
	margin-left: 8px;
}

.ffm-submit:hover {
	transform: translateY(-1px);
	filter: brightness(1.03);
}

.ffm-submit[disabled] {
	background: #86DCC0;
	cursor: not-allowed;
}

.ffm-submit:not([disabled]) {
	background: #175844;
}

/* ── Contact Form 7 resets ── */

.ffm-card .wpcf7 {
	margin: 0;
}

.ffm-card .wpcf7 form {
	margin: 0;
}

/* Strip CF7's span wrapper so it doesn't break flex/block flow */
.ffm-card .wpcf7-form-control-wrap {
	display: block;
	/* width: 100%; */
}

/* Native select — matches input styling */
.ffm-card select {
	width: 100%;
	border: 1.23px solid #E6E1D8;
	border-radius: 8px;
	background: #F8F7F4;
	font-size: 16px;
	padding: 13.7px 14.8px;
	color: #374151;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14.8px center;
	cursor: pointer;
}

.ffm-card select:focus {
	border-color: #837453;
	outline: none;
}

/* Country code select inside .ffm-phone */
.ffm-phone .wpcf7-form-control-wrap {
	display: flex;
	align-items: stretch;
	/* flex-shrink: 0; */
}

.ffm-phone select {
	width: auto;
	border: none;
	border-right: 1px solid #E5E7EB;
	border-radius: 0;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 28px;
	font-size: 14px;
	color: #374151;
	cursor: pointer;
}

.ffm-phone select:focus {
	border-color: transparent;
	border-right-color: #E5E7EB;
	outline: none;
}

/* Submit rendered by CF7 [submit] tag */
.ffm-card .wpcf7-submit {
	width: 100%;
	height: 44px;
	display: block;
	border: none;
	font-size: 14px;
	font-weight: 500;
	margin-top: 8px;
	cursor: pointer;
	transition: .3s ease;
	background: #175844;
	color: #CFE6FA;
}

.ffm-card .wpcf7-submit:hover {
	transform: translateY(-1px);
	filter: brightness(1.08);
}

/* Validation error tip */
.ffm-card .wpcf7-not-valid-tip {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: #dc2626;
}

.ffm-card .wpcf7-form-control.wpcf7-not-valid,
.ffm-card input.wpcf7-not-valid,
.ffm-card select.wpcf7-not-valid {
	border-color: #dc2626;
}

/* Response output (success / error banner) */
.ffm-card .wpcf7-response-output {
	margin: 12px 0 0;
	padding: 10px 14px;
	font-size: 13px;
	border-radius: 6px;
	border: none;
}

.ffm-card .wpcf7-mail-sent-ok {
	background: #d1fae5;
	color: #065f46;
}

.ffm-card .wpcf7-mail-sent-ng,
.ffm-card .wpcf7-spam-blocked,
.ffm-card .wpcf7-validation-errors {
	background: #fee2e2;
	color: #991b1b;
}

/* Spinner */
.ffm-card .wpcf7-spinner {
	display: inline-block;
	margin-left: 8px;
	vertical-align: middle;
}

/* Tablet */
@media (max-width: 1024px) {
	.ffm-container {
		gap: 40px;
		padding: 80px 32px;
	}

	.ffm-content {
		padding-left: 50px;
	}

	.ffm-content h2 {
		font-size: 56px;
	}

	.ffm-card {
		width: 380px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.ffm-container {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 40px;
		padding: 70px 20px;
	}

	.ffm-content {
		padding: 0;
		width: 100%;
	}

	.ffm-content h2 {
		font-size: 48px;
		max-width: 100%;
	}

	.ffm-content p {
		max-width: 320px;
	}

	.ffm-card {
		width: 100%;
		max-width: 500px;
		padding: 25px;
	}
}
