/* Shared by the Financials page and the Evergreen watch page: the registration popup and the
   two-step checkout inside it. Needs the brand variables (--blue, --blue-dark, --navy, --yellow,
   --yellow-dark, --ink, --ink-soft, --bg-alt, --line, --sans, --display) on :root, as both pages define. */
/* Registration popup (opens on button + auto after 30s) */
.reg-overlay {
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: rgba(6, 40, 63, 0.72);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.reg-overlay.is-open {
	display: flex;
}
.reg-modal {
	position: relative;
	background: #fff;
	border-radius: 14px;
	max-width: 480px;
	width: 100%;
	max-height: 94vh;
	overflow: auto;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.reg-close {
	position: absolute;
	top: 0.55rem;
	right: 0.7rem;
	background: rgba(255, 255, 255, 0.85);
	border: none;
	color: var(--ink);
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.reg-close:hover {
	background: #fff;
}

/* Registration card */
.reg {
	background: #fff;
	color: var(--ink);
	border-radius: 14px;
	box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
	overflow: hidden;
}
.reg__date {
	background: var(--yellow);
	color: #1a1a1a;
	text-align: center;
	font-family: var(--display);
	font-weight: 800;
	padding: 0.7rem 1rem;
	font-size: 1.02rem;
}
.reg-modal .reg__date {
	border-radius: 14px 14px 0 0;
	padding-left: 3rem;
	padding-right: 3rem;
	font-size: 0.95rem;
} /* room for the close button */
.reg-modal__body {
	padding: 1.1rem 1.2rem 1.3rem;
}
.reg__body {
	padding: 0.95rem 1rem 1rem;
}
.reg__note {
	text-align: center;
	font-size: 0.78rem;
	color: var(--ink-soft);
	margin-top: 0.45rem;
}
.reg__title {
	color: var(--blue);
	font-size: 1.18rem;
	font-weight: 800;
	text-align: center;
	margin: 0 0 0.15rem;
}
.reg__sub {
	color: var(--ink-soft);
	font-size: 0.9rem;
	font-weight: 500;
	text-align: center;
	margin: 0 0 0.85rem;
}
.reg__price {
	text-align: center;
	color: var(--ink-soft);
	font-weight: 500;
	margin: 0.1rem 0 0.75rem;
}
.reg__price b {
	color: var(--blue);
}

/* Two-step checkout inside the popup (mirrors the Aspiring Cruisers Starter Kit) */
.reg-host {
	min-height: 360px;
}
/* Two-step progress strip, matching the Aspiring Cruisers Starter Kit: a full-width tab row that
   stays put while the GHL payment form loads under it, numbers rather than a checkmark so the row
   never jumps on a phone. Negative margins bleed it to the card edges through the body padding. */
.checkout-steps {
	list-style: none;
	display: flex;
	margin: 0 0 0.5rem;
	padding: 0;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
	background: var(--bg-alt);
}
.reg-modal__body .checkout-steps {
	margin-left: -1.2rem;
	margin-right: -1.2rem;
}
.checkout-steps__step {
	flex: 1 1 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 8px;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ink-soft);
	border-bottom: 3px solid transparent;
}
.checkout-steps__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	flex: 0 0 20px;
	background: #fff;
	color: var(--navy);
	font-size: 0.72rem;
	line-height: 1;
	font-weight: 800;
}
.checkout-steps__step.is-active {
	color: var(--blue-dark);
	background: #fff;
	border-bottom-color: var(--blue);
}
.checkout-steps__step.is-active .checkout-steps__num {
	background: var(--blue);
	color: #fff;
}
.checkout-steps__step.is-done .checkout-steps__num {
	background: var(--ink-soft);
	color: #fff;
}
.checkout-step1 {
	display: flex;
	flex-direction: column;
}
.checkout-step1__lead {
	margin: 0.1rem 0 0.7rem;
	color: var(--ink-soft);
	font-weight: 500;
}
.checkout-step1 label {
	font-weight: 700;
	font-size: 0.7rem;
	margin: 0.4rem 0 0.16rem;
}
.phone-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 0.5rem;
}
.phone-row .phone-cc {
	min-width: 0;
}
.phone-row input {
	flex: 1 1 auto;
	min-width: 0;
}
.checkout-step1 select {
	line-height: 1.4;
	width: 100%;
	padding: 0.36rem 2rem 0.36rem 0.55rem;
	border: 1px solid var(--line);
	border-radius: 7px;
	font-size: 1rem;
	font-family: var(--sans);
	color: var(--ink);
	background: #fff;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%23415865'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.5rem center;
}
.checkout-step1 select:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(0, 99, 163, 0.15);
}
.checkout-step1 input {
	line-height: 1.4;
	width: 100%;
	padding: 0.36rem 0.55rem;
	border: 1px solid var(--line);
	border-radius: 7px;
	font-size: 1rem;
	font-family: var(--sans);
	color: var(--ink);
}
.checkout-step1 input:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(0, 99, 163, 0.15);
}
.checkout-step1__error {
	color: #c0392b;
	font-size: 0.85rem;
	margin: 0.6rem 0 0;
}
.phone-cc-other {
	margin-top: 0.5rem;
}
.checkout-step1__fine {
	text-align: center;
	font-size: 0.7rem;
	color: var(--ink-soft);
	margin: 0.5rem 0 0;
}
.checkout-steps__step.is-link {
	padding: 0;
}
.checkout-steps__step.is-link button {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 12px 8px;
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}
.checkout-steps__step.is-link:hover {
	color: var(--blue-dark);
	background: #fff;
}
.checkout-steps__step.is-link button:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: -2px;
}
.btn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	background: var(--yellow);
	color: #1a1a1a;
	font-family: var(--display);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	border: none;
	border-radius: 7px;
	padding: 0.6rem 1rem;
	font-size: 0.8rem;
	cursor: pointer;
	width: 100%;
	margin-top: 0.8rem;
	box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
	transition: background 0.12s ease;
}
.btn-cta:hover {
	background: var(--yellow-dark);
}
/* Smaller form type on desktop only. Inputs stay at 16px on phones because anything under that
   makes iOS Safari zoom the page in when a field is focused. */
