.aph-application-app,
.aph-application-app * {
	box-sizing: border-box;
}

.aph-application-app {
	width: 100%;
	max-width: 980px;
	margin: 0 auto;
	padding: clamp(24px, 5vw, 58px);
	background: var(--aph-bg);
	border-radius: var(--aph-radius);
	color: var(--aph-text);
	font: 400 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	box-shadow: 0 24px 70px rgba(1, 64, 55, 0.08);
}

.aph-application-app [hidden] {
	display: none !important;
}

.aph-application-header {
	display: grid;
	grid-template-columns: 94px minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	margin-bottom: 38px;
}

.aph-application-icon {
	display: grid;
	place-items: center;
	width: 94px;
	height: 94px;
	border-radius: 50%;
	background: var(--aph-card);
	box-shadow: 0 14px 35px rgba(1, 64, 55, 0.08);
}

.aph-application-icon img {
	width: 62px;
	height: 62px;
	display: block;
}

.aph-application-app .aph-eyebrow,
.aph-application-app .aph-step-label {
	margin: 0 0 8px;
	color: var(--aph-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.aph-application-app h2,
.aph-application-app h3 {
	margin: 0;
	color: var(--aph-primary);
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.18;
}

.aph-application-app h2 {
	font-size: clamp(28px, 3.8vw, 44px);
}

.aph-application-app h3 {
	font-size: clamp(24px, 3vw, 34px);
}

.aph-application-header p:last-child,
.aph-application-panel > p:not(.aph-step-label),
.aph-application-success > p:last-child {
	max-width: 690px;
	margin: 12px 0 0;
	color: var(--aph-muted);
	font-size: 17px;
}

.aph-application-progress {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 0 0 28px;
	position: relative;
}

.aph-application-progress::before {
	content: "";
	position: absolute;
	top: 19px;
	left: 16.66%;
	right: 16.66%;
	height: 2px;
	background: rgba(1, 64, 55, 0.12);
}

.aph-application-progress span {
	position: relative;
	z-index: 1;
	display: grid;
	justify-items: center;
	gap: 5px;
	color: var(--aph-muted);
}

.aph-application-progress b {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 2px solid rgba(1, 64, 55, 0.14);
	border-radius: 50%;
	background: var(--aph-bg);
	font-size: 14px;
}

.aph-application-progress em {
	font-size: 13px;
	font-style: normal;
	font-weight: 700;
}

.aph-application-progress .is-active,
.aph-application-progress .is-complete {
	color: var(--aph-primary);
}

.aph-application-progress .is-active b,
.aph-application-progress .is-complete b {
	border-color: var(--aph-accent);
	background: var(--aph-accent);
	color: var(--aph-primary);
}

.aph-application-panel {
	padding: clamp(24px, 4vw, 42px);
	background: var(--aph-card);
	border-radius: var(--aph-radius);
	box-shadow: 0 14px 42px rgba(1, 64, 55, 0.06);
}

.aph-choice-grid,
.aph-upload-grid,
.aph-form-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 28px;
}

.aph-choice {
	position: relative;
	cursor: pointer;
}

.aph-choice input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.aph-choice span {
	display: flex;
	align-items: center;
	min-height: 78px;
	padding: 18px 20px 18px 54px;
	border: 2px solid rgba(1, 64, 55, 0.11);
	border-radius: 18px;
	background: #fff;
	transition: 0.2s ease;
}

.aph-choice span::before {
	content: "";
	position: absolute;
	left: 20px;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(1, 64, 55, 0.28);
	border-radius: 50%;
	background: #fff;
	box-shadow: inset 0 0 0 4px #fff;
}

.aph-choice:hover span,
.aph-choice input:focus-visible + span {
	border-color: var(--aph-accent);
	transform: translateY(-1px);
}

.aph-choice input:checked + span {
	border-color: var(--aph-accent);
	background: #f6faeb;
	background: color-mix(in srgb, var(--aph-accent) 8%, #fff);
}

.aph-choice input:checked + span::before {
	border-color: var(--aph-accent);
	background: var(--aph-accent);
}

.aph-choice strong {
	color: var(--aph-primary);
	font-size: 16px;
}

.aph-upload-card {
	display: grid;
	justify-items: center;
	align-content: center;
	min-height: 230px;
	padding: 28px 22px;
	border: 2px dashed rgba(1, 64, 55, 0.18);
	border-radius: 20px;
	background: #fafaf7;
	background: color-mix(in srgb, var(--aph-bg) 62%, #fff);
	text-align: center;
	cursor: pointer;
	transition: 0.2s ease;
}

.aph-upload-card:hover,
.aph-upload-card:focus-within {
	border-color: var(--aph-accent);
	background: #fff;
	transform: translateY(-2px);
}

.aph-upload-symbol {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--aph-accent);
	color: var(--aph-primary);
	font-size: 24px;
	font-weight: 800;
}

.aph-upload-card strong {
	color: var(--aph-primary);
	font-size: 18px;
}

.aph-upload-card small {
	margin: 3px 0 14px;
	color: var(--aph-muted);
}

.aph-upload-card input[type="file"] {
	width: 100%;
	max-width: 270px;
	color: transparent;
	font-size: 13px;
}

.aph-upload-card input[type="file"]::file-selector-button {
	margin: 0;
	padding: 9px 15px;
	border: 0;
	border-radius: 999px;
	background: var(--aph-primary);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.aph-file-name {
	margin-top: 10px;
	color: var(--aph-muted);
	font-size: 13px;
	overflow-wrap: anywhere;
}

.aph-file-name.is-error {
	color: #a22c2c;
	font-weight: 700;
}

.aph-field-full {
	grid-column: 1 / -1;
}

.aph-field label,
.aph-field > label {
	display: block;
	margin-bottom: 7px;
	color: var(--aph-primary);
	font-size: 14px;
	font-weight: 750;
}

.aph-application-app input[type="text"],
.aph-application-app input[type="tel"],
.aph-application-app input[type="email"] {
	width: 100%;
	min-height: 54px;
	padding: 12px 16px;
	border: 1.5px solid rgba(1, 64, 55, 0.18);
	border-radius: 14px;
	background: #fff;
	color: var(--aph-text);
	font: inherit;
	outline: none;
}

.aph-application-app input:focus {
	border-color: var(--aph-accent);
	box-shadow: 0 0 0 4px rgba(156, 194, 29, 0.2);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--aph-accent) 20%, transparent);
}

.aph-application-app input[aria-invalid="true"] {
	border-color: #b42318 !important;
	box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12) !important;
}

