.aai-wrap {
	--aai-primary: #0F3D30;
	--aai-accent: #3AB07A;
	--aai-accent-dark: #2C8F63;
	--aai-text: #1C231F;
	--aai-text-muted: #6B7570;
	--aai-border: #DCE6E1;
	--aai-bad-bg: #FBE7E4;
	--aai-bad-fg: #B23A2E;
	--aai-warn-bg: #FBEEDD;
	--aai-warn-fg: #92590B;
	--aai-good-bg: #E3F1EC;
	--aai-good-fg: #1A5C4A;

	max-width: 620px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--aai-text);
	box-sizing: border-box;
}

.aai-wrap, .aai-wrap * {
	box-sizing: border-box;
}

/* ---- intro header ---- */

.aai-intro {
	text-align: center;
	margin-bottom: 22px;
}

.aai-intro-icon {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--aai-good-bg);
	color: var(--aai-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
}

.aai-intro-icon svg {
	width: 22px;
	height: 22px;
}

.aai-eyebrow {
	font-size: 11px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--aai-accent-dark);
	font-weight: 700;
	margin: 0 0 8px;
}

.aai-headline {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 27px;
	font-weight: 400;
	color: var(--aai-primary);
	margin: 0 0 10px;
	line-height: 1.25;
}

.aai-subhead {
	font-size: 14px;
	color: var(--aai-text-muted);
	line-height: 1.6;
	max-width: 460px;
	margin: 0 auto;
}

/* ---- emergency note ---- */

.aai-emergency-note {
	background: var(--aai-warn-bg);
	color: var(--aai-warn-fg);
	border: 1px solid #EAD1A0;
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 13px;
	margin-bottom: 22px;
	line-height: 1.5;
	text-align: center;
}

.aai-emergency-note a {
	color: var(--aai-warn-fg);
	font-weight: 600;
}

/* ---- form card ---- */

.aai-form {
	background: #fff;
	border: 1px solid var(--aai-border);
	border-radius: 18px;
	padding: 32px;
	box-shadow: 0 4px 20px rgba(15, 61, 48, 0.06);
}

.aai-field {
	margin-bottom: 18px;
}

.aai-row-group {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.aai-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--aai-primary);
	margin-bottom: 7px;
}

.aai-optional {
	font-weight: 400;
	color: var(--aai-text-muted);
	text-transform: lowercase;
	font-size: 11.5px;
}

.aai-section-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--aai-accent-dark);
	margin: 26px 0 16px;
	padding-top: 18px;
	border-top: 1px solid var(--aai-border);
}

.aai-field:first-of-type + .aai-section-label,
.aai-form > .aai-section-label:first-child {
	border-top: none;
	padding-top: 0;
	margin-top: 4px;
}

.aai-form input[type="text"],
.aai-form input[type="email"],
.aai-form input[type="tel"],
.aai-form select,
.aai-form textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1px solid var(--aai-border);
	border-radius: 9px;
	font-size: 14px;
	font-family: inherit;
	color: var(--aai-text);
	background: #fff;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.aai-form input::placeholder,
.aai-form textarea::placeholder {
	color: #A7B0AB;
}

.aai-form input:focus,
.aai-form select:focus,
.aai-form textarea:focus {
	outline: none;
	border-color: var(--aai-accent);
	box-shadow: 0 0 0 3px rgba(58, 176, 122, 0.15);
}

.aai-form input.is-invalid,
.aai-form select.is-invalid {
	border-color: var(--aai-bad-fg);
}

.aai-form textarea {
	resize: vertical;
}

/* ---- icon fields ---- */

.aai-input-wrap {
	position: relative;
}

.aai-icon {
	position: absolute;
	left: 13px;
	top: 50%;
	transform: translateY(-50%);
	width: 17px;
	height: 17px;
	color: var(--aai-text-muted);
	pointer-events: none;
	display: flex;
}

.aai-icon svg {
	width: 100%;
	height: 100%;
}

.aai-form .aai-field-icon .aai-input-wrap input {
	padding-left: 40px;
}

/* ---- custom select arrow ---- */

.aai-select-wrap {
	position: relative;
}

.aai-select-wrap::after {
	content: "";
	position: absolute;
	right: 15px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 1.6px solid var(--aai-text-muted);
	border-bottom: 1.6px solid var(--aai-text-muted);
	transform: translateY(-65%) rotate(45deg);
	pointer-events: none;
}

.aai-select-wrap select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 34px;
}

/* ---- field-level errors ---- */

.aai-field-error {
	display: block;
	font-size: 12px;
	color: var(--aai-bad-fg);
	margin-top: 5px;
	min-height: 0;
}

.aai-field-error:empty {
	display: none;
}

/* ---- consent ---- */

.aai-consent-row {
	background: #F5F8F7;
	border-radius: 10px;
	padding: 14px 16px;
}

.aai-checkbox-label {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	font-size: 12.5px !important;
	font-weight: 400 !important;
	color: var(--aai-text-muted);
	cursor: pointer;
	margin-bottom: 0 !important;
}

.aai-checkbox-label input {
	margin-top: 2px;
	flex-shrink: 0;
	width: 15px;
	height: 15px;
	accent-color: var(--aai-accent);
}

/* Honeypot: kept in normal document flow (not display:none) so simple
   bots that skip hidden fields still fill it in, but invisible and
   unreachable for a real visitor using a mouse, touchscreen, or
   keyboard. */
.aai-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- submit button ---- */

.aai-submit-btn {
	width: 100%;
	background: var(--aai-accent);
	color: #fff;
	border: none;
	border-radius: 30px;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	margin-top: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.aai-submit-btn:hover {
	background: var(--aai-accent-dark);
}

.aai-submit-btn:disabled {
	opacity: 0.75;
	cursor: default;
}

.aai-spinner {
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	animation: aai-spin 0.7s linear infinite;
}

@keyframes aai-spin {
	to { transform: rotate(360deg); }
}

/* ---- messages ---- */

.aai-error {
	background: var(--aai-bad-bg);
	color: var(--aai-bad-fg);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 16px;
}

.aai-success {
	background: #fff;
	border: 1px solid var(--aai-border);
	border-radius: 18px;
	padding: 40px 32px;
	text-align: center;
	box-shadow: 0 4px 20px rgba(15, 61, 48, 0.06);
}

.aai-success-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--aai-good-bg);
	color: var(--aai-good-fg);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.aai-success-icon svg {
	width: 26px;
	height: 26px;
}

.aai-success-title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 22px;
	color: var(--aai-primary);
	margin: 0 0 10px;
}

.aai-success p {
	font-size: 14.5px;
	color: var(--aai-text);
	line-height: 1.6;
	max-width: 420px;
	margin: 0 auto 10px;
}

.aai-success-sub {
	font-size: 12.5px !important;
	color: var(--aai-text-muted) !important;
}

.aai-success-sub a {
	color: var(--aai-good-fg);
	font-weight: 600;
}

@media (max-width: 560px) {
	.aai-row-group {
		grid-template-columns: 1fr;
		gap: 0;
	}
	.aai-form {
		padding: 22px;
	}
	.aai-headline {
		font-size: 23px;
	}
}
