.ahdpp-form,
.ahdpp-counter {
	--ahdpp-accent: #0b5ed7;
	--ahdpp-accent-text: #fff;
	--ahdpp-border: #c5ccd6;
	--ahdpp-ok: #067647;
	--ahdpp-error: #b42318;
	box-sizing: border-box;
}

.ahdpp-form *,
.ahdpp-counter * {
	box-sizing: border-box;
}

/* ---------- Formulário ---------- */

.ahdpp-form {
	max-width: 640px;
	margin: 0 auto;
	position: relative;
}

.ahdpp-field {
	margin: 0 0 1rem;
}

.ahdpp-field label {
	display: block;
	font-weight: 600;
	margin-bottom: .35rem;
}

.ahdpp-field input[type="text"],
.ahdpp-field input[type="email"] {
	width: 100%;
	padding: .7rem .8rem;
	border: 1px solid var(--ahdpp-border);
	border-radius: 6px;
	font: inherit;
	background: #fff;
	color: #111;
}

.ahdpp-field input[type="text"]:focus,
.ahdpp-field input[type="email"]:focus,
.ahdpp-submit:focus-visible,
.ahdpp-counter__sound:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--ahdpp-accent) 45%, transparent);
	outline-offset: 1px;
}

.ahdpp-check label {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	font-weight: 400;
	line-height: 1.45;
}

.ahdpp-check input {
	flex: none;
	margin-top: .3rem;
}

/* Campo-armadilha para robôs */
.ahdpp-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ahdpp-submit {
	display: inline-block;
	padding: .8rem 2rem;
	border: 0;
	border-radius: 6px;
	background: var(--ahdpp-accent);
	color: var(--ahdpp-accent-text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.ahdpp-submit:hover {
	filter: brightness(1.1);
}

.ahdpp-submit[disabled] {
	opacity: .6;
	cursor: wait;
}

.ahdpp-status {
	margin-top: 1rem;
	min-height: 1.4em;
	font-weight: 600;
}

.ahdpp-status.is-ok {
	color: var(--ahdpp-ok);
}

.ahdpp-status.is-error {
	color: var(--ahdpp-error);
}

/* ---------- Contador ---------- */

.ahdpp-counter {
	position: relative;
	text-align: center;
	padding: 1.5rem 1rem;
}

.ahdpp-counter__number {
	font-size: clamp(3rem, 10vw, 6rem);
	font-weight: 800;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	color: var(--ahdpp-accent);
}

.ahdpp-counter__label {
	margin-top: .6rem;
	opacity: .8;
}

.ahdpp-counter.is-bump .ahdpp-counter__number {
	animation: ahdpp-bump .6s ease;
}

@keyframes ahdpp-bump {
	0%   { transform: scale(1); }
	35%  { transform: scale(1.15); }
	100% { transform: scale(1); }
}

.ahdpp-counter__sound {
	margin-top: .5rem;
	padding: .25rem .5rem;
	border: 0;
	border-radius: 6px;
	background: transparent;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
}

.ahdpp-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
	.ahdpp-counter.is-bump .ahdpp-counter__number {
		animation: none;
	}
}