.aph-privacy {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 11px;
	align-items: start;
	margin-top: 8px;
	color: var(--aph-muted);
	font-size: 14px;
}

.aph-privacy input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: var(--aph-accent);
}

.aph-privacy a {
	color: var(--aph-primary);
	font-weight: 700;
}

.aph-form-note {
	margin: 18px 0 0;
	color: var(--aph-muted);
	font-size: 12px;
}

.aph-retention-note {
	display: grid;
	gap: 3px;
	margin-top: 6px;
	padding: 15px 17px;
	border-left: 4px solid var(--aph-accent);
	border-radius: 12px;
	background: #f2f6e8;
	color: var(--aph-muted);
	font-size: 13px;
}

.aph-retention-note strong {
	color: var(--aph-primary);
}

.aph-actions {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 32px;
}

.aph-actions-end {
	justify-content: flex-end;
}

.aph-application-app .aph-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 25px;
	border: 2px solid var(--aph-primary);
	border-radius: var(--aph-button-radius);
	background: var(--aph-primary);
	color: #fff;
	font: 750 15px/1.2 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	cursor: pointer;
	transition: 0.2s ease;
}

.aph-application-app .aph-button:hover,
.aph-application-app .aph-button:focus-visible {
	border-color: var(--aph-accent);
	background: var(--aph-accent);
	color: var(--aph-primary);
	transform: translateY(-1px);
}

.aph-application-app .aph-button-secondary {
	background: transparent;
	color: var(--aph-primary);
}

.aph-application-app .aph-button:disabled {
	opacity: 0.6;
	cursor: wait;
	transform: none;
}

.aph-form-message {
	margin-top: 20px;
	padding: 14px 17px;
	border-left: 4px solid #b73d3d;
	border-radius: 10px;
	background: #fff0f0;
	color: #772626;
	font-weight: 650;
}

.aph-application-success {
	padding: clamp(34px, 6vw, 70px) 24px;
	text-align: center;
	outline: none;
}

.aph-success-check {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin: 0 auto 22px;
	border-radius: 50%;
	background: var(--aph-accent);
	color: var(--aph-primary);
	font-size: 34px;
	font-weight: 800;
}

.aph-application-success > p:last-child {
	margin-right: auto;
	margin-left: auto;
}

.aph-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

@media (max-width: 700px) {
	.aph-application-app {
		padding: 20px;
		border-radius: 20px;
	}

	.aph-application-header {
		grid-template-columns: 68px minmax(0, 1fr);
		gap: 16px;
		margin-bottom: 28px;
	}

	.aph-application-icon {
		width: 68px;
		height: 68px;
	}

	.aph-application-icon img {
		width: 46px;
		height: 46px;
	}

	.aph-application-header p:last-child {
		grid-column: 1 / -1;
	}

	.aph-application-progress em {
		font-size: 11px;
	}

	.aph-application-panel {
		padding: 24px 18px;
	}

	.aph-choice-grid,
	.aph-upload-grid,
	.aph-form-grid {
		grid-template-columns: 1fr;
	}

	.aph-field-full {
		grid-column: auto;
	}

	.aph-upload-card {
		min-height: 200px;
	}
}

@media (max-width: 480px) {
	.aph-actions {
		flex-direction: column-reverse;
	}

	.aph-actions .aph-button {
		width: 100%;
	}

	.aph-actions-end {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.aph-application-app *,
	.aph-application-app *::before,
	.aph-application-app *::after {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
