/* International phone field: country flag + dial code inside the gold form system. */
.wpcf7 .iti {
	display: block;
	width: 100%;
	--iti-border-color: #d9d0c3;
	--iti-dialcode-color: #80786f;
	--iti-hover-color: rgba(167, 122, 58, .1);
	--iti-dropdown-bg: #fff;
}

.wpcf7 .iti input.wpcf7-tel {
	width: 100% !important;
}

.iti--container {
	z-index: 2147483000;
}

.iti__country-list {
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	color: #342f29;
}

.iti__search-input {
	font-family: "Manrope", sans-serif;
	font-size: 14px;
}

.wpcf7 .kha-form-note {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-left: 3px solid #a77a3a;
	border-radius: 0 8px 8px 0;
	background: rgba(167, 122, 58, .08);
	color: #5b3a10;
	font-size: 13.5px;
	line-height: 1.55;
	text-align: left;
}

.boxformdatlich .row1 li.lifull {
	width: 100%;
	float: none;
	clear: both;
	padding-right: 0;
}

.boxformdatlich .row1 li.lifull::after,
.boxformdatlich .row1::after {
	content: "";
	display: table;
	clear: both;
}

/* Neutralise the theme's global gold button skin on the country picker. */
.wpcf7 .iti .iti__selected-country,
.wpcf7 .iti .iti__selected-country:hover,
.wpcf7 .iti .iti__selected-country:focus {
	width: auto;
	min-height: 0;
	margin: 0;
	padding: 0 0 0 4px;
	border: 0;
	border-radius: 8px 0 0 8px;
	background: transparent !important;
	box-shadow: none !important;
	transform: none;
	color: #342f29;
}

.wpcf7 .iti .iti__selected-dial-code {
	color: #342f29;
	font-size: 15px;
}

.wpcf7 textarea[name="textarea-ln"] {
	min-height: 88px !important;
}

/* ---- Consultation popup: show the whole banner, give the form room ---- */
.adp-popup-wrap {
	width: min(1100px, 94vw) !important;
	max-width: 94vw !important;
	max-height: 94vh;
	overflow: auto;
}

.adp-popup-wrap .adp-popup-content {
	background-image: url("/wp-content/uploads/2024/08/KHA-DENTAL-Implant-hoan-chinh-1536x941.png") !important;
	aspect-ratio: 1536 / 941;
	background-size: 100% 100% !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	display: flex;
	align-items: center;
}

.adp-popup-wrap .cusboxpopup {
	flex: 0 0 100%;
	width: 100% !important;
	max-width: 100% !important;
}

.adp-popup-wrap .cusboxpopup ul {
	width: 100%;
	margin: 0;
	padding: 0;
}

.adp-popup-wrap .cusboxpopup .boxformleft {
	float: none;
	width: 39% !important;
	box-sizing: border-box;
	padding: 28px 24px 24px 40px;
}

.adp-popup-wrap .cusboxpopup h2 {
	width: 100%;
	font-size: clamp(20px, 2.3vw, 28px);
	line-height: 1.2;
	margin: 0 0 6px;
}

.adp-popup-wrap .cusboxpopup .caudksub {
	width: 100%;
	margin: 0 0 14px;
	font-size: clamp(13px, 1.25vw, 16px);
	line-height: 1.45;
}

.adp-popup-wrap .wpcf7 p {
	margin: 0 0 8px;
}

.adp-popup-wrap .wpcf7 input.wpcf7-text,
.adp-popup-wrap .wpcf7 input.wpcf7-email,
.adp-popup-wrap .wpcf7 input.wpcf7-tel,
.adp-popup-wrap .wpcf7 select {
	min-height: 42px !important;
	padding-top: 8px !important;
	padding-bottom: 8px !important;
}

.adp-popup-wrap .wpcf7 textarea[name="textarea-ln"] {
	min-height: 54px !important;
	height: 54px;
}

.adp-popup-wrap .wpcf7 .kha-form-note {
	margin-top: 8px;
	padding: 7px 10px;
	font-size: 12.5px;
	line-height: 1.4;
	background: rgba(255, 255, 255, .92);
}

@media (max-width: 767px) {
	.adp-popup-wrap .adp-popup-content {
		aspect-ratio: auto;
		display: block;
		background: linear-gradient(160deg, #8a5d24 0%, #c19a4d 55%, #a77a3a 100%) !important;
	}

	.adp-popup-wrap .cusboxpopup .boxformleft {
		width: 100% !important;
		margin: 0;
		padding: 40px 18px 18px;
		background: none;
	}

	.adp-popup-wrap .cusboxpopup h2 {
		font-size: 22px;
	}

	/* The offer banner sits under the form instead of behind it. */
	.adp-popup-wrap .adp-popup-content::after {
		content: "";
		display: block;
		aspect-ratio: 1536 / 941;
		background: url("/wp-content/uploads/2024/08/KHA-DENTAL-Implant-hoan-chinh-1536x941.png") center / 100% 100% no-repeat;
	}
}

.adp-popup-wrap .adp-popup-inner {
	flex: 0 0 100%;
	width: 100%;
}

@media (max-width: 767px) {
	.adp-popup-wrap .adp-popup-inner {
		flex: none;
	}
}
