/*
 * Waitlist form: structural styles only. Colours, type and spacing inherit
 * from the active theme's presets so the theme stays in charge of the design.
 */
.dic-waitlist__form {
	display: grid;
	gap: 0.75rem;
	max-width: 36rem;
}

.dic-waitlist__intro {
	margin: 0;
}

.dic-waitlist__field {
	display: grid;
	gap: 0.25rem;
}

.dic-waitlist__field input {
	min-height: 2.75rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--dic-brand-line, var(--wp--preset--color--line, #dedad4));
	border-radius: 0.5rem;
	font: inherit;
	background: var(--dic-brand-white, var(--wp--preset--color--white, #ffffff));
	color: inherit;
}

.dic-waitlist__consent {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.5rem;
	align-items: start;
	font-size: 0.9em;
}

.dic-waitlist__consent input {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0.15rem 0 0;
}

.dic-waitlist__submit {
	justify-self: start;
	min-height: 2.75rem;
	cursor: pointer;
}

.dic-waitlist__form :focus-visible {
	outline: 2px solid var(--dic-brand-primary, var(--wp--preset--color--primary, #1d1b20));
	outline-offset: 2px;
}

/* Honeypot: removed from layout and from the accessibility tree. */
.dic-waitlist__trap {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.dic-waitlist__status:empty {
	display: none;
}

.dic-waitlist__status {
	margin: 0;
	font-weight: 600;
}

/* Text keeps the body colour for contrast; the accent marks the state. */
.dic-waitlist__status--error,
.dic-waitlist__status--success {
	padding-left: 0.75rem;
	border-left: 3px solid var(--dic-brand-accent, var(--wp--preset--color--accent, var(--wp--preset--color--coral, #a0522d)));
}

.dic-waitlist__status--success {
	border-left-color: var(--dic-brand-primary, var(--wp--preset--color--primary, #1d1b20));
}

/*
 * Standalone confirm/unsubscribe response page (WaitlistController): no
 * theme is loaded here, so this carries its own minimal, readable layout.
 */
.dic-waitlist--standalone {
	display: block;
	max-width: 32rem;
	margin: 4rem auto;
	padding: 0 1.5rem;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--dic-brand-ink, var(--wp--preset--color--ink, #1d1b20));
	text-align: center;
}

.dic-waitlist--standalone h1 {
	font-size: 1.5rem;
	margin: 0 0 1rem;
}

.dic-waitlist--standalone a {
	color: var(--dic-brand-primary, var(--wp--preset--color--primary, #1d1b20));
}
