/* Contact Form Section (Figma 3165:5509 desktop / 3184:5086 mobile). */

.contact-form-section {
	position: relative;
	width: 100%;
	overflow: hidden;
	background-color: #283a85;
	box-sizing: border-box;
}

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

/* Decorative photo (blue tint baked in). */
.contact-form-section__bg,
.contact-form-section__bg img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.contact-form-section__bg img {
	object-fit: cover;
	object-position: center;
}

.contact-form-section__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 40px 20px;
	color: #fff;
}

.contact-form-section__main {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact-form-section .contact-form-section__title {
	margin: 0;
	color: #fff;
	font-family: "GT Super Ds Trial", Georgia, serif;
	font-size: 36px;
	font-weight: 700;
	line-height: 44px;
	letter-spacing: 0;
	text-align: center;
	text-transform: capitalize;
}

/* CF7 form */

.contact-form-section .wpcf7 form {
	margin: 0;
}

.contact-form-section .cfs-fields {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px;
}

.contact-form-section .cfs-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	color: #fff;
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.contact-form-section .cfs-label {
	color: #fff;
}

.contact-form-section .cfs-field .wpcf7-form-control-wrap {
	display: block;
}

.contact-form-section .cfs-field input,
.contact-form-section .cfs-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 16px 20px;
	border: 1px solid transparent;
	border-radius: 6px;
	background-color: #f4f4f4;
	color: #1b1b1b;
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	box-shadow: none;
}

.contact-form-section .cfs-field textarea {
	height: 104px;
	min-height: 104px;
	resize: vertical;
}

.contact-form-section .cfs-field input::placeholder,
.contact-form-section .cfs-field textarea::placeholder {
	color: #707070;
	opacity: 1;
}

.contact-form-section .cfs-field input:focus,
.contact-form-section .cfs-field textarea:focus {
	border-color: #ffb9c4;
	outline: 2px solid #ffb9c4;
	outline-offset: 0;
}

.contact-form-section .cfs-field .wpcf7-not-valid {
	border-color: #ffb9c4;
}

.contact-form-section .wpcf7-not-valid-tip {
	margin-top: 4px;
	color: #ffb9c4;
	font-size: 14px;
	line-height: 20px;
}

.contact-form-section .cfs-hidden {
	display: none;
}

/* Actions: submit + contact call-out. */

.contact-form-section .cfs-actions {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
}

.contact-form-section .cfs-actions .wpcf7-spinner {
	position: absolute;
	margin: 0;
}

.contact-form-section .cfs-submit {
	width: 100%;
	margin: 0;
	padding: 20px 24px;
	border: 0;
	border-radius: 200px;
	background: #ffb9c4;
	color: #283a85;
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 20px;
	text-transform: capitalize;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.contact-form-section .cfs-submit:hover,
.contact-form-section .cfs-submit:focus-visible {
	background: #fff;
	color: #283a85;
}

.contact-form-section .cfs-contact,
.contact-form-section .cfs-contact:visited {
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	text-decoration: none;
}

.contact-form-section .cfs-contact__icon {
	position: relative;
	flex-shrink: 0;
	width: 54px;
	height: 54px;
}

.contact-form-section .cfs-contact__icon::before,
.contact-form-section .cfs-contact__icon::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background-color: #ffb9c4;
	box-shadow: 0 5.478px 16.434px 0 rgba(120, 120, 120, 0.1);
}

/* Faded outer circle stays full size; pulse = same as the live LP header (/varicose-veins-treatment-lp/):
   a solid ring in the circle's colour grows to 6px and fades by 70%, 2s, default ease, infinite. */
.contact-form-section .cfs-contact__icon::before {
	inset: 0;
	background-color: rgba(255, 185, 196, 0.4);
	animation: cfs-call-pulse-mobile 2s ease infinite;
}

.contact-form-section .cfs-contact__icon::after {
	top: 6.48px;
	left: 6.48px;
	width: 41.04px;
	height: 41.04px;
}

.contact-form-section .cfs-contact__icon img {
	position: absolute;
	z-index: 1;
	top: 15.1px;
	left: 16.11px;
	width: 22.783px;
	height: 24.765px;
}

.contact-form-section .cfs-contact__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding-bottom: 4px;
	white-space: nowrap;
}

