/* ==========================================================================
   Contact widget  (.aew-contact)
   ========================================================================== */

.aew-contact {
	--aew-accent: var(--aew-red);   /* control: Brand colour */
	--aew-gutter: 24px;             /* control: Side gap */

	position: relative;
	box-sizing: border-box;
	background-color: #fff;
	color: #111;
	font-family: var(--aew-font);
	-webkit-font-smoothing: antialiased;
}

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

/* thin line at the top that fades out at both ends */
.aew-contact--divider::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: min(1160px, 92%);
	height: 1px;
	transform: translateX(-50%);
	background: linear-gradient(90deg, transparent, #e8e8e8 18%, #e8e8e8 82%, transparent);
}

.aew-contact__inner {
	width: calc(100% - (var(--aew-gutter) * 2));
	max-width: 1076px;
	margin-inline: auto;
}

/* ---- Heading ---- */

.aew-contact__head {
	margin-bottom: 58px;
	text-align: center;
}

.aew-contact__eyebrow {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 0 0 19px;
	font-size: 11.2px;
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.4;
	text-transform: uppercase;
}

.aew-contact__eyebrow-line {
	flex: none;
	display: block;
	width: 35px;
	height: 2px;
	background: var(--aew-accent);
}

.aew-contact__eyebrow-text {
	color: var(--aew-accent);
}

/* extra class so the Elementor kit's global h1–h6 styles don't win */
.aew-contact .aew-contact__title {
	margin: 0 0 14px;
	padding: 0;
	font-family: inherit;
	font-size: 42px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
}

.aew-contact__title-text {
	color: #111;
}

.aew-contact__title-accent {
	color: var(--aew-accent);
}

.aew-contact .aew-contact__subtitle {
	margin: 0;
	font-size: 12.25px;
	line-height: 1.55;
	color: #5c6061;
}

/* ---- Grid ---- */

.aew-contact__grid {
	--aew-left: 0.65fr;             /* control: Left column width */

	display: grid;
	grid-template-columns: minmax(0, var(--aew-left)) minmax(0, 1fr);
	align-items: start;
	gap: 30px;
	max-width: 1076px;
	margin-inline: auto;
}

/* ---- Left column ---- */

.aew-contact__side {
	display: flex;
	flex-direction: column;
	gap: 22px;
	min-width: 0;
}

.aew-contact__card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 13px;
	border: 1px solid #ededed;
	background-color: #f9f9f9;
}

.aew-contact__icon {
	--aew-icon-box: 36px;

	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--aew-icon-box);
	height: var(--aew-icon-box);
	border: 1px solid #efefef;
	background-color: #fff;
	font-size: 15px;
	line-height: 1;
	color: var(--aew-accent);
}

.aew-contact__icon svg,
.aew-contact__icon i {
	width: 1em;
	height: 1em;
	color: inherit;
}

.aew-contact__icon svg:not([stroke]) {
	fill: currentColor;
}

.aew-contact__text {
	display: block;
	flex: 1 1 auto;
	min-width: 0;
}

.aew-contact__label,
.aew-contact__value {
	display: block;
}

.aew-contact__label {
	font-size: 8.5px;
	font-weight: 700;
	letter-spacing: 1px;
	line-height: 1.3;
	text-transform: uppercase;
	color: #675e57;
}

.aew-contact__value {
	margin-top: 4px;
	font-size: 10.7px;
	line-height: 1.6;
	color: #222;
	text-decoration: none;
	overflow-wrap: anywhere;
}

a.aew-contact__value:hover,
a.aew-contact__value:focus-visible {
	color: var(--aew-accent);
}

/* WhatsApp button */
.aew-contact .aew-contact__wa {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 38px;
	padding: 10px 16px;
	background-color: #25d366;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.8px;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	color: #fff;
	transition: background-color 0.2s ease;
}

.aew-contact .aew-contact__wa:hover,
.aew-contact .aew-contact__wa:focus-visible {
	background-color: #1ebe5a;
	color: #fff;
}

.aew-contact__wa-icon {
	display: inline-flex;
	font-size: 14px;
	line-height: 1;
}

.aew-contact__wa-icon svg {
	width: 1em;
	height: 1em;
}

.aew-contact__wa:focus-visible,
.aew-contact__submit:focus-visible,
a.aew-contact__value:focus-visible {
	outline: 2px solid #111;
	outline-offset: 2px;
}

/* map */
.aew-contact__map {
	height: 173px;
	overflow: hidden;
	border: 1px solid #e8e8e8;
	background: #eef0f2;
}

.aew-contact__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---- Form ---- */

.aew-contact__form-card {
	min-width: 0;
	padding: 28px;
	border: 1px solid #ececec;
	background-color: #f9f9f9;
}

/* extra class so the Elementor kit's global h1–h6 styles don't win */
.aew-contact .aew-contact__form-title {
	margin: 0 0 22px;
	padding: 0;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.5px;
	line-height: 1.3;
	text-transform: uppercase;
	color: #111;
}

.aew-contact__form {
	margin: 0;
}

.aew-contact__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 19px 18px;
}

.aew-contact__field {
	min-width: 0;
}

.aew-contact__field--full {
	grid-column: 1 / -1;
}

.aew-contact .aew-contact__flabel {
	display: block;
	margin: 0 0 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.8px;
	line-height: 1.3;
	text-transform: uppercase;
	color: #111;
}

