/* ASPIRE Contact Log - enquiry modal */

.acl-modal[hidden] { display: none; }

.acl-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 4vh 16px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.acl-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 32, 47, 0.62);
	backdrop-filter: blur(2px);
	animation: acl-fade 0.22s ease both;
}

.acl-modal__dialog {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 640px;
	margin: auto;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 24px 60px rgba(0, 57, 82, 0.28);
	animation: acl-rise 0.26s cubic-bezier(0.16, 1, 0.3, 1) both;
	overflow: hidden;
}

@keyframes acl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes acl-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	.acl-modal__overlay, .acl-modal__dialog { animation: none; }
}

.acl-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	width: 36px;
	height: 36px;
	line-height: 1;
	font-size: 26px;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.14);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease;
}

.acl-modal__close:hover { background: rgba(255, 255, 255, 0.3); }

.acl-modal__head {
	background: #003952;
	padding: 30px 32px 26px;
	border-bottom: 4px solid #02a6df;
}

.acl-modal__eyebrow {
	margin: 0 0 8px;
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #02a6df;
	line-height: 1.4;
}

.acl-modal__title {
	margin: 0 0 10px;
	font-size: 26px;
	line-height: 1.25;
	color: #ffffff;
	font-weight: 700;
}

.acl-modal__intro {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	font-weight: 400;
	color: #d7e6ee;
}

.acl-modal__body { padding: 26px 32px 30px; }

.acl-inline-wrap {
	background: #ffffff;
	border: 1px solid #d9e3ea;
	border-radius: 10px;
	padding: 30px 32px;
}

/* Fields */

.acl-form__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.acl-field {
	flex: 1 1 calc(50% - 8px);
	min-width: 220px;
	margin: 0 !important;
}

.acl-field--full { flex: 1 1 100%; }

.acl-field label,
.acl-consent span {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #003952;
	line-height: 1.4;
}

.acl-req { color: #02a6df; }

.acl-form input[type="text"],
.acl-form input[type="email"],
.acl-form input[type="tel"],
.acl-form select,
.acl-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	font-size: 15px;
	line-height: 1.5;
	font-family: inherit;
	color: #334155;
	background: #ffffff;
	border: 1px solid #d9e3ea;
	border-radius: 6px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.acl-form select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1.4 0 6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}

.acl-form textarea { resize: vertical; min-height: 96px; }

.acl-form input:focus,
.acl-form select:focus,
.acl-form textarea:focus {
	outline: none;
	border-color: #02a6df;
	box-shadow: 0 0 0 3px rgba(2, 166, 223, 0.18);
}

.acl-form .acl-error input,
.acl-form .acl-error select,
.acl-form .acl-error textarea { border-color: #c0392b; }

.acl-field__msg {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: #c0392b;
	font-weight: 500;
}

/* Consent */

.acl-consent { margin: 18px 0 0 !important; }

.acl-consent label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
}

.acl-consent input[type="checkbox"] {
	margin-top: 3px;
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	accent-color: #02a6df;
}

.acl-consent span {
	display: inline;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	color: #6b7280;
	line-height: 1.5;
}

.acl-consent .acl-req { display: inline; }

.acl-consent a { color: #02a6df; text-decoration: underline; }
.acl-consent a:hover { color: #003952; }

/* Footer row */

.acl-form__foot {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid #d9e3ea;
	flex-wrap: wrap;
}

.acl-captcha {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 !important;
	flex: 1 1 auto;
}

.acl-captcha label {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #003952;
	white-space: nowrap;
}

.acl-captcha input { width: 86px !important; text-align: center; }

.acl-submit {
	display: inline-block;
	padding: 13px 26px;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	color: #ffffff !important;
	background: #02a6df;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	line-height: 1.3;
	transition: background 0.2s ease, transform 0.12s ease;
	text-decoration: none;
}

.acl-submit:hover { background: #003952; color: #ffffff !important; }
.acl-submit:active { transform: translateY(1px); }
.acl-submit[disabled] { opacity: 0.6; cursor: progress; }

.acl-submit--ghost {
	background: transparent;
	color: #003952 !important;
	border: 1px solid #d9e3ea;
	margin-top: 18px;
}

.acl-submit--ghost:hover { background: #003952; color: #ffffff !important; }

/* Honeypot */

.acl-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Status + success */

.acl-form__status {
	display: none;
	margin-top: 16px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.5;
	border-radius: 6px;
	background: #fdecea;
	border: 1px solid #f5c6c2;
	color: #a5342a;
}

.acl-form__status.is-visible { display: block; }

.acl-success { text-align: center; padding: 12px 0 6px; }
.acl-success[hidden] { display: none; }
.acl-success__tick { margin-bottom: 14px; }

.acl-success h3 {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.3;
	color: #003952;
	font-weight: 700;
}

.acl-success p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #334155;
}

/* Shortcode CTA */

.acl-cta-wrap { display: block; }
.acl-align-center { text-align: center; }
.acl-align-right { text-align: right; }

.acl-cta {
	display: inline-block;
	padding: 14px 28px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	text-decoration: none !important;
	line-height: 1.3;
	transition: background 0.2s ease, color 0.2s ease;
}

.acl-cta--primary { background: #02a6df; color: #ffffff !important; }
.acl-cta--primary:hover { background: #003952; color: #ffffff !important; }

.acl-cta--secondary { background: #003952; color: #ffffff !important; }
.acl-cta--secondary:hover { background: #02a6df; color: #ffffff !important; }

.acl-cta--outline {
	background: transparent;
	color: #003952 !important;
	border: 2px solid #003952;
}

.acl-cta--outline:hover { background: #003952; color: #ffffff !important; }

body.acl-modal-open { overflow: hidden; }

/* Tablet and mobile */

@media (max-width: 767px) {
	.acl-modal { padding: 0; align-items: stretch; }

	.acl-modal__dialog {
		max-width: 100%;
		min-height: 100%;
		border-radius: 0;
		margin: 0;
	}

	.acl-modal__head { padding: 26px 20px 22px; }
	.acl-modal__title { font-size: 22px; }
	.acl-modal__intro { font-size: 14px; }
	.acl-modal__body { padding: 22px 20px 34px; }
	.acl-inline-wrap { padding: 24px 20px; }

	.acl-field { flex: 1 1 100%; min-width: 0; }

	.acl-form__foot { flex-direction: column; align-items: stretch; }
	.acl-captcha { justify-content: space-between; }
	.acl-submit { width: 100%; text-align: center; }
}
