/*
 * Registration form. Uses the HuviTERA theme's tokens where present, with the
 * brand values as fallbacks so the form still looks right under another theme.
 */

.htreg__form {
	max-width: 46rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--ht-white, #fff);
	border-radius: var(--ht-radius, 4px);
	box-shadow: 0 1px 0 var(--ht-line, #e8dcd1), 0 10px 30px rgba(29, 29, 27, 0.06);
}

.htreg__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem 1.25rem;
}

.htreg__field {
	margin: 0;
	display: grid;
	gap: 0.35rem;
}

.htreg__field--wide {
	grid-column: 1 / -1;
}

.htreg__field label {
	font-size: 0.9rem;
	font-weight: 700;
}

.htreg__field label span[aria-hidden] {
	color: var(--ht-orange, #ff7300);
}

.htreg__opt {
	font-weight: 400;
	color: var(--ht-grey, #6b6b68);
}

.htreg__field input,
.htreg__field select,
.htreg__field textarea {
	width: 100%;
	padding: 0.65rem 0.8rem;
	font: inherit;
	color: var(--ht-dark, #1d1d1b);
	background: var(--ht-white, #fff);
	border: 1px solid var(--ht-line, #e8dcd1);
	border-radius: 2px;
}

.htreg__field input:focus,
.htreg__field select:focus,
.htreg__field textarea:focus {
	outline: 2px solid var(--ht-orange, #ff7300);
	outline-offset: 1px;
	border-color: transparent;
}

.htreg__consent {
	margin: 1.25rem 0 0;
	font-size: 0.9rem;
}

.htreg__consent label {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
}

.htreg__consent input {
	flex: none;
	width: 1.1rem;
	height: 1.1rem;
	margin-top: 0.15rem;
	accent-color: var(--ht-orange, #ff7300);
}

.htreg__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
	margin: 1.5rem 0 0;
}

.htreg__req {
	font-size: 0.85rem;
	color: var(--ht-grey, #6b6b68);
}

.htreg__req span {
	color: var(--ht-orange, #ff7300);
}

.htreg__places {
	margin: 0 0 1.25rem;
	font-size: 1rem;
}

.htreg__error {
	max-width: 46rem;
	margin: 0 0 1.25rem;
	padding: 0.9rem 1.1rem;
	font-weight: 600;
	color: #8a1c1c;
	background: #fdecea;
	border-left: 4px solid #c62828;
	border-radius: var(--ht-radius, 4px);
}

.htreg__done {
	max-width: 46rem;
	padding: clamp(1.25rem, 3vw, 2rem);
	background: var(--ht-white, #fff);
	border-left: 4px solid var(--ht-orange, #ff7300);
	border-radius: var(--ht-radius, 4px);
}

.htreg__done:focus {
	outline: none;
}

.htreg__done h3 {
	margin: 0 0 0.5rem;
}

.htreg__done p {
	margin: 0;
}

.htreg__closed {
	margin: 0;
	color: var(--ht-grey, #6b6b68);
}

/* Honeypot: off screen for people, still in the markup for bots. */
.htreg__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 600px) {
	.htreg__grid {
		grid-template-columns: 1fr;
	}
}
