/**
 * Contact Form 7 enquiry page (Figma 572:2008).
 * Global content width (--aibm-container) and site font (Spoof).
 *  - Page: padding 80 top/bottom; header gap 24; header → card 48
 *  - Eyebrow 14 bold #1B1464, tracking 1.5, 24×2 #38BDF8 line, gap 8
 *  - Title 40/48 #0F172A; lead 16/26 #475569
 *  - Card white, 1px #E2E8F0, radius 32, padding 48,
 *    shadow 0 16 20 rgba(3,8,23,.08)
 *  - Section title 24 bold; title → fields 20; fields gap 16;
 *    sections separated by a 1px #E2E8F0 rule with 32 above and below
 *  - Label 14 bold #0F172A, label → field 8
 *  - Field #F1F5F9, 1px #E2E8F0, radius 12, padding 14/18, 15px,
 *    placeholder #94A3B8; textarea 160 high
 *  - Submit full width #0F1396, 1px #38BDF8, radius 16, padding 16/32,
 *    16 bold white, shadow 0 8 8 rgba(15,19,150,.25)
 * Styles the form markup as Contact Form 7 outputs it, including the
 * country (countrySelect) and phone (intlTelInput) fields.
 *
 * @package AIBM
 * @author  Sameer Ali N
 */

.aibm-enq-page {
	--aibm-enq-navy: #0F1396;
	--aibm-enq-ink: #0F172A;
	--aibm-enq-eyebrow: #1B1464;
	--aibm-enq-muted: #475569;
	--aibm-enq-line: #E2E8F0;
	--aibm-enq-field: #F1F5F9;
	--aibm-enq-placeholder: #94A3B8;
	--aibm-enq-sky: #38BDF8;
	--aibm-enq-error: #DC2626;

	display: block;
	background: #fff;
	color: var(--aibm-enq-ink);
	font-family: var(--aibm-font-body);
}

.aibm-enq-page *,
.aibm-enq-page *::before,
.aibm-enq-page *::after {
	box-sizing: border-box;
}

.aibm-enq-page .aibm-enq__inner {
	width: 100%;
	max-width: calc(var(--aibm-container, 1340px) + var(--aibm-gutter, 40px) * 2);
	margin: 0 auto;
	padding: 0 var(--aibm-gutter, 40px);
}

.aibm-enq-page p,
.aibm-enq-page h1,
.aibm-enq-page h2,
.aibm-enq-page h5,
.aibm-enq-page label {
	font-family: var(--aibm-font-body);
	text-transform: none;
}

.aibm-enq {
	padding: 80px 0;
}

/* ---------------------------------------------------------------
   Header
--------------------------------------------------------------- */
.aibm-enq__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	margin-bottom: 48px;
}

.aibm-enq-page .aibm-enq__eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--aibm-enq-eyebrow);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

.aibm-enq__eyebrow span {
	flex: 0 0 24px;
	width: 24px;
	height: 2px;
	background: var(--aibm-enq-sky);
}

.aibm-enq-page .aibm-enq__title {
	margin: 0;
	color: var(--aibm-enq-ink);
	font-size: 40px;
	font-weight: 700;
	line-height: 48px;
	letter-spacing: -.3px;
}

.aibm-enq-page .aibm-enq__lead {
	margin: 0;
	color: var(--aibm-enq-muted);
	font-size: 16px;
	line-height: 26px;
}

.aibm-enq-page .aibm-enq__lead strong {
	color: var(--aibm-enq-ink);
	font-weight: 600;
}

/* ---------------------------------------------------------------
   Card
--------------------------------------------------------------- */
.aibm-enq__card {
	padding: 48px;
	border: 1px solid var(--aibm-enq-line);
	border-radius: 32px;
	background: #fff;
	box-shadow: 0 16px 20px rgba(3, 8, 23, .08);
}

