.arp-insc {
	--arp-primary: #673C33;
	--arp-accent: #D04D19;
	--arp-soft: #7C9DD2;
	--arp-text: #2D2D2D;
	--arp-card: #FFFFFF;
	--arp-base: 18px;
	--arp-radius: 14px;
	--arp-line: color-mix(in srgb, var(--arp-text) 22%, transparent);
	--arp-tint: color-mix(in srgb, var(--arp-soft) 14%, #fff);
	--arp-error: #B42318;
	font-family: Tahoma, Verdana, sans-serif;
	font-size: var(--arp-base);
	line-height: 1.55;
	color: var(--arp-text);
	max-width: 760px;
	margin-inline: auto;
}

.arp-insc *,
.arp-insc *::before,
.arp-insc *::after { box-sizing: border-box; }

.arp-insc [hidden] { display: none !important; }

.arp-insc__card {
	background: var(--arp-card);
	border-radius: calc(var(--arp-radius) * 1.4);
	padding: clamp(22px, 5vw, 48px);
	box-shadow: 0 2px 6px rgba(45, 45, 45, .06), 0 18px 40px rgba(103, 60, 51, .10);
	border-top: 8px solid var(--arp-soft);
	scroll-margin-top: 130px;
}

.arp-insc__title,
.arp-insc__step-title,
.arp-insc__done-title {
	font-family: "Roboto Slab", Georgia, serif;
	color: var(--arp-primary);
	line-height: 1.25;
	margin: 0 0 .5em;
}

.arp-insc__title { font-size: 1.6em; }
.arp-insc__intro { margin: 0 0 1.6em; font-size: 1.02em; }

.arp-insc__progress { margin: 0 0 1.8em; }
.arp-insc__progress-text { margin: 0 0 .5em; font-size: .92em; }
.arp-insc__bar {
	height: 12px;
	background: var(--arp-tint);
	border-radius: 99px;
	overflow: hidden;
}
.arp-insc__bar-fill {
	display: block;
	height: 100%;
	background: var(--arp-accent);
	border-radius: 99px;
	transition: width .35s ease;
}

.arp-insc__step-title { font-size: 1.35em; outline: none; }
.arp-insc__step-intro {
	margin: 0 0 1.4em;
	padding: .8em 1em;
	background: var(--arp-tint);
	border-left: 5px solid var(--arp-soft);
	border-radius: 0 var(--arp-radius) var(--arp-radius) 0;
}

.arp-insc__field { margin: 0 0 1.6em; }
.arp-insc__group { border: 0; padding: 0; margin: 0; min-width: 0; }

.arp-insc__label {
	display: block;
	font-weight: 700;
	font-size: 1.04em;
	margin: 0 0 .35em;
	padding: 0;
}
.arp-insc__req { color: var(--arp-accent); }
.arp-insc__opt { font-weight: 400; font-size: .85em; opacity: .75; }
.arp-insc__help { margin: 0 0 .6em; font-size: .9em; opacity: .85; }

.arp-insc__input {
	display: block;
	width: 100%;
	min-height: 56px;
	padding: .7em .9em;
	font: inherit;
	color: var(--arp-text);
	background: #fff;
	border: 2px solid var(--arp-line);
	border-radius: var(--arp-radius);
	transition: border-color .2s, box-shadow .2s;
}
textarea.arp-insc__input { min-height: 0; resize: vertical; }
.arp-insc__input--short { max-width: 160px; }
.arp-insc__input:focus {
	outline: none;
	border-color: var(--arp-soft);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--arp-soft) 35%, transparent);
}

.arp-insc__choices { display: grid; gap: .6em; }
.arp-insc__choice {
	position: relative;
	display: flex;
	align-items: center;
	gap: .8em;
	min-height: 56px;
	padding: .65em 1em;
	border: 2px solid var(--arp-line);
	border-radius: var(--arp-radius);
	background: #fff;
	cursor: pointer;
	transition: border-color .2s, background .2s;
}
.arp-insc__choice:hover { border-color: var(--arp-soft); }
.arp-insc__choice input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.arp-insc__choice-box {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border: 2px solid var(--arp-line);
	border-radius: 8px;
	background: #fff;
	display: grid;
	place-items: center;
	transition: all .2s;
}
.arp-insc__field--radio .arp-insc__choice-box { border-radius: 50%; }
.arp-insc__choice input:checked + .arp-insc__choice-box {
	background: var(--arp-accent);
	border-color: var(--arp-accent);
}
.arp-insc__choice input:checked + .arp-insc__choice-box::after {
	content: "";
	width: 8px;
	height: 14px;
	border: solid #fff;
	border-width: 0 3px 3px 0;
	transform: translateY(-2px) rotate(45deg);
}
.arp-insc__choice:has(input:checked) {
	border-color: var(--arp-accent);
	background: color-mix(in srgb, var(--arp-accent) 8%, #fff);
}
.arp-insc__choice:has(input:focus-visible) {
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--arp-soft) 40%, transparent);
}
.arp-insc__choice--consent { align-items: flex-start; }
.arp-insc__choice--consent .arp-insc__choice-box { margin-top: 2px; }

