/* [agile_form] contact form. */

.aa-form-wrap {
	width: 100%;
	max-width: 100%;
}

/*
 * Single column at every width. The two-per-row layout left adjacent fields
 * touching, and a contact form is short enough that stacking reads better and
 * removes the gap problem entirely.
 */
.aa-form__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.5rem;
}

.aa-form__field--full,
.aa-form__field--half {
	grid-column: 1 / -1;
}

/* Every control fills the row. */
.aa-form__field input,
.aa-form__field select,
.aa-form__field textarea {
	display: block;
	width: 100%;
	max-width: 100%;
}

.aa-form__field label {
	margin-bottom: 0.45rem;
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	margin-bottom: 0.4rem;
}

.aa-form__required {
	color: #c0392b;
	margin-left: 2px;
}

.aa-form__field input,
.aa-form__field textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	font: inherit;
	font-size: 1rem;
	color: inherit;
	background: #fff;
	border: 1px solid #ccd2dc;
	border-radius: 4px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.aa-form__field input:focus,
.aa-form__field textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent, #2e7be8);
	box-shadow: 0 0 0 3px rgba(46, 123, 232, 0.18);
}

.aa-form__field textarea {
	resize: vertical;
	min-height: 8rem;
}

.aa-form__field input[type="file"] {
	padding: 0.6rem;
	background: #f7f8fa;
	cursor: pointer;
}

.aa-form__hint {
	margin: 0.4rem 0 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--contrast-2, #5a6472);
}

/* Honeypot — kept out of sight without display:none, which some bots detect. */
.aa-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.aa-form__submit {
	margin-top: 1.75rem;
	padding: 0.9rem 2rem;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #fff;
	background: var(--wp--preset--color--accent, #2e7be8);
	border: 0;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.aa-form__submit:hover {
	background: var(--wp--preset--color--accent-2, #5aa7ff);
	transform: translateY(-1px);
}

.aa-form__submit[disabled] {
	opacity: 0.6;
	cursor: progress;
	transform: none;
}

.aa-form__notice {
	padding: 1rem 1.25rem;
	margin-bottom: 1.75rem;
	border-radius: 4px;
	border-left: 4px solid;
}

.aa-form__notice p,
.aa-form__notice ul {
	margin: 0;
}

.aa-form__notice ul {
	padding-left: 1.1rem;
}

.aa-form__notice--success {
	background: #e8f5ec;
	border-color: #2e9e5b;
}

.aa-form__notice--error {
	background: #fdecea;
	border-color: #c0392b;
}

@media (max-width: 600px) {
	.aa-form__grid { gap: 1.25rem; }
	.aa-form__submit { width: 100%; }
}

/* ==========================================================================
   Founder interview — one question at a time
   ========================================================================== */

/*
 * Steps are only hidden once the script has taken over. Without JavaScript
 * .is-stepped is never added, every section stays visible, and the form works
 * as one long page.
 */
.aa-interview.is-stepped .aa-step {
	display: none;
}

.aa-interview.is-stepped .aa-step.is-active {
	display: block;
	animation: aa-step-in 320ms ease both;
}

@keyframes aa-step-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.aa-interview.is-stepped .aa-step.is-active { animation: none; }
}

.aa-interview__progress {
	height: 3px;
	margin-bottom: 2.5rem;
	background: rgba(39, 140, 255, 0.16);
	border-radius: 3px;
	overflow: hidden;
}

.aa-interview.is-stepped .aa-interview__progress-bar {
	display: block;
	width: 0;
	height: 100%;
	background: #1878e9;
	transition: width 320ms ease;
}

/* Not stepping? The bar would be meaningless. */
.aa-interview:not(.is-stepped) .aa-interview__progress {
	display: none;
}

.aa-step {
	min-height: 22rem;
}

/*
 * The question is the whole design. 42px as specified, clamped down on small
 * screens so it never overflows the viewport.
 */
.aa-step__question {
	display: block;
	margin: 0 0 0.75rem;
	font-family: var(--wp--preset--font-family--serif, inherit);
	font-size: clamp(1.75rem, 5.2vw, 42px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: #06142e;
}

.aa-step__hint {
	margin: 0 0 1.5rem;
	max-width: 44rem;
	font-size: 1rem;
	line-height: 1.6;
	color: #60708b;
}

.aa-step__input {
	display: block;
	width: 100%;
	padding: 0.85rem 1rem;
	font: inherit;
	font-size: 1.0625rem;
	color: #06142e;
	background: #fff;
	border: 1px solid #ccd2dc;
	border-radius: 6px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea.aa-step__input {
	min-height: 9rem;
	resize: vertical;
	line-height: 1.6;
}

.aa-step__input--number {
	max-width: 9rem;
}

.aa-step__input--file {
	padding: 0.75rem;
	background: #f7f9fc;
	cursor: pointer;
}

.aa-step__input:focus {
	outline: none;
	border-color: #1878e9;
	box-shadow: 0 0 0 3px rgba(24, 120, 233, 0.18);
}

.aa-step.has-error .aa-step__input {
	border-color: #c0392b;
	box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.14);
}

.aa-step__error {
	margin: 0.6rem 0 0;
	font-size: 0.9rem;
	color: #c0392b;
}

.aa-step__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-top: 1.75rem;
}

.aa-step__next,
.aa-step__back,
.aa-step__skip {
	padding: 0.8rem 1.6rem;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.aa-step__next {
	color: #fff;
	background: #1878e9;
	border: 1px solid #1878e9;
}

.aa-step__next:hover,
.aa-step__next:focus-visible {
	background: #0f65cc;
	border-color: #0f65cc;
}

.aa-step__back {
	color: #60708b;
	background: transparent;
	border: 1px solid #d9e2f0;
}

.aa-step__back:hover,
.aa-step__back:focus-visible {
	color: #06142e;
	border-color: #b9c8de;
}

.aa-step__skip {
	color: #60708b;
	background: transparent;
	border: 1px solid transparent;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.aa-step__skip:hover,
.aa-step__skip:focus-visible {
	color: #1878e9;
}

/* The review list: what you said, before it is sent. */
.aa-review {
	margin: 0 0 1.75rem;
	padding: 1.25rem 1.5rem;
	background: #f7f9fc;
	border: 1px solid #e6ebf2;
	border-radius: 8px;
}

.aa-review dt {
	margin-top: 1rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #1878e9;
}

.aa-review dt:first-child {
	margin-top: 0;
}

.aa-review dd {
	margin: 0.35rem 0 0;
	font-size: 0.98rem;
	line-height: 1.6;
	color: #253752;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.aa-review dd.is-blank {
	color: #8a99b0;
	font-style: italic;
}

.aa-step__captcha {
	margin-bottom: 1.5rem;
}

.aa-step__captcha label {
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #06142e;
}

.aa-step--review .aa-form__submit {
	margin-top: 0;
}

@media (max-width: 600px) {
	.aa-step { min-height: 0; }
	.aa-step__nav { gap: 0.5rem; }
	.aa-step__next,
	.aa-step__back { flex: 1 1 auto; }
	.aa-step__skip { flex: 1 1 100%; }
}
