/* =========================================================================
   SIM Signup
   Ticks, then full name + email + Sign up on one row. The button is a native
   .bricks-button (secondary: black-green with lime text) so it matches the
   site. Brand tokens from the theme (--black-green, --accent-green-*,
   --sim-red, --body, --body-sml).
   ========================================================================= */

.sim-signup {
	width: 100%;
	color: var(--black-green, #14332d);
}

.sim-signup [hidden] {
	display: none !important;
}

.sim-signup__form {
	margin: 0;
}

/* Options ---------------------------------------------------------------- */
.sim-signup__fieldset {
	min-width: 0;
	margin: 0 0 0.9rem;
	padding: 0;
	border: 0;
}

.sim-signup__question {
	margin: 0 0 0.6rem;
	padding: 0;
	font-size: var(--body, 1rem);
	font-weight: 600;
	line-height: 1.3;
}

.sim-signup__options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.5rem;
}

/* Doubled class beats the site's grey label colour */
.sim-signup .sim-signup__option {
	color: var(--black-green, #14332d);
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	font-size: var(--body, 1rem);
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
}

/* Doubled class + zero padding: the site's input padding made these rectangles */
.sim-signup .sim-signup__check {
	-webkit-appearance: none;
	        appearance: none;
	flex: none;
	display: grid;
	place-content: center;
	box-sizing: border-box;
	width: 1.3rem;
	min-width: 1.3rem;
	max-width: 1.3rem;
	height: 1.3rem;
	margin: 0;
	padding: 0;
	border: 1.5px solid var(--black-green, #14332d);
	border-radius: 0.25rem;
	background: #fff;
	cursor: pointer;
}

.sim-signup__check:checked {
	background: var(--black-green, #14332d);
}

/* Tick drawn with borders, lime on black-green */
.sim-signup__check:checked::after {
	content: "";
	width: 0.6rem;
	height: 0.35rem;
	border: 2px solid var(--accent-green-100, #e0ec92);
	border-top: 0;
	border-right: 0;
	transform: translateY(-1px) rotate(-45deg);
}

/* Name + email + button ---------------------------------------------------- */
.sim-signup__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto;
	gap: 0.6rem;
}

.sim-signup__input {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0.6rem 0.9rem;
	border: 1.5px solid rgba(20, 51, 45, 0.35);
	border-radius: 0.5rem;
	background: #fff;
	color: var(--black-green, #14332d);
	font: inherit;
	font-size: var(--body, 1rem);
	line-height: 1.3;
}

.sim-signup__input::placeholder {
	color: rgba(20, 51, 45, 0.55);
	opacity: 1;
}

/* Focus: green only. Red is reserved for errors here. */
.sim-signup .sim-signup__input:focus,
.sim-signup .sim-signup__input:focus-visible {
	outline: none;
	border-color: var(--black-green, #14332d);
}

.sim-signup .sim-signup__check:focus-visible {
	outline: 2px solid var(--black-green, #14332d);
	outline-offset: 2px;
}

.sim-signup__button {
	white-space: nowrap;
}

.sim-signup.is-sending .sim-signup__button {
	opacity: 0.7;
	cursor: progress;
}

/* Messages ----------------------------------------------------------------- */
.sim-signup__error {
	margin: 0.5rem 0 0;
	color: var(--sim-red, #da2b1f);
	font-size: var(--body-sml, 0.875rem);
}

.sim-signup__error:empty {
	display: none;
}

.sim-signup__done {
	margin: 0;
	padding: 0.8rem 1rem;
	border-radius: 0.5rem;
	background: var(--accent-green-75, #effaa9);
	font-size: var(--body, 1rem);
	font-weight: 600;
}

.sim-signup__done:focus {
	outline: none;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.sim-signup__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sim-signup__note {
	margin-top: 1rem;
	font-size: var(--body-sml, 0.875rem);
	line-height: 1.3;
}

.sim-signup__note p {
	margin: 0;
}

.sim-signup__note a {
	color: inherit;
	text-decoration: underline;
}

/* Phones: fields and button stack */
@media (max-width: 767px) {
	.sim-signup__row {
		grid-template-columns: 1fr;
	}
}
