/* ==========================================================================
   Asset Avenues form system
   One set of rules for every form on the site: lead / callback and brochure (with the
   email OTP step), careers applications with CV upload, referral, investor sessions,
   newsletter sign-ups, plus the calculator number boxes. Loaded after the other theme
   stylesheets (functions.php), so it is the single source for form styling.

   Rhythm
     --aa-f-gap        between rows and between fields (1.1rem)
     --aa-f-label-gap  label to control, control to hint / error (0.45rem)
     --aa-f-set-gap    between field groups ("Your details" / "Your friend's details")
   Fields: 54px tall, 16px text (no iOS zoom), ivory until filled, white once filled or
   focused, indigo focus ring, red border + inline message with an icon when invalid.
   Required convention: every field is required unless its label says "(optional)".
   Dark surfaces: forms on indigo / ink backgrounds (footer strip, or a form placed on a
   dark section without a white card) switch tokens via [data-theme="dark"] / .aa-form--dark.

   Mobile first: base rules are for phones; min-width layers at 600 / 782 / 1024 / 1200.
   ========================================================================== */

:root {
	--aa-f-gap: 1.1rem;
	--aa-f-label-gap: 0.45rem;
	--aa-f-set-gap: 1.6rem;
	--aa-f-h: var(--aa-control-h, 54px);
	--aa-f-radius: 3px;
	--aa-f-bg: var(--aa-ivory, #F9F8F4);
	--aa-f-bg-filled: #fff;
	--aa-f-border: #CFCDD8;
	--aa-f-border-hover: #9E9BB2;
	--aa-f-border-focus: var(--aa-indigo, #2D2650);
	--aa-f-ring: rgb(45 38 80 / 0.16);
	--aa-f-text: var(--aa-ink, #1C1F2A);
	--aa-f-label: var(--aa-indigo, #2D2650);
	--aa-f-placeholder: #7A7C8C;
	--aa-f-hint: #676A7B;
	--aa-f-small: var(--aa-slate, #55586A);
	--aa-f-err: var(--aa-red, #C00000);
	--aa-f-err-bg: #FFF7F7;
	--aa-f-err-ring: rgb(192 0 0 / 0.14);
	--aa-f-alert-bg: var(--aa-blush, #FBE9E9);
	--aa-f-alert-text: var(--aa-red-dark, #990000);
	--aa-f-prefix-bg: var(--aa-lavender, #F0EEF5);
	--aa-f-box: #8E8BA3;
	--aa-f-legend: var(--aa-red, #C00000);
	--aa-f-line: var(--aa-line, #D9D8E0);
	--aa-f-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D2650' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--aa-f-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--aa-f-icon-err: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 5h2.4l-.3 7h-1.8l-.3-7Zm1.2 8.6a1.4 1.4 0 1 1 0 2.8 1.4 1.4 0 0 1 0-2.8Z'/%3E%3C/svg%3E");
	--aa-f-icon-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* Dark surfaces ------------------------------------------------------------ */
.aa-form[data-theme="dark"],
.aa-form--dark,
:is(.aa-section--dark, .aa-footer) .aa-form:not(.aa-form-card .aa-form):not(.aa-nl-card .aa-form) {
	--aa-f-bg: rgb(255 255 255 / 0.06);
	--aa-f-bg-filled: rgb(255 255 255 / 0.1);
	--aa-f-border: rgb(255 255 255 / 0.26);
	--aa-f-border-hover: rgb(255 255 255 / 0.5);
	--aa-f-border-focus: #fff;
	--aa-f-ring: rgb(255 255 255 / 0.2);
	--aa-f-text: #fff;
	--aa-f-label: var(--aa-on-dark, #D6D3E4);
	--aa-f-placeholder: #A19DBB;
	--aa-f-hint: #B3AFCB;
	--aa-f-small: #B3AFCB;
	--aa-f-err: #FF9C9C;
	--aa-f-err-bg: rgb(192 0 0 / 0.16);
	--aa-f-err-ring: rgb(255 138 138 / 0.22);
	--aa-f-alert-bg: rgb(192 0 0 / 0.22);
	--aa-f-alert-text: #fff;
	--aa-f-prefix-bg: rgb(255 255 255 / 0.08);
	--aa-f-box: rgb(255 255 255 / 0.55);
	--aa-f-legend: #FF8A8A;
	--aa-f-line: rgb(255 255 255 / 0.12);
	--aa-f-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	color: var(--aa-on-dark, #D6D3E4);
}

/* Layout -------------------------------------------------------------------- */
.aa-form { display: grid; gap: var(--aa-f-gap); min-width: 0; margin-top: 1.25rem; }
.aa-form.aa-form > *,
.aa-form .aa-form__group > *,
.aa-form .aa-form__row > * { margin-top: 0; margin-bottom: 0; }
.aa-form [hidden] { display: none !important; }
.aa-form__row { display: grid; gap: var(--aa-f-gap); min-width: 0; }

/* Field groups: the legend floats so it sits inside the fieldset (not on its border). */
.aa-form__set { min-width: 0; margin: 0; padding: 0; border: 0; }
.aa-form__set + .aa-form__set { margin-top: calc(var(--aa-f-set-gap) - var(--aa-f-gap)) !important; padding-top: var(--aa-f-set-gap); border-top: 1px solid var(--aa-f-line); }
.aa-form__legend {
	float: left;
	width: 100%;
	margin: 0 0 1rem;
	padding: 0;
	color: var(--aa-f-legend);
	font-family: var(--aa-sans);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
}
.aa-form__group { clear: both; display: grid; gap: var(--aa-f-gap); min-width: 0; }

/* Field: label, control, hint, error, one gap apart. */
.aa-field { display: grid; gap: var(--aa-f-label-gap); align-content: start; min-width: 0; }
.aa-field > * { margin: 0; }
.aa-form :is(.aa-field > label:not(.aa-check), .aa-field__label, .aa-nl-form__label) {
	display: block;
	margin: 0;
	color: var(--aa-f-label);
	font-family: var(--aa-sans);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}
.aa-field__opt { color: var(--aa-f-hint); font-weight: 400; }
/* Brackets drawn in CSS so machine translation only sees the word ("optional"). */
.aa-field__opt::before { content: "("; }
.aa-field__opt::after { content: ")"; }
.aa-field__hint { margin: 0; color: var(--aa-f-hint); font-size: 0.8125rem; line-height: 1.45; }

/* Controls ------------------------------------------------------------------ */
.aa-form :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea) {
	display: block;
	width: 100%;
	min-height: var(--aa-f-h);
	box-sizing: border-box;
	margin: 0;
	padding: 0.8rem 0.95rem;
	border: 1px solid var(--aa-f-border);
	border-radius: var(--aa-f-radius);
	background-color: var(--aa-f-bg);
	color: var(--aa-f-text);
	font-family: var(--aa-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
}
.aa-form :is(input, textarea)::placeholder { color: var(--aa-f-placeholder); opacity: 1; }
.aa-form textarea { min-height: 120px; resize: vertical; line-height: 1.55; }

/* Hover, filled, focus, invalid */
.aa-form :is(input, select, textarea):hover:not(:focus):not([aria-invalid="true"]):not([type="checkbox"]) { border-color: var(--aa-f-border-hover); }
.aa-form :is(input:not(:placeholder-shown), textarea:not(:placeholder-shown), select:valid):not([type="checkbox"]):not([type="file"]) { background-color: var(--aa-f-bg-filled); }
.aa-form :is(input, select, textarea):not([type="checkbox"]):not([type="file"]):focus {
	outline: none;
	border-color: var(--aa-f-border-focus);
	background-color: var(--aa-f-bg-filled);
	box-shadow: 0 0 0 3px var(--aa-f-ring);
}
.aa-form :is(input, select, textarea)[aria-invalid="true"]:not([type="checkbox"]):not([type="file"]) { border-color: var(--aa-f-err); background-color: var(--aa-f-err-bg); }
.aa-form :is(input, select, textarea)[aria-invalid="true"]:not([type="checkbox"]):not([type="file"]):focus { box-shadow: 0 0 0 3px var(--aa-f-err-ring); }

/* Select: custom arrow, greyed placeholder option */
.aa-form select {
	padding-right: 2.75rem;
	background-image: var(--aa-f-arrow);
	background-repeat: no-repeat;
	background-position: right 0.9rem center;
	background-size: 18px;
	cursor: pointer;
	text-overflow: ellipsis;
}
.aa-form select:invalid { color: var(--aa-f-placeholder); }
.aa-form select option { color: var(--aa-ink, #1C1F2A); background: #fff; }
.aa-form select option[value=""] { color: #7A7C8C; }

/* "+91" prefix on mobile numbers */
.aa-input { position: relative; min-width: 0; }
.aa-input__prefix {
	position: absolute;
	top: 1px;
	bottom: 1px;
	left: 1px;
	z-index: 1;
	display: flex;
	align-items: center;
	padding: 0 0.7rem;
	border-right: 1px solid var(--aa-f-border);
	border-radius: 2px 0 0 2px;
	background: var(--aa-f-prefix-bg);
	color: var(--aa-f-label);
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	pointer-events: none;
}
.aa-form .aa-input--prefix input { padding-left: 4.1rem; letter-spacing: 0.02em; }

/* Errors: inline message with an icon; form-level message as a banner */
.aa-field__err {
	display: flex;
	gap: 0.4rem;
	align-items: flex-start;
	margin: 0;
	color: var(--aa-f-err);
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.45;
}
.aa-field__err::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 0.05rem;
	background: currentColor;
	-webkit-mask: var(--aa-f-icon-err) center / contain no-repeat;
	mask: var(--aa-f-icon-err) center / contain no-repeat;
}
.aa-field__err[hidden] { display: none; }
.aa-form__err { padding: 0.8rem 1rem; border-left: 3px solid var(--aa-f-err); background: var(--aa-f-alert-bg); color: var(--aa-f-alert-text); outline: none; }
.aa-form__err::before { margin-top: 0.1rem; color: var(--aa-f-err); }
.aa-form__off { margin-top: 1rem; padding: 1rem; background: var(--aa-blush, #FBE9E9); color: var(--aa-red-dark, #990000); font-size: 0.875rem; }

/* Consent, privacy and small print: one size everywhere */
.aa-form__consent,
.aa-check__text,
.aa-appform__safe { font-size: 0.8125rem; line-height: 1.55; color: var(--aa-f-small); }
.aa-form__consent { margin: 0; }
.aa-form.aa-form :is(.aa-form__consent, .aa-check__text) a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.aa-form.aa-form :is(.aa-form__consent, .aa-check__text) a:hover { color: var(--aa-f-label); }

/* Checkbox: custom 24px box, the whole label is the hit area */
.aa-check {
	display: flex;
	gap: 0.8rem;
	align-items: flex-start;
	min-height: 44px;
	margin: 0;
	padding: 0.35rem 0;
	color: var(--aa-f-small);
	font-weight: 400;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.aa-check__text { padding-top: 0.15rem; }
.aa-form .aa-check__box,
.aa-nl-topic .aa-check__box {
	flex: none;
	width: 24px;
	height: 24px;
	margin: 0;
	border: 1.5px solid var(--aa-f-box);
	border-radius: 4px;
	background: var(--aa-f-bg-filled) center / 16px no-repeat;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
.aa-form[data-theme="dark"] .aa-check__box { background-color: transparent; }
.aa-check:hover .aa-check__box,
.aa-nl-topic:hover .aa-check__box { border-color: var(--aa-f-border-focus); }
.aa-form .aa-check__box:checked,
.aa-nl-topic .aa-check__box:checked { border-color: var(--aa-indigo, #2D2650); background-color: var(--aa-indigo, #2D2650); background-image: var(--aa-f-tick); }
.aa-form .aa-check__box:focus-visible,
.aa-nl-topic .aa-check__box:focus-visible { outline: none; border-color: var(--aa-f-border-focus); box-shadow: 0 0 0 3px var(--aa-f-ring); }
.aa-form .aa-check__box[aria-invalid="true"] { border-color: var(--aa-f-err); box-shadow: 0 0 0 3px var(--aa-f-err-ring); }
.aa-field--consent { gap: 0.25rem; }

/* Turnstile ("interaction-only"): the slot stays rendered but out of the flow (so the widget
   can run and the grid adds no empty gap) until Cloudflare asks for a challenge; the JS adds
   .is-shown from Turnstile's before/after-interactive callbacks. Narrow slots get the compact
   widget, and the slot never pushes the card wider than the screen. */
.aa-form { position: relative; }
.aa-form__captcha:not(.is-shown) { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.aa-form__captcha.is-shown { display: flex; justify-content: center; min-width: 0; max-width: 100%; overflow: hidden; }

/* Submit: loading spinner, disabled, success ----------------------------------------- */
.aa-form__submit,
.aa-nl-form__go {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	box-sizing: border-box;
	min-height: var(--aa-control-h, 54px);
	margin: 0;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 2px;
	background: var(--aa-red, #C00000);
	color: #fff;
	font-family: var(--aa-sans);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.2s, opacity 0.2s;
}
.aa-form__submit { width: 100%; }
.aa-form .aa-form__submit { margin-top: 0.15rem; }
:is(.aa-form__submit, .aa-nl-form__go):hover { background: var(--aa-red-dark, #990000); }
:is(.aa-form__submit, .aa-nl-form__go):active:not(:disabled) { transform: translateY(1px); }
:is(.aa-form__submit, .aa-nl-form__go):focus-visible { outline: 3px solid var(--aa-indigo, #2D2650); outline-offset: 3px; }
.aa-form[data-theme="dark"] :is(.aa-form__submit, .aa-nl-form__go):focus-visible { outline-color: #fff; }
:is(.aa-form__submit, .aa-nl-form__go):disabled { opacity: 0.55; cursor: not-allowed; }
:is(.aa-form__submit, .aa-nl-form__go)[aria-busy="true"] { opacity: 1; background: var(--aa-red-dark, #990000); cursor: progress; }
:is(.aa-form__submit, .aa-nl-form__go)[aria-busy="true"]::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	box-sizing: border-box;
	border: 2px solid rgb(255 255 255 / 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: aa-form-spin 0.8s linear infinite;
}
:is(.aa-form__submit, .aa-nl-form__go)[data-state="done"] { background: var(--aa-indigo, #2D2650); opacity: 1; }
:is(.aa-form__submit, .aa-nl-form__go)[data-state="done"]::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: var(--aa-f-icon-tick) center / contain no-repeat;
	mask: var(--aa-f-icon-tick) center / contain no-repeat;
}
@keyframes aa-form-spin { to { transform: rotate(360deg); } }

/* Success panel: icon, title, message, reference, next steps -------------------------- */
.aa-form__done {
	display: grid;
	gap: 0.9rem;
	margin-top: 1.25rem;
	padding: 1.5rem 1.25rem;
	background: var(--aa-lavender, #F0EEF5);
	border-top: 3px solid var(--aa-indigo, #2D2650);
	color: var(--aa-slate, #55586A);
	outline: none;
}
.aa-form__done.aa-form__done > * { margin: 0; }
.aa-form__done-head { display: flex; align-items: center; gap: 0.85rem; }
.aa-form__done-icon,
.aa-otp__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	color: var(--aa-red, #C00000);
	box-shadow: inset 0 0 0 1px var(--aa-line, #D9D8E0);
}
.aa-form__done-icon svg,
.aa-otp__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.aa-otp__icon { background: var(--aa-lavender, #F0EEF5); color: var(--aa-indigo, #2D2650); box-shadow: none; }
.aa-otp__icon svg { stroke-width: 1.9; }
.aa-form__done .aa-form__done-title { margin: 0; color: var(--aa-indigo, #2D2650); font-family: var(--aa-serif); font-size: 1.375rem; font-weight: 700; line-height: 1.25; }
.aa-form__done-text { font-size: 0.9375rem; line-height: 1.6; }
.aa-form__ref {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.2rem 0.75rem;
	padding: 0.7rem 0.9rem;
	background: #fff;
	border: 1px dashed #BDBACB;
}
.aa-form__ref-label { color: var(--aa-muted, #696B7C); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.aa-form__ref strong { color: var(--aa-indigo, #2D2650); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; letter-spacing: 0.04em; }
.aa-form__next-title { color: var(--aa-red, #C00000); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.aa-form__done .aa-form__next { display: grid; gap: 0.6rem; margin: -0.35rem 0 0; padding: 0; list-style: none; counter-reset: aa-next; }
.aa-form__done .aa-form__next > li {
	position: relative;
	margin: 0;
	padding-left: 2.1rem;
	font-size: 0.9375rem;
	line-height: 1.55;
	counter-increment: aa-next;
}
.aa-form__done .aa-form__next > li::before {
	content: counter(aa-next);
	position: absolute;
	top: 0.05rem;
	left: 0;
	display: grid;
	place-items: center;
	width: 1.45rem;
	height: 1.45rem;
	border-radius: 50%;
	background: var(--aa-indigo, #2D2650);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}
.aa-form__done-note { font-size: 0.8125rem; color: var(--aa-muted, #696B7C); }
.aa-form__done .aa-form__download { justify-self: start; }

/* Email OTP step (brochure requests) ---------------------------------------------------- */
.aa-otp { display: grid; gap: var(--aa-f-gap); outline: none; }
.aa-otp.aa-otp > * { margin: 0; }
.aa-otp__head { display: flex; align-items: center; gap: 0.85rem; }
.aa-otp .aa-otp__title { margin: 0; color: var(--aa-indigo, #2D2650); font-family: var(--aa-serif); font-size: 1.375rem; font-weight: 700; line-height: 1.25; }
.aa-otp__text { margin-top: -0.35rem !important; color: var(--aa-slate, #55586A); font-size: 0.9375rem; line-height: 1.6; overflow-wrap: anywhere; }
.aa-otp__text strong { color: var(--aa-ink, #1C1F2A); }
.aa-form .aa-otp__input {
	min-height: 64px;
	padding-left: calc(0.95rem + 0.45em);
	color: var(--aa-indigo, #2D2650);
	font-size: 1.75rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.45em;
	text-align: center;
}
.aa-form .aa-otp__input::placeholder { color: #C9C7D4; }
.aa-otp__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1rem; margin-top: -0.4rem !important; }
.aa-otp__link {
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--aa-indigo, #2D2650);
	font-family: var(--aa-sans);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.aa-otp__link:hover { color: var(--aa-red, #C00000); }
.aa-otp__link:disabled { color: var(--aa-muted, #696B7C); text-decoration: none; cursor: default; }

/* CV drop zone --------------------------------------------------------------------------- */
.aa-drop {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 0.4rem;
	min-height: 132px;
	align-content: center;
	padding: 1.25rem 1rem;
	border: 1.5px dashed #B5B2C6;
	border-radius: 4px;
	background: var(--aa-f-bg);
	text-align: center;
	transition: border-color 0.18s, background-color 0.18s, box-shadow 0.18s;
}
.aa-drop > * { margin: 0; }
.aa-drop__input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	font-size: 16px;
	cursor: pointer;
}
.aa-drop:hover,
.aa-drop.is-drag { border-color: var(--aa-indigo, #2D2650); background: #fff; }
.aa-drop.is-drag { border-style: solid; box-shadow: 0 0 0 3px var(--aa-f-ring); }
.aa-drop:focus-within { border-color: var(--aa-indigo, #2D2650); background: #fff; box-shadow: 0 0 0 3px var(--aa-f-ring); }
.aa-drop__idle { display: grid; justify-items: center; gap: 0.55rem; pointer-events: none; }
.aa-drop__icon {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	padding: 10px;
	border-radius: 50%;
	background: var(--aa-lavender, #F0EEF5);
	fill: none;
	stroke: var(--aa-indigo, #2D2650);
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.aa-drop__title { color: var(--aa-ink, #1C1F2A); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.aa-drop__pick { color: var(--aa-red, #C00000); text-decoration: underline; text-underline-offset: 3px; }
.aa-drop__drag { display: none; }
.aa-drop .aa-drop__hint { pointer-events: none; }
.aa-drop.has-file { justify-items: stretch; min-height: 0; padding: 0.6rem 0.6rem 0.6rem 0.9rem; border-style: solid; border-color: var(--aa-f-border); background: #fff; text-align: left; }
.aa-drop.has-file .aa-drop__idle,
.aa-drop.has-file .aa-drop__hint { display: none; }
.aa-drop.has-file .aa-drop__input { pointer-events: none; }
.aa-drop__file { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.aa-drop__doc { flex: none; width: 28px; height: 28px; fill: none; stroke: var(--aa-indigo, #2D2650); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.aa-drop__meta { display: grid; flex: 1 1 auto; min-width: 0; }
.aa-drop__name { overflow: hidden; color: var(--aa-ink, #1C1F2A); font-size: 0.9375rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.aa-drop__size { color: var(--aa-f-hint); font-size: 0.8125rem; }
.aa-drop .aa-drop__change {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 0.4rem;
	color: var(--aa-indigo, #2D2650);
	font-size: 0.875rem;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.aa-drop__remove {
	position: relative;
	z-index: 2;
	display: grid;
	place-items: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--aa-line, #D9D8E0);
	border-radius: var(--aa-f-radius);
	background: #fff;
	color: var(--aa-slate, #55586A);
	cursor: pointer;
	transition: color 0.18s, border-color 0.18s;
}
.aa-drop__remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.aa-drop__remove:hover { border-color: var(--aa-red, #C00000); color: var(--aa-red, #C00000); }
.aa-drop__remove:focus-visible { outline: 3px solid var(--aa-indigo, #2D2650); outline-offset: 2px; }
.aa-drop:has(.aa-drop__input[aria-invalid="true"]) { border-color: var(--aa-f-err); background: var(--aa-f-err-bg); }
@media (hover: hover) and (pointer: fine) {
	.aa-drop__tap { display: none; }
	.aa-drop__drag { display: inline; }
}

/* Careers extras that live inside the form */
.aa-appform__safe { margin: 0; text-align: center; }

/* Newsletter (assetavenues-newsletter): sign-up strip in the dark footer, cards, /newsletter/ */
.aa-nl-form--footer { margin-top: 0; }
.aa-nl-form--footer .aa-nl-form__label + .aa-nl-form__row { margin-top: calc(var(--aa-f-label-gap) - var(--aa-f-gap)) !important; }
.aa-nl-form__row { display: flex; gap: 0.5rem; min-width: 0; }
.aa-nl-form__row input { flex: 1 1 auto; min-width: 0; }
.aa-nl-form__go { flex: none; min-height: var(--aa-f-h); padding: 0 1.1rem; font-size: 0.8125rem; letter-spacing: 0.12em; }
.aa-nl-card--inline .aa-form { --aa-f-bg: #fff; }
.aa-nl-topic .aa-check__box { background-color: #fff; }

/* Calculator number boxes ([aa_calc]): same border, radius and focus ring as form fields */
.aa-calc__num {
	min-height: 44px;
	padding: 0 0.75rem;
	border: 1px solid var(--aa-f-border);
	border-radius: var(--aa-f-radius);
	background: var(--aa-f-bg);
	transition: border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
}
.aa-calc__num:hover { border-color: var(--aa-f-border-hover); }
.aa-calc__num:focus-within { border-color: var(--aa-f-border-focus); background: #fff; box-shadow: 0 0 0 3px var(--aa-f-ring); }
.aa-calc__num input:focus,
.aa-calc__num input:focus-visible { outline: none; }

/* Phones (mobile-ux-audit.md X7): service + city share a row; the optional email folds behind
   "Add email" once JS has loaded (.aa-js is set in <head>, so nothing shifts). ------------- */
.aa-form__more { display: none; }
@media (max-width: 599.98px) {
	.aa-form__row--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0.75rem; align-items: end; }
	.aa-js .aa-form--more:not(.is-more-open) .aa-field--email { display: none; }
	.aa-js .aa-form__more:not([hidden]) {
		display: inline-flex; align-items: center; gap: 0.35rem; justify-self: start; min-height: 44px; margin: -0.35rem 0 0;
		padding: 0; border: 0; background: none; color: var(--aa-f-link, var(--aa-red, #C00000));
		font: 600 0.875rem/1.2 var(--aa-sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
	}
	.aa-form__more::before { content: "+"; font-size: 1.1rem; text-decoration: none; }
	.aa-form__more span { color: var(--aa-f-hint); font-weight: 400; }
}

/* Larger screens ------------------------------------------------------------------------ */
@media (min-width: 600px) {
	.aa-form__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; align-items: start; }
	.aa-nl-form__go { padding: 0 1.5rem; }
}
@media (min-width: 782px) {
	.aa-form__done { padding: 1.75rem 1.75rem; }
	.aa-drop { min-height: 148px; }
}

/* Motion: a short rise for the success panel and the OTP step, off when reduced motion is set */
@media (prefers-reduced-motion: no-preference) {
	.aa-form__done,
	.aa-otp { animation: aa-form-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
	.aa-form *,
	.aa-form__done,
	.aa-drop,
	.aa-calc__num { transition: none !important; }
	/* A still ring plus the "Sending…" label carries the busy state without spinning. */
	:is(.aa-form__submit, .aa-nl-form__go)[aria-busy="true"]::before { animation: none; border-color: rgb(255 255 255 / 0.6); border-right-color: transparent; }
}
@keyframes aa-form-in {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: none; }
}
.aa-form__done .aa-form__next a { color: var(--aa-indigo, #2D2650); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* Dark forms: the success state reads as a light chip on ink / indigo. */
.aa-form[data-theme="dark"] :is(.aa-form__submit, .aa-nl-form__go)[data-state="done"] { background: #fff; color: var(--aa-indigo, #2D2650); }

/* Newsletter messages share the error icon and the success tick with the other forms. */
.aa-nl-msg.is-error,
.aa-nl-msg.is-ok { display: flex; gap: 0.55rem; align-items: flex-start; }
.aa-nl-msg.is-error::before,
.aa-nl-msg.is-ok::before {
	content: "";
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 0.15rem;
	background: currentColor;
	-webkit-mask: var(--aa-f-icon-err) center / contain no-repeat;
	mask: var(--aa-f-icon-err) center / contain no-repeat;
}
.aa-nl-msg.is-ok::before { -webkit-mask-image: var(--aa-f-icon-tick); mask-image: var(--aa-f-icon-tick); }
.aa-nl-msg[hidden] { display: none !important; }