/* the kit styles every input, select and textarea; these selectors are more specific on purpose */
.aew-contact .aew-contact__input {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 15px;
	border: 1px solid #e5e5e5;
	border-radius: 0;
	background-color: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 12.25px;
	font-weight: 400;
	line-height: 1.3;
	color: #222;
	transition: border-color 0.2s ease;
}

.aew-contact .aew-contact__input:not(textarea) {
	height: 40px;
}

.aew-contact textarea.aew-contact__input {
	height: 92px;
	padding: 12px 15px;
	resize: vertical;
}

.aew-contact .aew-contact__input::placeholder {
	color: #949494;
	opacity: 1;
}

.aew-contact .aew-contact__input:focus {
	border-color: var(--aew-accent);
	outline: 0;
}

.aew-contact .aew-contact__input:focus-visible {
	outline: 2px solid var(--aew-accent);
	outline-offset: 1px;
}

/* select: own chevron instead of the browser's */
.aew-contact .aew-contact__select {
	height: 38px;
	padding-right: 38px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 12px;
	cursor: pointer;
}

.aew-contact .aew-contact__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 46px;
	margin: 23px 0 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 0;
	background-color: var(--aew-accent);
	box-shadow: none;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.8px;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.aew-contact .aew-contact__submit:hover,
.aew-contact .aew-contact__submit:focus-visible {
	background-color: #a50d26;
	color: #fff;
}

.aew-contact__submit-icon {
	display: inline-flex;
	font-size: 13px;
	line-height: 1;
}

.aew-contact__submit-icon svg {
	width: 1em;
	height: 1em;
}

.aew-contact .aew-contact__status {
	margin: 14px 0 0;
	font-size: 11.5px;
	line-height: 1.5;
	color: #444;
}

.aew-contact .aew-contact__status[hidden] {
	display: none;
}

.aew-contact__status a {
	color: var(--aew-accent);
	text-decoration: underline;
}

/* ---- Left label + form heading line ---- */

.aew-contact .aew-contact__side-title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 -4px;
	font-size: 11.2px;
	font-weight: 700;
	letter-spacing: 1.2px;
	line-height: 1.4;
	text-transform: uppercase;
}

.aew-contact .aew-contact__form-title--line {
	display: flex;
	align-items: center;
	gap: 14px;
}

.aew-contact .aew-contact__form-title--line::before {
	content: "";
	flex: none;
	width: 35px;
	height: 2px;
	background: var(--aew-accent);
}

/* ---- Contact Form 7 (shortcode) — looks like the built-in form ---- */

.aew-contact__cf7 .wpcf7 form {
	margin: 0;
}

.aew-contact__cf7 p {
	margin: 0;
}

.aew-contact__cf7 br {
	display: none;
}

.aew-contact__cf7 .aew-cf7-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 19px 18px;
}

.aew-contact__cf7 .aew-cf7-full {
	grid-column: 1 / -1;
}

.aew-contact__cf7 label {
	display: block;
	margin: 0 0 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.8px;
	line-height: 1.3;
	text-transform: uppercase;
	color: #111;
}

.aew-contact__cf7 .wpcf7-form-control-wrap {
	display: block;
}

.aew-contact .aew-contact__cf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.aew-contact .aew-contact__cf7 select,
.aew-contact .aew-contact__cf7 textarea {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0 15px;
	border: 1px solid #e5e5e5;
	border-radius: 0;
	background-color: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 12.25px;
	font-weight: 400;
	line-height: 1.3;
	color: #222;
	transition: border-color 0.2s ease;
}

.aew-contact .aew-contact__cf7 input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.aew-contact .aew-contact__cf7 select {
	height: 40px;
}

.aew-contact .aew-contact__cf7 textarea {
	height: 92px;
	padding: 12px 15px;
	resize: vertical;
}

.aew-contact .aew-contact__cf7 input::placeholder,
.aew-contact .aew-contact__cf7 textarea::placeholder {
	color: #949494;
	opacity: 1;
}

.aew-contact .aew-contact__cf7 input:focus,
.aew-contact .aew-contact__cf7 select:focus,
.aew-contact .aew-contact__cf7 textarea:focus {
	border-color: var(--aew-accent);
	outline: 0;
}

.aew-contact .aew-contact__cf7 input[type="submit"],
.aew-contact .aew-contact__cf7 button[type="submit"] {
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 23px 0 0;
	padding: 12px 18px;
	border: 0;
	border-radius: 0;
	background-color: var(--aew-accent);
	box-shadow: none;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.8px;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.aew-contact .aew-contact__cf7 input[type="submit"]:hover,
.aew-contact .aew-contact__cf7 button[type="submit"]:hover {
	background-color: #a50d26;
}

.aew-contact__cf7 .wpcf7-spinner {
	display: block;
	margin: 10px auto 0;
}

.aew-contact__cf7 .wpcf7-not-valid-tip {
	margin-top: 5px;
	font-size: 11px;
	color: var(--aew-accent);
}

.aew-contact__cf7 .wpcf7-response-output {
	margin: 16px 0 0;
	padding: 10px 14px;
	font-size: 12px;
	line-height: 1.5;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
	.aew-contact__cf7 .aew-cf7-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 900px) {
	.aew-contact__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {
	.aew-contact__fields {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (prefers-reduced-motion: reduce) {
	.aew-contact .aew-contact__wa,
	.aew-contact .aew-contact__submit,
	.aew-contact .aew-contact__input {
		transition: none;
	}
}