.aibm-enq-page .aibm-enq__section,
.aibm-enq-page .aibm-enq__card .wpcf7 h5,
.aibm-enq-page .aibm-enq__card .wpcf7 .elementor-heading-title {
	/* Headings inside the form carry inline margins and colour. */
	margin: 0 0 20px !important;
	padding: 0;
	color: var(--aibm-enq-ink) !important;
	font-family: var(--aibm-font-body);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
}

.aibm-enq__missing {
	margin: 0;
	color: var(--aibm-enq-muted);
}

/* ---------------------------------------------------------------
   Contact Form 7
--------------------------------------------------------------- */
.aibm-enq-page .wpcf7 {
	margin: 0;
}

.aibm-enq-page .wpcf7 form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 16px;
	margin: 0;
}

.aibm-enq-page .wpcf7 form > * {
	grid-column: 1 / -1;
	min-width: 0;
}

/* Country and City share a row. */
.aibm-enq-page .wpcf7 form > p:has([data-name^="countrytext"]),
.aibm-enq-page .wpcf7 form > p:has([data-name*="-city-"]) {
	grid-column: auto;
}

.aibm-enq-page .wpcf7 form > p {
	margin: 0 0 16px;
	padding: 0;
}

.aibm-enq-page .wpcf7 form > p > br {
	display: none;
}

.aibm-enq-page .wpcf7 .elementor-widget-container {
	margin: 0;
	padding: 0;
}

