/*
 * Contact page (v5) — three sections, marker prefix `ab-contact-`.
 *   1. ab-contact-hero  — light-blue band: eyebrow, headline, lede + 3 info boxes
 *   2. ab-contact-faq   — "Fastest route" deflection cards (self-serve answers)
 *   3. ab-contact-form  — message form + contact-details card
 *
 * Colours: tokens where they map cleanly (ab-navy #053A66, ab-blue #0D72BA,
 * neutral scale, orange). Design-only shades that have no token stay literal and
 * are scoped to these classes: Primary-100 #E6F1F9, Primary-300 #5BA3D6, the
 * FAQ hairline #E9E9E9. Values follow the Figma Contact spec exactly.
 * Loaded conditionally by inc/enqueue.php (marker `ab-contact-`).
 */

/* Sections butt together; each owns its vertical rhythm via padding. */
.ab-contact-hero *,
.ab-contact-faq *,
.ab-contact-form * { box-sizing: border-box; }

/* ============================================================= *
 * 1. HERO — "How can we help you?"                              *
 * ============================================================= */
.ab-contact-hero {
	background: #E6F1F9; /* Primary-100 (no token) */
	padding-top: 150px;
	padding-bottom: 150px;
}
.ab-contact-hero > .ab-contact-hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

/* Copy block: eyebrow + headline + lede, closed by a hairline rule. */
.ab-contact-hero__text {
	width: 100%;
	max-width: 1200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding-bottom: 20px;
	border-bottom: 0.6px solid #5BA3D6; /* Primary-300 */
}
.ab-contact-hero .ab-contact-eyebrow {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--wp--custom--neutral--900);
}
.ab-contact-hero__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 64px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0;
	text-align: center;
	text-transform: capitalize;
	color: var(--wp--custom--neutral--900);
}
.ab-contact-hero__lede {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 20px;
	font-weight: 400;
	line-height: 1; /* spec: 100% */
	text-align: center;
	text-transform: capitalize;
	color: var(--wp--custom--neutral--900);
}

/* Three info boxes, centred as a group (not stretched full width). */
.ab-contact-hero__boxes {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 30px;
}
.ab-contact-hero__box {
	flex: 0 0 auto;
	min-width: 200px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 25px;
	border: 0.6px solid var(--wp--custom--neutral--300);
	text-align: center;
}
.ab-contact-hero__box-title {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 20px;
	font-weight: 500;
	line-height: 1; /* spec: 100% */
	text-transform: capitalize;
	white-space: nowrap;
	color: var(--wp--custom--primary--700);
}
.ab-contact-hero__box-lines {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ab-contact-hero__box-line {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 20px;
	font-weight: 400;
	line-height: 1; /* spec: 100% */
	text-transform: capitalize;
	white-space: nowrap;
	color: var(--wp--custom--neutral--700);
}

/* ============================================================= *
 * 2. FAQ — "Most questions are already answered."               *
 * ============================================================= */
.ab-contact-faq {
	background: #fff;
	padding-top: 100px;
	padding-bottom: 100px;
	border-bottom: 1px solid #E9E9E9;
}
.ab-contact-faq__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 30px;
}
.ab-contact-faq__text {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ab-contact-faq .ab-contact-eyebrow--blue {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--wp--preset--color--ab-blue);
}
.ab-contact-faq__title {
	margin: 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 42px;
	font-weight: 600;
	line-height: 1;
	text-transform: capitalize;
	color: #053A66; /* Primary-900 = ab-navy */
}
.ab-contact-faq__lede {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--wp--custom--neutral--700);
}