.arp-insc__file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .8em;
	padding: 1em;
	border: 2px dashed var(--arp-soft);
	border-radius: var(--arp-radius);
	background: var(--arp-tint);
	cursor: pointer;
}
.arp-insc__file-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.arp-insc__file-btn {
	display: inline-block;
	padding: .6em 1.1em;
	background: var(--arp-primary);
	color: #fff;
	border-radius: var(--arp-radius);
	font-weight: 700;
}
.arp-insc__file:has(input:focus-visible) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--arp-soft) 40%, transparent); }
.arp-insc__file-name { font-size: .92em; word-break: break-word; }
.arp-insc__preview {
	display: block;
	margin-top: .8em;
	max-width: 220px;
	max-height: 220px;
	object-fit: cover;
	border-radius: var(--arp-radius);
	border: 3px solid #fff;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.arp-insc__count { margin: .4em 0 0; font-size: .88em; opacity: .85; }
.arp-insc__count.is-good { color: #2E7D32; opacity: 1; }

.arp-insc__error {
	margin: .4em 0 0;
	color: var(--arp-error);
	font-weight: 700;
	font-size: .92em;
}
.arp-insc__error:empty { display: none; }
.arp-insc__field.has-error .arp-insc__input,
.arp-insc__field.has-error .arp-insc__choice,
.arp-insc__field.has-error .arp-insc__file { border-color: var(--arp-error); }

.arp-insc__global-error { color: var(--arp-error); font-weight: 700; margin: 0 0 1em; }
.arp-insc__global-error:empty { display: none; }

.arp-insc__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: .8em;
	margin-top: 1.8em;
	padding-top: 1.4em;
	border-top: 2px solid var(--arp-tint);
}
.arp-insc__btn {
	min-height: 58px;
	padding: .7em 1.6em;
	font: inherit;
	font-weight: 700;
	font-size: 1.02em;
	border-radius: var(--arp-radius);
	border: 2px solid var(--arp-primary);
	background: var(--arp-primary);
	color: #fff;
	cursor: pointer;
	transition: transform .15s, filter .2s;
	margin-left: auto;
}
.arp-insc__btn:hover { filter: brightness(1.12); }
.arp-insc__btn:active { transform: translateY(1px); }
.arp-insc__btn:focus-visible { outline: 4px solid color-mix(in srgb, var(--arp-soft) 60%, transparent); outline-offset: 2px; }
.arp-insc__btn[disabled] { opacity: .6; cursor: wait; }
.arp-insc__btn--ghost {
	background: transparent;
	color: var(--arp-primary);
	margin-left: 0;
}
.arp-insc__send { background: var(--arp-accent); border-color: var(--arp-accent); }

.arp-insc__legend { margin: 1em 0 0; font-size: .85em; opacity: .75; }
.arp-insc__legend span { color: var(--arp-accent); }

.arp-insc__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.arp-insc__done { text-align: center; padding: 1.5em 0 .5em; outline: none; }
.arp-insc__done-icon {
	width: 84px;
	height: 84px;
	margin: 0 auto 1em;
	display: grid;
	place-items: center;
	font-size: 44px;
	color: #fff;
	background: var(--arp-secondary, #B3AB2C);
	border-radius: 50%;
}
.arp-insc__done-title { font-size: 1.5em; }

.arp-insc__step.is-active { animation: arpInscIn .3s ease; }
@keyframes arpInscIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
	.arp-insc__nav { flex-direction: column-reverse; }
	.arp-insc__btn { width: 100%; margin-left: 0; }
	.arp-insc__title { font-size: 1.35em; }
}

@media (prefers-reduced-motion: reduce) {
	.arp-insc__step.is-active { animation: none; }
	.arp-insc__bar-fill { transition: none; }
}