@media (min-width: 901px) {
	.checkout-step1 input,
	.checkout-step1 select {
		font-size: 0.78rem;
		padding: 0.36rem 0.5rem;
	}
	.checkout-step1 select {
		padding-right: 2rem;
	}
	.btn-cta {
		font-size: 0.76rem;
		padding: 0.55rem 0.9rem;
	}
}
.btn-cta:disabled {
	opacity: 0.7;
	cursor: default;
}
/* .btn-cta is display:inline-flex, which beats the hidden attribute on its own. */
.btn-cta[hidden] {
	display: none;
}

/* Consent to texts. The wording comes from the checkout service and is shown verbatim, so it
   is body text, not the small bold field-label style every other label in this form gets.
   The explicit [hidden] rules matter: display:flex would otherwise keep the row visible before
   the wording has loaded. */
.checkout-step1 .checkout-step1__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0.8rem 0 0;
	font-size: 0.75rem;
	font-weight: 400;
	line-height: 1.45;
	color: var(--ink-soft);
	cursor: pointer;
}
.checkout-step1 .checkout-step1__consent[hidden] {
	display: none;
}
.checkout-step1 .checkout-step1__consent input {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	margin: 1px 0 0;
	padding: 0;
	accent-color: var(--blue);
	cursor: pointer;
}
/* "See our Privacy Notice and Terms." sits OUTSIDE the label, so tapping a link never ticks the box. */
.checkout-step1__consent-links {
	margin: 0.3rem 0 0 1.75rem;
	font-size: 0.75rem;
	line-height: 1.45;
	color: var(--ink-soft);
}
.checkout-step1__consent-links[hidden] {
	display: none;
}
.checkout-step1__consent-links a {
	color: var(--blue-dark);
	text-decoration: underline;
}
.checkout-step1__note {
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	color: var(--ink-soft);
	text-align: center;
}
.checkout-step1__note[hidden],
.checkout-step1__error[hidden] {
	display: none;
}

/* Step 2: the session being booked, then Stripe's embedded card form. Stripe draws and sizes
   its own form; the floor on the payment box stops the card collapsing and jumping while it loads. */
.checkout-step2 {
	display: flex;
	flex-direction: column;
	padding: 0.4rem 0 0;
}
.checkout-step2__booking {
	margin: 0.2rem 0 0.7rem;
	text-align: center;
	font-weight: 700;
	color: var(--blue-dark);
	font-size: 0.9rem;
}
.checkout-step2__booking[hidden] {
	display: none;
}
.checkout-step2__retry {
	margin: 0 0 0.8rem;
}
.checkout-step2__status {
	margin: 0.3rem 0 0;
	font-size: 0.85rem;
	color: var(--ink-soft);
	text-align: center;
}
.checkout-step2__status[hidden] {
	display: none;
}
.checkout-step2__pay:not(:empty) {
	min-height: 360px;
}

/* Back from Stripe (one line while the purchase is confirmed), and "registration is closed". */
.checkout-confirm,
.checkout-closed {
	padding: 1.4rem 0.4rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}
.checkout-confirm__msg,
.checkout-closed__msg {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--ink);
	line-height: 1.45;
	text-align: center;
}

/* The price line when the service reports a discount: struck original, price to pay, small tag. */
.reg__was {
	color: var(--ink-soft);
	font-weight: 500;
	text-decoration: line-through;
}
.reg__now {
	color: var(--blue);
	font-weight: 800;
}
.reg__off {
	display: inline-block;
	margin-left: 0.15rem;
	padding: 0.1rem 0.5rem;
	border-radius: 999px;
	background: var(--yellow);
	color: #1a1a1a;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	vertical-align: middle;
}