/* Three self-serve cards. */
.ab-contact-faq__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.ab-contact-card {
	display: flex;
	flex-direction: column;
	min-height: 330px; /* spec card height 330.4 — links settle to the bottom */
	padding: 30px;
	background: #fff;
	border: 1px solid var(--wp--custom--neutral--200);
	border-radius: 8px;
}
.ab-contact-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid #BFDCF2;
	border-radius: 8px;
	color: var(--wp--preset--color--ab-blue);
	background: #F3F9FE;
}
.ab-contact-card__icon svg { width: 22px; height: 22px; }
.ab-contact-card__title {
	margin: 24px 0 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--wp--custom--neutral--900);
}
.ab-contact-card__desc {
	margin: 12px 0 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--wp--custom--neutral--700);
}
.ab-contact-card__link {
	margin-top: auto;
	padding-top: 20px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
	font-weight: 500;
	color: var(--wp--preset--color--ab-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ab-contact-card__link:hover,
.ab-contact-card__link:focus { color: #053A66; }

/* ============================================================= *
 * 3. CONTACT FORM — "Write to us directly."                     *
 * ============================================================= */
.ab-contact-form {
	background: var(--wp--custom--neutral--50); /* #FAF8F4 warm off-white */
	padding-top: 100px;
	padding-bottom: 100px;
}
.ab-contact-form__inner {
	max-width: 1200px;
	margin: 0 auto;
}
.ab-contact-form .ab-contact-eyebrow--blue {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	color: var(--wp--preset--color--ab-blue);
}
.ab-contact-form__title {
	margin: 10px 0 0;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 42px;
	font-weight: 600;
	line-height: 1;
	text-transform: capitalize;
	color: #053A66;
}
.ab-contact-form__grid {
	margin-top: 40px;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 30px;
	align-items: start;
}

/* --- message form (left) --- */
.ab-contact-form__panel {
	padding: 30px;
	background: #fff;
	border: 1px solid var(--wp--custom--neutral--200);
	border-radius: 8px;
}
.ab-contact-form__field { margin-bottom: 22px; }
.ab-contact-form__field:last-of-type { margin-bottom: 0; }
.ab-contact-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}
.ab-contact-label {
	display: block;
	margin-bottom: 8px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--custom--neutral--900);
}
.ab-contact-label__hint {
	font-weight: 400;
	color: var(--wp--custom--neutral--500);
}
.ab-contact-input,
.ab-contact-select,
.ab-contact-textarea {
	width: 100%;
	padding: 13px 16px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
	line-height: 1.4;
	color: var(--wp--custom--neutral--900);
	background: #fff;
	border: 1px solid var(--wp--custom--neutral--200);
	border-radius: 6px;
}
.ab-contact-input::placeholder,
.ab-contact-textarea::placeholder { color: var(--wp--custom--neutral--400); }
.ab-contact-input:focus,
.ab-contact-select:focus,
.ab-contact-textarea:focus {
	outline: 2px solid var(--wp--preset--color--ab-blue);
	outline-offset: 1px;
	border-color: var(--wp--preset--color--ab-blue);
}
.ab-contact-select {
	appearance: none;
	color: var(--wp--custom--neutral--400);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23B4B4B4' stroke-width='1.6' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
	cursor: pointer;
}
.ab-contact-textarea { resize: vertical; min-height: 120px; }

.ab-contact-form__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 22px 0;
}
.ab-contact-form__consent input {
	margin: 2px 0 0;
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	accent-color: var(--wp--preset--color--ab-blue);
}
.ab-contact-form__consent label {
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--custom--neutral--700);
}
.ab-contact-form__submit {
	padding: 13px 30px;
	border: 0;
	border-radius: 6px;
	background: var(--wp--preset--color--ab-orange);
	color: #fff;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
}
.ab-contact-form__submit:hover,
.ab-contact-form__submit:focus { background: var(--wp--preset--color--ab-orange-600); }
.ab-contact-form__note {
	margin: 18px 0 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 13px;
	color: var(--wp--custom--neutral--500);
}
.ab-contact-form__note a { color: var(--wp--preset--color--ab-blue); }

/* --- contact-details card (right) --- */
.ab-contact-info {
	padding: 30px;
	background: #fff;
	border: 1px solid var(--wp--custom--neutral--200);
	border-radius: 8px;
}
.ab-contact-info__row {
	display: flex;
	gap: 16px;
	padding: 22px 0;
	border-top: 1px solid var(--wp--custom--neutral--200);
}
.ab-contact-info__row:first-child { padding-top: 0; border-top: 0; }
.ab-contact-info__row:last-child { padding-bottom: 0; }
.ab-contact-info__icon {
	flex: 0 0 auto;
	color: var(--wp--preset--color--ab-blue);
}
.ab-contact-info__icon svg { width: 22px; height: 22px; display: block; }
.ab-contact-info__label {
	margin: 0 0 8px;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--wp--custom--neutral--500);
}
.ab-contact-info__value {
	margin: 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 17px;
	line-height: 1.5;
	color: var(--wp--custom--neutral--900);
}
.ab-contact-info__value a { color: var(--wp--preset--color--ab-blue); text-decoration: none; }
.ab-contact-info__value a:hover { text-decoration: underline; }
.ab-contact-info__hint {
	margin: 4px 0 0;
	font-family: var(--wp--preset--font-family--sans);
	font-size: 14px;
	line-height: 1.45;
	color: var(--wp--custom--neutral--700);
}
.ab-contact-info__maps {
	display: inline-block;
	margin-top: 6px;
	font-size: 15px;
	font-weight: 500;
	color: var(--wp--preset--color--ab-blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.ab-contact-info__socials {
	display: flex;
	gap: 10px;
	margin-top: 4px;
}
.ab-contact-info__socials a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--wp--custom--neutral--100);
	color: var(--wp--custom--neutral--500);
}
.ab-contact-info__socials a:hover,
.ab-contact-info__socials a:focus {
	background: var(--wp--preset--color--ab-blue);
	color: #fff;
}
.ab-contact-info__socials svg { width: 18px; height: 18px; }

/* ============================================================= *
 * Responsive                                                    *
 * ============================================================= */
@media (max-width: 1000px) {
	.ab-contact-faq__cards { grid-template-columns: 1fr; }
	.ab-contact-form__grid { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
	.ab-contact-hero { padding-top: 80px; padding-bottom: 80px; }
	.ab-contact-hero__title { font-size: 40px; }
	.ab-contact-hero__lede { font-size: 18px; line-height: 1.35; }
	.ab-contact-hero__boxes { flex-direction: column; align-items: stretch; }
	.ab-contact-hero__box { flex-basis: auto; min-width: 0; }
	.ab-contact-hero__box-title,
	.ab-contact-hero__box-line { white-space: normal; }
	.ab-contact-faq,
	.ab-contact-form { padding-top: 60px; padding-bottom: 60px; }
	.ab-contact-faq__title,
	.ab-contact-form__title { font-size: 32px; }
	.ab-contact-form__row { grid-template-columns: 1fr; gap: 22px; }
}
