/**
 * Aeon Step Form styles.
 * Scoped under .aeon-sf so they never leak into the rest of the theme.
 */

.aeon-sf {
	--aeon-bg: #0b2540;
	--aeon-card: #0f2e50;
	--aeon-text: #ffffff;
	--aeon-muted: #a7c0d8;
	--aeon-accent: #3a5bff;
	--aeon-accent-hover: #2c49e0;
	--aeon-req: #ff6a4d;
	--aeon-error: #ff6a4d;
	--aeon-input-bg: #ffffff;
	--aeon-input-text: #10233b;
	--aeon-radius: 10px;

	box-sizing: border-box;
	max-width: 720px;
	margin: 0 auto;
	padding: 40px 28px 32px;
	background: var(--aeon-bg);
	border-radius: 16px;
	color: var(--aeon-text);
	font-family: inherit;
	line-height: 1.5;
}

.aeon-sf *,
.aeon-sf *::before,
.aeon-sf *::after {
	box-sizing: border-box;
}

/* Header */
.aeon-sf__header {
	text-align: center;
	margin-bottom: 24px;
}

.aeon-sf__title {
	margin: 0 0 8px;
	font-size: 1.9rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--aeon-text);
}

.aeon-sf__subtitle {
	margin: 0 auto;
	max-width: 560px;
	color: var(--aeon-muted);
	font-size: 0.98rem;
}

/* Progress */
.aeon-sf__progress {
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	overflow: hidden;
	margin: 8px 0 6px;
}

.aeon-sf__progress-bar {
	height: 100%;
	width: 0;
	background: var(--aeon-accent);
	border-radius: 999px;
	transition: width 0.35s ease;
}

.aeon-sf__counter {
	margin: 0 0 20px;
	text-align: right;
	font-size: 0.82rem;
	color: var(--aeon-muted);
}

/* Steps */
.aeon-sf__steps {
	position: relative;
	min-height: 210px;
}

.aeon-sf__step[hidden] {
	display: none;
}

.aeon-sf__step {
	animation: aeon-fade 0.35s ease;
}

@keyframes aeon-fade {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.aeon-sf__label {
	display: block;
	font-size: 1.35rem;
	font-weight: 700;
	margin-bottom: 6px;
	color: var(--aeon-text);
}

.aeon-sf__req {
	color: var(--aeon-req);
	margin-left: 2px;
}

.aeon-sf__help {
	margin: 0 0 16px;
	color: var(--aeon-muted);
	font-size: 0.95rem;
}

.aeon-sf__control {
	margin-top: 14px;
}

/* Inputs */
.aeon-sf__input {
	width: 100%;
	padding: 14px 16px;
	font-size: 1.05rem;
	color: var(--aeon-input-text);
	background: var(--aeon-input-bg);
	border: 2px solid transparent;
	border-radius: var(--aeon-radius);
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
}

.aeon-sf__input:focus {
	border-color: var(--aeon-accent);
	box-shadow: 0 0 0 4px rgba(58, 91, 255, 0.25);
}

.aeon-sf__textarea {
	min-height: 130px;
	resize: vertical;
}

.aeon-sf__name {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

/* Choices (radio / checkbox) */
.aeon-sf__choices {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aeon-sf__choice {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	background: var(--aeon-card);
	border: 2px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--aeon-radius);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.aeon-sf__choice:hover {
	border-color: var(--aeon-accent);
}

.aeon-sf__choice input {
	margin-top: 3px;
	width: 18px;
	height: 18px;
	accent-color: var(--aeon-accent);
	flex: 0 0 auto;
}

.aeon-sf__choice span {
	color: var(--aeon-text);
	font-size: 1rem;
}

.aeon-sf__choice:has(input:checked) {
	border-color: var(--aeon-accent);
	background: rgba(58, 91, 255, 0.18);
}

/* Error message */
.aeon-sf__error {
	min-height: 1.2em;
	margin: 10px 0 0;
	color: var(--aeon-error);
	font-size: 0.9rem;
	font-weight: 600;
}

/* Navigation */
.aeon-sf__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 26px;
}

.aeon-sf__back,
.aeon-sf__next {
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	border: none;
	border-radius: var(--aeon-radius);
	cursor: pointer;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.aeon-sf__next {
	margin-left: auto;
	padding: 13px 34px;
	color: #fff;
	background: var(--aeon-accent);
}

.aeon-sf__next:hover {
	background: var(--aeon-accent-hover);
}

.aeon-sf__back {
	padding: 13px 22px;
	color: var(--aeon-muted);
	background: transparent;
	border: 2px solid rgba(255, 255, 255, 0.18);
}

.aeon-sf__back:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.4);
}

.aeon-sf__next:disabled,
.aeon-sf__back:disabled {
	opacity: 0.55;
	cursor: default;
}

/* Thank-you screen */
.aeon-sf__thanks {
	text-align: center;
	padding: 30px 0;
}

.aeon-sf__thanks h3 {
	margin: 0 0 8px;
	font-size: 1.6rem;
	color: var(--aeon-text);
}

.aeon-sf__thanks p {
	margin: 0;
	color: var(--aeon-muted);
}

/* Honeypot — visually hidden but present for bots. */
.aeon-sf__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Responsive */
@media ( max-width: 600px ) {
	.aeon-sf {
		padding: 28px 18px 24px;
		border-radius: 12px;
	}
	.aeon-sf__title {
		font-size: 1.5rem;
	}
	.aeon-sf__label {
		font-size: 1.15rem;
	}
	.aeon-sf__name {
		grid-template-columns: 1fr;
	}
	.aeon-sf__next {
		padding: 13px 24px;
	}
}