.contact-form-section .cfs-contact__label {
	font-family: "Manrope", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
}

.contact-form-section .cfs-contact__number {
	font-family: "Inter", sans-serif;
	font-size: 22px;
	font-weight: 500;
	line-height: 22px;
	letter-spacing: -0.44px;
	text-decoration: underline;
}

.contact-form-section .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 12px 16px;
	border-radius: 6px;
	color: #fff;
	font-family: "Manrope", sans-serif;
	font-size: 16px;
	line-height: 24px;
	text-align: center;
}

@keyframes cfs-call-pulse {
	0% {
		box-shadow: 0 0 0 0 rgb(255, 185, 196), 0 6.031px 18.092px 0 rgba(120, 120, 120, 0.1);
	}

	70% {
		box-shadow: 0 0 0 6px rgba(255, 185, 196, 0), 0 6.031px 18.092px 0 rgba(120, 120, 120, 0.1);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(255, 185, 196, 0), 0 6.031px 18.092px 0 rgba(120, 120, 120, 0.1);
	}
}

@keyframes cfs-call-pulse-mobile {
	0% {
		box-shadow: 0 0 0 0 rgb(255, 185, 196), 0 5.478px 16.434px 0 rgba(120, 120, 120, 0.1);
	}

	70% {
		box-shadow: 0 0 0 6px rgba(255, 185, 196, 0), 0 5.478px 16.434px 0 rgba(120, 120, 120, 0.1);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(255, 185, 196, 0), 0 5.478px 16.434px 0 rgba(120, 120, 120, 0.1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.contact-form-section .cfs-contact__icon::before {
		animation: none;
	}
}

/* Notes */

.contact-form-section__notes {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	text-align: center;
}

.contact-form-section .contact-form-section__note,
.contact-form-section .contact-form-section__disclaimer {
	margin: 0;
	color: #fff;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
}

.contact-form-section .contact-form-section__note {
	font-family: "Manrope", sans-serif;
}

.contact-form-section .contact-form-section__disclaimer {
	max-width: 547px;
	font-family: "Roboto", sans-serif;
	font-style: italic;
}

/* Tablet and desktop: 720px column, two-up email/phone, actions in one row. */
@media (min-width: 768px) {
	.contact-form-section__inner {
		gap: 32px;
		padding: 80px 0;
	}

	.contact-form-section__main {
		gap: 24px;
	}

	.contact-form-section .contact-form-section__title {
		font-size: 42px;
		line-height: 50px;
	}

	.contact-form-section .cfs-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.contact-form-section .cfs-field--full {
		grid-column: 1 / -1;
	}

	.contact-form-section .cfs-field {
		gap: 6px;
		font-size: 18px;
		line-height: 26px;
	}

	.contact-form-section .cfs-field input,
	.contact-form-section .cfs-field textarea {
		font-size: 18px;
		line-height: 26px;
	}

	.contact-form-section .cfs-field textarea {
		height: 110px;
		min-height: 110px;
	}

	.contact-form-section .cfs-actions {
		flex-direction: row;
		justify-content: space-between;
		margin-top: 40px;
	}

	.contact-form-section .cfs-submit {
		width: auto;
		padding: 20px 40px;
	}

	.contact-form-section .cfs-contact__icon {
		width: 60px;
		height: 60px;
	}

	.contact-form-section .cfs-contact__icon::before {
		box-shadow: 0 6.031px 18.092px 0 rgba(120, 120, 120, 0.1);
		animation-name: cfs-call-pulse;
	}

	.contact-form-section .cfs-contact__icon::after {
		top: 7.2px;
		left: 7.2px;
		width: 45.6px;
		height: 45.6px;
	}

	.contact-form-section .cfs-contact__icon img {
		top: 16.78px;
		left: 17.9px;
		width: 25.314px;
		height: 27.517px;
	}

	.contact-form-section .cfs-contact__label {
		font-size: 16px;
		line-height: 24px;
	}

	.contact-form-section .cfs-contact__number {
		font-size: 24px;
		line-height: 24px;
		letter-spacing: -0.48px;
	}

	.contact-form-section .contact-form-section__note,
	.contact-form-section .contact-form-section__disclaimer {
		font-size: 18px;
		line-height: 26px;
	}
}
