/* "Get In Touch With Us" band (markup in inc/alg-get-in-touch.php).
   Message and phone on the left, the consultation form in a card on the right. */
.alg-touch {
	position: relative;
	clear: both; /* the theme floats the sections around it (.blockElement) */
	overflow: hidden;
	/* Same office photo and blue wash the section always had */
	background: linear-gradient(rgba(46, 52, 112, .9), rgba(46, 52, 112, .9)), url(../images/get-in-touch-bg.webp) center / cover;
}
.alg-touch__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
	gap: clamp(40px, 6vw, 96px);
	align-items: start;
	max-width: 1170px;
	margin: 0 auto;
	padding: clamp(72px, 8vw, 112px) 30px;
	text-align: left;
}
.alg-touch__intro {
	margin: 0;
	padding-top: 8px;
	color: #fff;
}
.alg-touch__title {
	margin: 0 0 18px;
	color: #fff;
	font-family: 'Unna', Georgia, serif;
	font-weight: bold;
	font-size: clamp(40px, 4vw, 56px);
	line-height: 1.05;
	text-wrap: balance;
}
.alg-touch__lead {
	max-width: 44ch;
	margin: 0 0 36px;
	color: rgba(255, 255, 255, .82);
	font-size: 18px;
	line-height: 1.6;
}
.alg-touch__call {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 14px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, .16);
}
.alg-touch__call span {
	margin: 0;
	color: rgba(255, 255, 255, .72);
	font-size: 16px;
}
.alg-touch__call a {
	align-self: flex-start;
	margin: 0;
	color: #C5A867 !important; /* beats theme link colors */
	font-family: 'Unna', Georgia, serif;
	font-weight: bold;
	font-size: clamp(30px, 3vw, 40px);
	line-height: 1.1;
	text-decoration: none !important;
	font-variant-numeric: lining-nums;
}
.alg-touch__call a:focus-visible {
	outline: 3px solid #C5A867;
	outline-offset: 4px;
}
.alg-touch__address {
	margin: 0;
	color: rgba(255, 255, 255, .72);
	font-size: 15px;
}

/* Form card */
.alg-touch__card {
	margin: 0;
	padding: 32px 32px 28px;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 24px 48px rgba(10, 12, 40, .35);
}

/* Contact Form 7 form 10 inside the card: visual only, fields and behavior unchanged.
   The form's own markup carries inline margins and legacy theme rules, hence !important. */
.alg-touch__card .wpcf7-form .contact-form {
	margin: 0 !important;
}
.alg-touch__card .wpcf7-form p,
.alg-touch__card .wpcf7-form .custom-form-group,
.alg-touch__card .wpcf7-form .custom-form-group-textarea,
.alg-touch__card .wpcf7-form .custom-form-group-checkbox {
	float: none !important;
	width: 100% !important;
	margin: 0 0 14px !important;
	padding: 0 !important;
}
.alg-touch__card .custom-form-group i.fas,
.alg-touch__card .custom-form-group-textarea i.fas,
.alg-touch__card .custom-form-group br,
.alg-touch__card .custom-form-group-textarea br {
	display: none !important;
}

/* Visible labels above the fields (placeholders hidden) */
.alg-touch__card .wpcf7-form-control-wrap {
	display: block;
}
.alg-touch__card .wpcf7-form-control-wrap[data-name]::before {
	display: block;
	margin: 0 0 6px;
	color: #222766;
	font-family: 'Avenir heavy', Arial, sans-serif;
	font-size: 14px;
	letter-spacing: .3px;
}
.alg-touch__card .wpcf7-form-control-wrap[data-name="your-name"]::before {
	content: "Name *";
}
.alg-touch__card .wpcf7-form-control-wrap[data-name="your-email"]::before {
	content: "Email *";
}
.alg-touch__card .wpcf7-form-control-wrap[data-name="tel-820"]::before {
	content: "Phone *";
}
.alg-touch__card .wpcf7-form-control-wrap[data-name="your-message"]::before {
	content: "Tell us what happened";
}
.alg-touch__card .wpcf7-form-control-wrap[data-name="agree-to-contact"]::before {
	content: none;
}
.alg-touch__card .wpcf7 ::placeholder {
	color: transparent !important;
}

