/**
 * Brochures — the e-brochure request form (apextion/brochure-form).
 *
 * Mirrors the live brochures.aspx: a white card at 55% width, two-column
 * rows, full-width inputs, the note above the consent checkbox and a black
 * submit button. Values are the live computed styles (its inline <style>
 * layered under style.css and Bootstrap), so the inputs keep the legacy
 * Lato / 12px / #ddd look and the select keeps Bootstrap's .form-control.
 *
 * Scoped to .ax-bro-form so the shared form engine's contact form is not
 * affected, and set in full so its styles cannot leak in either.
 */

/* Live: .container-fluid.mb-1 > .col-12.mt-1 */
.ax-bro {
	margin-bottom: 4px;
	padding: 0 15px;
}

.ax-bro__col {
	position: relative;
	margin-top: 4px;
	padding: 0 15px;
}

.ax-bro-form {
	width: 55%;
	margin: 40px auto;
	padding: 20px 40px;
	border-radius: 7px;
	background-color: #fff;
	color: #212529;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.ax-bro-form .apextion-form__title {
	margin: 0 0 5px;
	padding: 30px 0 0;
	color: #212529;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
}

.ax-bro-form .apextion-form__desc {
	margin: 0 0 30px;
	color: #555;
	font-size: 13px;
	line-height: 1.4;
	text-align: center;
}

/* The note sits between the fields and the consent box, as on live. */
.ax-bro-form .apextion-form__form {
	display: flex;
	flex-direction: column;
	margin: 0;
}

.ax-bro-form .apextion-form__note {
	order: 1;
	margin: 10px 0 0;
	color: #444;
	font-size: 12px;
	line-height: 1.4;
}

.ax-bro-form .apextion-form__row:has(.apextion-form__consent) {
	order: 2;
}

.ax-bro-form .apextion-form__submit {
	order: 3;
}

.ax-bro-form .apextion-form__row--two {
	display: flex;
	gap: 50px;
}

.ax-bro-form .apextion-form__row--two > .apextion-form__field {
	width: 100%;
}

.ax-bro-form label {
	display: block;
	margin: 0 0 5px;
	color: #000;
	font-size: 14px;
	font-weight: 700;
	line-height: 21px;
}

.ax-bro-form .apextion-form__required {
	color: inherit;
}

.ax-bro-form input[type="text"],
.ax-bro-form input[type="email"],
.ax-bro-form input[type="tel"],
.ax-bro-form select {
	display: block;
	width: 100%;
	height: 44px;
	margin: 0 0 22px;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 1px;
	background: #fff;
	color: #7a7a7a;
	font-family: "Lato", sans-serif;
	font-size: 12px;
	line-height: 18px;
	transition: all 0.3s ease-in;
}

.ax-bro-form input[type="text"]:focus,
.ax-bro-form input[type="email"]:focus,
.ax-bro-form input[type="tel"]:focus {
	border-color: #b3b3b3;
}

.ax-bro-form select {
	padding: 6px 12px;
	border-color: #ced4da;
	border-radius: 4px;
	color: #495057;
	font-size: 16px;
	font-weight: 400;
	line-height: normal;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.ax-bro-form select:focus {
	border-color: #80bdff;
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.ax-bro-form .apextion-form__consent {
	display: flex;
	align-items: start;
	gap: 10px;
	margin-top: 20px;
}

.ax-bro-form .apextion-form__consent input {
	display: block;
	width: 18px;
	height: 18px;
	margin: 3px 0 22px;
	padding: 0;
}

.ax-bro-form .apextion-form__submit {
	display: block;
	width: 100%;
	/* 22px margin plus the empty line the live <br><br> leaves below. */
	margin: 25px 0 46px;
	padding: 14px;
	border: none;
	border-radius: 4px;
	background: #000;
	color: #fff;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
	/* An <input type="submit"> on live: the label never wraps. */
	white-space: nowrap;
	overflow: hidden;
	cursor: pointer;
}

.ax-bro-form .apextion-form__submit:hover {
	background: #333;
}

/* Honeypot: off screen rather than display:none. */
.ax-bro-form .apextion-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	margin: 0;
	overflow: hidden;
}

/* Validation messages and the thank-you notice (no live equivalent). */
.ax-bro-form .apextion-form__error {
	margin: -18px 0 18px;
	color: red;
	font-size: 13px;
	line-height: 1.4;
}

.ax-bro-form .apextion-form__consent + .apextion-form__error {
	margin-top: -18px;
}

.ax-bro-form .is-invalid input:not([type="checkbox"]),
.ax-bro-form .is-invalid select {
	border-color: red;
}

.ax-bro-form .apextion-form__notice {
	margin: 0 0 20px;
	padding: 12px 15px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.ax-bro-form .apextion-form__notice--success {
	margin-bottom: 44px;
	background: #e6f4ea;
	color: #1e6b34;
}

.ax-bro-form .apextion-form__notice--error {
	background: #fdecea;
	color: red;
}