.aibm-enq-page .wpcf7 label {
	display: block;
	margin: 0 0 8px;
	color: var(--aibm-enq-ink);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.aibm-enq-page .wpcf7 .wpcf7-form-control-wrap {
	display: block;
	position: relative;
	width: 100%;
}

/* Section rule: the form gives the <hr> an inline black background, so
   the background is clipped to the empty content box and the rule is
   drawn as a border. */
.aibm-enq-page .wpcf7 hr {
	display: block;
	height: 0;
	margin: 16px 0 32px;
	padding: 0;
	border: 0;
	border-top: 1px solid var(--aibm-enq-line);
	background-clip: content-box !important;
	opacity: 1;
}

/* Fields */
.aibm-enq-page .wpcf7 input[type="text"],
.aibm-enq-page .wpcf7 input[type="email"],
.aibm-enq-page .wpcf7 input[type="url"],
.aibm-enq-page .wpcf7 input[type="tel"],
.aibm-enq-page .wpcf7 input[type="number"],
.aibm-enq-page .wpcf7 input[type="date"],
.aibm-enq-page .wpcf7 select,
.aibm-enq-page .wpcf7 textarea {
	display: block;
	width: 100%;
	height: auto;
	min-height: 0;
	margin: 0;
	padding: 14px 18px;
	/* !important: the page's old Elementor CSS forces grey/red fields. */
	border: 1px solid var(--aibm-enq-line) !important;
	border-radius: 12px;
	background: var(--aibm-enq-field) !important;
	box-shadow: none;
	color: var(--aibm-enq-ink);
	font-family: var(--aibm-font-body);
	font-size: 15px;
	line-height: 20px;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.aibm-enq-page .wpcf7 textarea {
	height: 160px;
	line-height: 24px;
	resize: vertical;
}

.aibm-enq-page .wpcf7 input::placeholder,
.aibm-enq-page .wpcf7 textarea::placeholder {
	color: var(--aibm-enq-placeholder);
	opacity: 1;
}

.aibm-enq-page .wpcf7 input[type="text"]:hover,
.aibm-enq-page .wpcf7 input[type="email"]:hover,
.aibm-enq-page .wpcf7 input[type="url"]:hover,
.aibm-enq-page .wpcf7 input[type="tel"]:hover,
.aibm-enq-page .wpcf7 select:hover,
.aibm-enq-page .wpcf7 textarea:hover {
	border-color: #CBD5E1 !important;
}

.aibm-enq-page .wpcf7 input[type="text"]:focus,
.aibm-enq-page .wpcf7 input[type="email"]:focus,
.aibm-enq-page .wpcf7 input[type="url"]:focus,
.aibm-enq-page .wpcf7 input[type="tel"]:focus,
.aibm-enq-page .wpcf7 select:focus,
.aibm-enq-page .wpcf7 textarea:focus {
	border-color: var(--aibm-enq-navy) !important;
	outline: 0;
	background: #fff !important;
	box-shadow: 0 0 0 3px rgba(15, 19, 150, .12);
}

/* Country (countrySelect) and phone (intlTelInput) fields: full width,
   room for the flag button. */
.aibm-enq-page .wpcf7 .country-select,
.aibm-enq-page .wpcf7 .intl-tel-input {
	display: block;
	width: 100%;
}

.aibm-enq-page .wpcf7 .country-select.inside input,
.aibm-enq-page .wpcf7 .intl-tel-input.allow-dropdown input,
.aibm-enq-page .wpcf7 .intl-tel-input.separate-dial-code input {
	padding-left: 76px;
}

.aibm-enq-page .wpcf7 .country-select .flag-dropdown,
.aibm-enq-page .wpcf7 .intl-tel-input .flag-container {
	z-index: 2;
}

/* Flag button: 18px in from the field edge, flag (20px) then the
   arrow, with a clear gap between them. */
.aibm-enq-page .wpcf7 .country-select .selected-flag,
.aibm-enq-page .wpcf7 .intl-tel-input .selected-flag {
	width: 64px;
	padding: 0 0 0 18px;
	border-radius: 12px 0 0 12px;
	background: transparent;
}

.aibm-enq-page .wpcf7 .country-select .selected-flag .arrow,
.aibm-enq-page .wpcf7 .intl-tel-input .selected-flag .iti-arrow {
	right: 10px;
	left: auto;
}

.aibm-enq-page .wpcf7 .country-select .country-list,
.aibm-enq-page .wpcf7 .intl-tel-input .country-list {
	/* The list hangs from the small flag button, so it gets its own width
	   (wide enough for country names, never wider than the screen). */
	width: min(360px, calc(100vw - 72px));
	max-width: none;
	margin-top: 6px;
	border: 1px solid var(--aibm-enq-line);
	border-radius: 12px;
	box-shadow: 0 16px 32px rgba(3, 8, 23, .12);
	font-family: var(--aibm-font-body);
	font-size: 14px;
}

/* Submit */
.aibm-enq-page .wpcf7 form > p:has(.wpcf7-submit) {
	position: relative;
	margin: 16px 0 0;
}

.aibm-enq-page .wpcf7 .wpcf7-submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	min-height: 54px;
	margin: 0;
	padding: 16px 32px;
	border: 1px solid var(--aibm-enq-sky);
	border-radius: 16px;
	background: var(--aibm-enq-navy);
	box-shadow: 0 8px 8px rgba(15, 19, 150, .25);
	color: #fff;
	font-family: var(--aibm-font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 20px;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.aibm-enq-page .wpcf7 .wpcf7-submit:hover {
	background: #0B0E7A;
	box-shadow: 0 10px 14px rgba(15, 19, 150, .3);
}

.aibm-enq-page .wpcf7 .wpcf7-submit:focus-visible {
	outline: 3px solid rgba(56, 189, 248, .6);
	outline-offset: 2px;
}

.aibm-enq-page .wpcf7 .wpcf7-submit:disabled {
	opacity: .7;
	cursor: wait;
}

/* Spinner sits inside the button, on the right. */
.aibm-enq-page .wpcf7 .wpcf7-spinner {
	position: absolute;
	top: 50%;
	right: 20px;
	margin: -12px 0 0;
	background-color: rgba(255, 255, 255, .35);
}

/* Validation and response messages */
.aibm-enq-page .wpcf7 input.wpcf7-not-valid,
.aibm-enq-page .wpcf7 select.wpcf7-not-valid,
.aibm-enq-page .wpcf7 textarea.wpcf7-not-valid {
	border-color: var(--aibm-enq-error) !important;
	background: #FEF2F2 !important;
}

.aibm-enq-page .wpcf7 .wpcf7-not-valid-tip {
	display: block;
	margin-top: 6px;
	color: var(--aibm-enq-error);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.aibm-enq-page .wpcf7 form .wpcf7-response-output {
	margin: 20px 0 0;
	padding: 14px 18px;
	border: 1px solid var(--aibm-enq-line);
	border-radius: 12px;
	background: var(--aibm-enq-field);
	color: var(--aibm-enq-ink);
	font-size: 14px;
	line-height: 1.5;
}

.aibm-enq-page .wpcf7 form.invalid .wpcf7-response-output,
.aibm-enq-page .wpcf7 form.unaccepted .wpcf7-response-output,
.aibm-enq-page .wpcf7 form.payment-required .wpcf7-response-output {
	border-color: #FCA5A5;
	background: #FEF2F2;
	color: #991B1B;
}

.aibm-enq-page .wpcf7 form.failed .wpcf7-response-output,
.aibm-enq-page .wpcf7 form.aborted .wpcf7-response-output,
.aibm-enq-page .wpcf7 form.spam .wpcf7-response-output {
	border-color: #FCA5A5;
	background: #FEF2F2;
	color: #991B1B;
}

.aibm-enq-page .wpcf7 form.sent .wpcf7-response-output {
	border-color: #86EFAC;
	background: #F0FDF4;
	color: #166534;
}

.aibm-enq-page .wpcf7 form.init .wpcf7-response-output,
.aibm-enq-page .wpcf7 form.resetting .wpcf7-response-output,
.aibm-enq-page .wpcf7 form.submitting .wpcf7-response-output {
	display: none;
}

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 1099px) {
	.aibm-enq {
		padding: 64px 0;
	}

	.aibm-enq-page .aibm-enq__title {
		font-size: 34px;
		line-height: 42px;
	}

	.aibm-enq__card {
		padding: 40px;
		border-radius: 28px;
	}
}

@media (max-width: 767px) {
	.aibm-enq {
		padding: 44px 0 56px;
	}

	.aibm-enq__head {
		gap: 14px;
		margin-bottom: 28px;
	}

	.aibm-enq-page .aibm-enq__eyebrow {
		font-size: 12px;
		letter-spacing: 1px;
	}

	.aibm-enq-page .aibm-enq__title {
		font-size: 28px;
		line-height: 35px;
		letter-spacing: -.2px;
	}

	.aibm-enq-page .aibm-enq__lead {
		font-size: 15px;
		line-height: 24px;
	}

	.aibm-enq__card {
		padding: 24px 18px;
		border-radius: 20px;
		box-shadow: 0 10px 16px rgba(3, 8, 23, .07);
	}

	.aibm-enq-page .aibm-enq__section,
	.aibm-enq-page .aibm-enq__card .wpcf7 h5,
	.aibm-enq-page .aibm-enq__card .wpcf7 .elementor-heading-title {
		margin-bottom: 16px !important;
		font-size: 20px;
	}

	/* One column: Country and City stack. */
	.aibm-enq-page .wpcf7 form {
		display: block;
	}

	.aibm-enq-page .wpcf7 hr {
		margin: 12px 0 24px;
	}

	.aibm-enq-page .wpcf7 input[type="text"],
	.aibm-enq-page .wpcf7 input[type="email"],
	.aibm-enq-page .wpcf7 input[type="url"],
	.aibm-enq-page .wpcf7 input[type="tel"],
	.aibm-enq-page .wpcf7 select,
	.aibm-enq-page .wpcf7 textarea {
		font-size: 16px; /* no zoom on iOS */
	}

	.aibm-enq-page .wpcf7 textarea {
		height: 140px;
	}
}