/* Fields: 16px text so phones do not zoom in on focus */
.alg-touch__card .wpcf7 input[type=text],
.alg-touch__card .wpcf7 input[type=email],
.alg-touch__card .wpcf7 input[type=tel],
.alg-touch__card .wpcf7 textarea {
	width: 100% !important;
	margin: 0 !important;
	border: 1px solid #CDD1DE !important;
	border-radius: 4px !important;
	background: #fff !important;
	color: #222766 !important;
	font-size: 16px !important;
	box-shadow: none !important;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.alg-touch__card .wpcf7 input[type=text],
.alg-touch__card .wpcf7 input[type=email],
.alg-touch__card .wpcf7 input[type=tel] {
	height: 48px !important;
	padding: 0 14px !important;
}
.alg-touch__card .wpcf7 textarea {
	height: 110px !important;
	padding: 12px 14px !important;
	resize: vertical;
}
.alg-touch__card .wpcf7 input:focus,
.alg-touch__card .wpcf7 textarea:focus {
	border-color: #222766 !important;
	box-shadow: 0 0 0 3px rgba(34, 39, 102, .15) !important;
	outline: none;
}
.alg-touch__card .wpcf7-not-valid-tip {
	margin: 6px 0 0 !important;
	color: #B3261E !important;
	font-size: 14px !important;
}

/* Consent checkbox */
.alg-touch__card .wpcf7-list-item {
	margin: 0 !important;
}
.alg-touch__card .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 !important;
	cursor: pointer;
}
.alg-touch__card .wpcf7 input[type=checkbox] {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 2px 0 0 !important;
	accent-color: #222766;
}
.alg-touch__card .wpcf7-list-item-label {
	color: #222766 !important;
	font-size: 15px;
	line-height: 1.4;
	text-align: left;
}

/* Buttons: Agree & Send (primary gold) and Schedule a Call (navy outline) */
.alg-touch__card .alg-sched-btnrow {
	position: relative;
	display: grid !important;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 6px 0 0 !important;
}
.alg-touch__card .alg-sched-btnrow br {
	display: none;
}
.alg-touch__card .alg-sched-btnrow .wpcf7-spinner {
	position: absolute;
	right: 0;
	bottom: -30px;
	margin: 0 !important;
}
.alg-touch__card .alg-sched-btnrow input[type=submit],
.alg-touch__card .alg-sched-btnrow .alg-sched-trigger {
	width: 100% !important;
	min-width: 0 !important;
	height: 54px !important;
	margin: 0 !important;
	padding: 0 12px !important;
	border-radius: 4px !important;
	font-family: 'Avenir heavy', Arial, sans-serif !important;
	font-size: 14px !important;
	line-height: 1 !important;
	letter-spacing: 1.5px !important;
	text-transform: uppercase !important;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, transform .16s cubic-bezier(0.23, 1, 0.32, 1);
}
.alg-touch__card .alg-sched-btnrow input[type=submit] {
	border: 0 !important;
	background: #C5A867 !important;
	color: #222766 !important;
}
.alg-touch__card .alg-sched-btnrow .alg-sched-trigger {
	border: 1.5px solid #222766 !important;
	background: transparent !important;
	color: #222766 !important;
}
.alg-touch__card .alg-sched-btnrow input[type=submit]:active,
.alg-touch__card .alg-sched-btnrow .alg-sched-trigger:active {
	transform: scale(.98);
}
.alg-touch__card .alg-sched-btnrow input:focus-visible,
.alg-touch__card .alg-sched-btnrow button:focus-visible {
	outline: 3px solid #C5A867;
	outline-offset: 2px;
}
@media (hover: hover) and (pointer: fine) {
	.alg-touch__card .alg-sched-btnrow input[type=submit]:hover {
		background: #d4ba80 !important;
	}
	.alg-touch__card .alg-sched-btnrow .alg-sched-trigger:hover {
		background: #222766 !important;
		color: #fff !important;
	}
}

/* Consent text: small but readable */
.alg-touch__card .captcha_disclaimer {
	margin: 0 !important;
}
.alg-touch__card .captcha_disclaimer p {
	margin: 18px 0 0 !important;
	color: #5A5F73 !important;
	font-size: 12px !important;
	line-height: 1.55 !important;
	text-align: left !important;
}
.alg-touch__card .captcha_disclaimer a {
	color: #222766 !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}
.alg-touch__card .wpcf7-response-output {
	margin: 16px 0 0 !important;
	padding: 12px 14px !important;
	border-radius: 4px;
	color: #222766;
	font-size: 14px;
}

/* Tablets and phones: one column, form under the message */
@media (max-width: 991px) {
	.alg-touch__inner {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}
	.alg-touch__lead {
		margin-bottom: 28px;
	}
}
@media (max-width: 767px) {
	.alg-touch__inner {
		padding: 56px 16px 64px;
	}
	.alg-touch__intro {
		padding: 0 4px;
	}
	.alg-touch__lead {
		font-size: 17px;
	}
	.alg-touch__card {
		padding: 24px 18px 20px;
	}
}
@media (max-width: 575px) {
	.alg-touch__card .alg-sched-btnrow {
		grid-template-columns: 1fr;
	}
}
