/**
 * Summer Camp Registration — frontend styles (the Events Vendor
 * Registration plugin's stylesheet, extended for children).
 *
 * Follows the Museum Ticket Sales plugin's design system
 * (museum-ticket-sales.css / DESIGN.md) class-for-class where an
 * equivalent component exists, with mts- renamed to scr-: the same
 * container widths, spacing tokens, "don't fight the theme" input
 * treatment (border-color override only), custom select, pill radios,
 * card-type badges, sticky summary panel, footer, messages, and result
 * page. From the reference plugin: the page banner and description, the
 * signature field and popup. New here: camp week checkboxes, the Number
 * of Child stepper, the per-child sections, and the per-child summary. Palette anchors: #1d2327 (ink) and #023991 (brand blue
 * accent); #b32d2e errors; #1a7d3c success.
 */

/*
 * Spacing scale — same tokens as the Ticket Sales form:
 *   --scr-space-xs  6px   label → input
 *   --scr-space-sm  12px  inside a component
 *   --scr-space-md  20px  between fields
 *   --scr-space-lg  28px  between sections (above a section divider)
 */
.scr-registration-form-wrap,
.scr-status,
.scr-signature-modal {
	--scr-space-xs: 6px;
	--scr-space-sm: 12px;
	--scr-space-md: 20px;
	--scr-space-lg: 28px;
	--scr-signature-font: "Segoe Script", "Brush Script MT", "Lucida Handwriting", "Apple Chancery", "Snell Roundhand", "Dancing Script", cursive;
}

/* Full page width: as wide as the page's own wide content (the theme's
   wide size, like an alignwide table or paragraph beside it), so the form
   lines up with the rest of the page at every screen width. The theme's
   :where() content-size constraint has zero specificity, so this
   max-width wins; the theme still centers it and supplies the side
   gutters. */
.scr-registration-form-wrap {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1340px) !important;
	margin: 40px auto 0;
	padding: 36px 0;
	box-sizing: border-box;
}

@media (max-width: 767px) {
	.scr-registration-form-wrap {
		padding: 28px 0;
	}
}

/* The `hidden` attribute must always win over component display rules —
   JS toggles visibility only through `hidden`. */
.scr-registration-form-wrap [hidden],
.scr-status [hidden],
.scr-signature-modal [hidden],
.scr-signature-modal[hidden] {
	display: none !important;
}

.scr-registration-form-wrap input,
.scr-registration-form-wrap textarea,
.scr-registration-form-wrap select,
.scr-signature-modal input {
	border: 1px solid #d8d8d8 !important;
}

.scr-registration-form-wrap p {
	margin-top: 0;
}

.scr-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

/* Page banner — the single event page's header (Events & Summer Camp
   Registration, .escr-event-single-*), without its "Event" label: large
   Title over a divider, then the Banner Upload image in a rounded frame. Values and
   breakpoints copied from events-public.css so both pages match. */
.scr-page-banner-header {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #d8d8d8;
}


.scr-registration-form-wrap .scr-page-banner-title {
	margin: 0;
	font-size: 60px;
	line-height: 1.15;
}

.scr-page-banner-image {
	position: relative;
	margin: 20px 0;
	border-radius: 20px;
	overflow: hidden;
	background: #f5f7fcd6;
}

.scr-page-banner-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 14 / 9;
	object-fit: contain;
	object-position: top;
}

@media (max-width: 1399px) {
	.scr-registration-form-wrap .scr-page-banner-title {
		font-size: 55px;
	}
}

@media (max-width: 1199px) {
	.scr-registration-form-wrap .scr-page-banner-title {
		font-size: 50px;
	}
}

@media (max-width: 991px) {
	.scr-registration-form-wrap .scr-page-banner-title {
		font-size: 45px;
	}
}

@media (max-width: 767px) {
	.scr-registration-form-wrap .scr-page-banner-title {
		font-size: 35px;
	}
}

@media (max-width: 575px) {
	.scr-registration-form-wrap .scr-page-banner-title {
		font-size: 26px;
	}
}

/* Page Settings: top / bottom descriptions around the form. */
.scr-page-description {
	margin: 0 0 var(--scr-space-lg);
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.scr-page-description-bottom {
	margin: var(--scr-space-lg) 0 0;
}

.scr-page-description > :last-child {
	margin-bottom: 0;
}

/* Block themes size a bare <h2> as a display heading — pin it. It sits in
   the main column under the page intro, left-aligned like the event page. */
.scr-registration-form-wrap #scr-registration-form-heading {
	margin: 0 0 var(--scr-space-lg);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	line-height: 1.2;
}

/* Two-column layout: page intro, then application + card details | sticky
   Payment Information, which starts level with the form fields (not the
   intro) and stays in view down to Submit & Pay. */
.scr-form-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
	gap: 0 40px;
	align-items: start;
}

.scr-form-intro,
.scr-form-main,
.scr-form-aside,
.scr-form-actions {
	min-width: 0;
}

/* The intro spans both columns: the Title (one line) and the content after
   the image use the full width; only the image keeps the left column's
   width: (100% − 40px gap) × 1.7 / 2.7. */
.scr-form-intro {
	grid-column: 1 / -1;
	grid-row: 1;
}

.scr-form-intro .scr-page-banner-image {
	max-width: calc((100% - 40px) * 1.7 / 2.7);
}

.scr-form-main {
	grid-column: 1;
	grid-row: 2;
}

.scr-form-actions {
	grid-column: 1;
	grid-row: 3;
}

.scr-form-aside {
	grid-column: 2;
	grid-row: 2 / span 2;
	align-self: stretch;
}

.scr-form-aside-inner {
	position: sticky;
	top: 24px;
	padding: 24px;
	border: 1px solid #e2e2e2;
	border-radius: 16px;
	background: #fafbfd;
}

.scr-form-aside .scr-order-summary > .scr-form-section-title {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

/* Stacks below 1200px, in DOM order: details + card → summary → button. */
@media (max-width: 1199px) {
	.scr-form-layout {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.scr-form-intro,
	.scr-form-main,
	.scr-form-aside,
	.scr-form-actions {
		grid-column: 1;
		grid-row: auto;
	}

	.scr-form-intro .scr-page-banner-image {
		max-width: none;
	}

	.scr-form-aside-inner {
		position: static;
		padding: 0;
		border: none;
		background: none;
	}

	.scr-form-aside .scr-order-summary > .scr-form-section-title {
		margin-top: calc(var(--scr-space-lg) - var(--scr-space-md));
		padding-top: var(--scr-space-lg);
		border-top: 1px solid #eee;
	}
}

/* Section titles: the divider sits in the middle of the section gap. */
.scr-form-section-title {
	margin: calc(var(--scr-space-lg) - var(--scr-space-md)) 0 var(--scr-space-md);
	padding-top: var(--scr-space-lg);
	border-top: 1px solid #eee;
	font-size: 1.1rem;
	line-height: 1.3;
	color: #023991;
}

.scr-form-section {
	margin: 0;
}

.scr-field {
	margin: 0 0 var(--scr-space-md);
}

.scr-field > label {
	display: block;
	margin: 0 0 var(--scr-space-xs);
}

/* A non-<label> caption (radio groups, the signature) styled like the
   theme's own field labels. */
.scr-field-label {
	display: block;
	margin: 0 0 var(--scr-space-xs);
	font-size: var(--wp--preset--font-size--small, 0.9rem);
	font-weight: inherit;
	line-height: 1.5;
}

/* Signature | Today's Date share a line: the date's <label> matches the
   Signature caption's metrics so both fields start level. */
.scr-form-row-signature .scr-field > label {
	font-size: var(--wp--preset--font-size--small, 0.9rem);
	line-height: 1.5;
}

.scr-field-help {
	margin: var(--scr-space-xs) 0 0;
	font-size: 0.82rem;
	color: #646970;
}

.scr-field-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--wp--preset--spacing--20, 1em);
}

.scr-field-group > .scr-field-wide {
	grid-column: 1 / -1;
}

.scr-field-group-card-meta {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scr-form-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 var(--wp--preset--spacing--20, 1em);
}

.scr-form-row-col {
	min-width: 0;
}

/* First-time question | Currency: a label that wraps to two lines must not
   push its pills below the other column's — both sit on the bottom line. */
.scr-form-row-pills {
	row-gap: var(--scr-space-md);
	margin-bottom: var(--scr-space-md);
}

.scr-form-row-pills .scr-form-row-col > .scr-field {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin-bottom: 0;
}

.scr-form-row-pills .scr-pill-options {
	margin-top: auto;
}

@media (max-width: 600px) {
	.scr-field-group,
	.scr-form-row {
		grid-template-columns: 1fr;
	}

	/* Phones: Expiry Month | Expiry Year side by side, CVV beneath. */
	.scr-field-group-card-meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.scr-field-group-card-meta > .scr-field:last-child {
		grid-column: 1 / -1;
	}
}

.scr-registration-form-wrap input[type="text"],
.scr-registration-form-wrap input[type="email"],
.scr-registration-form-wrap input[type="tel"],
.scr-registration-form-wrap textarea {
	width: 100%;
	box-sizing: border-box;
}

.scr-registration-form-wrap textarea {
	min-height: 96px;
	resize: vertical;
	font: inherit;
}

/* Today's Date: read-only, visibly not editable. */
.scr-registration-form-wrap .scr-readonly {
	background-color: #f5f5f5;
	color: #3c434a;
	cursor: default;
}

.scr-required {
	color: #b32d2e;
}

.scr-field-error {
	margin-top: 4px;
	color: #b32d2e;
	font-size: 0.82rem;
}

.scr-invalid {
	border-color: #b32d2e !important;
}

/* Custom select (Expiry Month/Year) — the Ticket Sales .mts-select. */
.scr-select {
	position: relative;
	display: block;
}

.scr-select select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 100%;
	box-sizing: border-box;
	background-color: var(--wp--custom--input-background, var(--wp--preset--color--theme-1, #fff));
	border-radius: 6px;
	box-shadow: none;
	color: currentColor;
	cursor: pointer;
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small, 0.9rem);
	line-height: 1.5;
	min-height: 42px;
	padding: 0.8rem 2.25rem 0.8rem 1rem;
}

.scr-select::after {
	content: '';
	position: absolute;
	top: 50%;
	right: 1rem;
	width: 0;
	height: 0;
	margin-top: -3px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	pointer-events: none;
}

.scr-select select:focus {
	outline: 1px solid currentColor;
}

/* Camp weeks — the same pills as the Yes / No radios (same gap and
   colors), one full-width row per week with the price on the right like
   the Ticket Sales ticket-type pills; checkboxes get a square tick box.
   Selected = brand-blue border, box, and a light blue fill. */
.scr-week-options {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--scr-space-sm);
}

.scr-week-option,
.scr-pill-option {
	position: relative;
	min-width: 0;
}

.scr-week-option input,
.scr-pill-option input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.scr-week-option label,
.scr-pill-option label {
	display: flex !important;
	align-items: center;
	gap: 0.6em;
	box-sizing: border-box;
	width: 100%;
	min-height: 42px;
	margin: 0 !important;
	padding: 0.8rem 1rem;
	background-color: var(--wp--custom--input-background, #fff);
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	color: currentColor;
	font-size: var(--wp--preset--font-size--small, 0.9rem);
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}


/* The radio dot. */
.scr-week-option label::before,
.scr-pill-option label::before {
	content: '';
	flex: 0 0 auto;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	border: 1px solid #8c8f94;
	border-radius: 50%;
	background: #fff;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Same font as the other pill radios; only the price is pushed right. */
.scr-week-option-title {
	min-width: 0;
	overflow-wrap: anywhere;
}

.scr-week-option-amount {
	flex: 0 0 auto;
	margin-left: auto;
	padding-left: var(--scr-space-sm);
	white-space: nowrap;
}

.scr-week-option label:hover,
.scr-pill-option label:hover {
	border-color: #023991;
}

.scr-week-option input:checked + label,
.scr-pill-option input:checked + label {
	background-color: #f5f7fc;
	border-color: #023991;
	color: #023991;
}

.scr-week-option input:checked + label::before,
.scr-pill-option input:checked + label::before {
	border-color: #023991;
	box-shadow: inset 0 0 0 4px #023991;
}

.scr-week-option input:focus-visible + label,
.scr-pill-option input:focus-visible + label {
	outline: 2px solid #023991;
	outline-offset: 2px;
}

.scr-child-weeks-field.scr-invalid .scr-week-option label,
.scr-hear-about-field.scr-invalid .scr-pill-option label,
.scr-previous-attendance-field.scr-invalid .scr-pill-option label,
.scr-child-gender-field.scr-invalid .scr-pill-option label,
.scr-currency-field.scr-invalid .scr-pill-option label {
	border-color: #b32d2e;
}

/* First time Yes / No, and Currency KYD / USD. */
.scr-pill-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--wp--preset--spacing--20, 1em);
}

/* Signature field. */
.scr-signature-open {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.6em;
	width: 100%;
	min-height: 96px;
	padding: 16px;
	border: 1px dashed #8c8f94;
	border-radius: 8px;
	background: #fff;
	color: #023991;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.scr-signature-open:hover {
	border-color: #023991;
	background: #f5f7fc;
}

.scr-signature-open:focus-visible,
.scr-link-button:focus-visible {
	outline: 2px solid #023991;
	outline-offset: 2px;
}

.scr-signature-field.scr-invalid .scr-signature-open,
.scr-signature-field.scr-invalid .scr-signature-preview-box {
	border-color: #b32d2e;
}

.scr-signature-preview-box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 96px;
	padding: 12px;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background: #fff;
}

.scr-signature-preview-box img {
	display: block;
	max-width: 100%;
	max-height: 120px;
	height: auto;
}

.scr-signature-typed {
	font-family: var(--scr-signature-font);
	font-size: 2rem;
	line-height: 1.3;
	color: #1d2327;
	word-break: break-word;
}

.scr-signature-preview-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--scr-space-xs) var(--scr-space-md);
	margin-top: var(--scr-space-xs);
	font-size: 0.85rem;
	color: #646970;
}

.scr-signature-preview-actions {
	display: inline-flex;
	gap: var(--scr-space-md);
}

.scr-link-button {
	padding: 0;
	border: none;
	background: none;
	color: #023991;
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.scr-signature-clear {
	color: #b32d2e;
}

/* Payment Information — the Ticket Sales Order Summary panel. */
.scr-order-summary-empty {
	margin: 0 0 var(--scr-space-md);
	padding: var(--scr-space-md);
	border: 1px dashed #d8d8d8;
	border-radius: 8px;
	background: #fff;
	color: #666;
	font-size: 0.9rem;
	text-align: center;
}

.scr-order-summary-box {
	margin: 0 0 var(--scr-space-md);
	padding: var(--scr-space-md);
	border-radius: 8px;
	background: #f7f7f7;
}

.scr-order-summary-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
	font-size: 0.95rem;
}

.scr-order-summary-row > span:last-child {
	text-align: right;
	white-space: nowrap;
}

.scr-order-summary-category {
	margin-bottom: var(--scr-space-xs);
	padding-bottom: var(--scr-space-sm);
	border-bottom: 1px solid #ddd;
}

.scr-order-summary-category > span:last-child {
	font-weight: 600;
	white-space: normal;
}

.scr-order-summary-total {
	margin-top: var(--scr-space-xs);
	padding-top: var(--scr-space-sm);
	border-top: 1px solid #ddd;
	font-size: 1.05rem;
}

.scr-order-summary-note {
	margin: var(--scr-space-sm) 0 0;
	font-size: 0.78rem;
	color: #777;
}

/* Card details. */
.scr-payment-section {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: none;
}

.scr-card-number-wrap {
	position: relative;
}

/* Room for the card-type badge so it never covers the digits. */
.scr-card-number-wrap input {
	padding-right: 6.5rem !important;
}

.scr-card-type-icon {
	position: absolute;
	top: 50%;
	right: 0.75em;
	transform: translateY(-50%);
	pointer-events: none;
}

.scr-card-icon {
	display: inline-block;
	padding: 0.15em 0.5em;
	border-radius: 4px;
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

.scr-card-icon-visa {
	background-color: #1a1f71;
}

.scr-card-icon-mastercard {
	background-color: #eb001b;
}

.scr-card-icon-amex {
	background-color: #2e77bc;
}

.scr-card-icon-discover {
	background-color: #ff6000;
}

/* Footer: reCAPTCHA + Submit & Pay. Top-aligned so the button stays put
   when an error appears beneath the widget. */
.scr-form-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--scr-space-md);
	margin: var(--scr-space-sm) 0 0;
}

/* Registration Note (Settings → General): the Ticket Sales
   note box, full width above the reCAPTCHA and Submit & Pay. */
.scr-application-note {
	flex: 1 1 100%;
	box-sizing: border-box;
	padding: 14px 18px;
	border: 1px solid #e3e8f4;
	border-left: 3px solid #023991;
	border-radius: 8px;
	background: #f5f7fc;
	color: #3c434a;
	font-size: 0.875rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.scr-application-note p,
.scr-application-note ul,
.scr-application-note ol {
	margin: 0 0 0.6em;
}

.scr-application-note > :last-child {
	margin-bottom: 0;
}

.scr-application-note strong {
	color: #1d2327;
}

.scr-application-note a {
	color: #023991;
}

.scr-field-recaptcha {
	flex: 0 0 auto;
	max-width: 100%;
	overflow: visible;
}

.scr-field-recaptcha iframe {
	display: block;
}

.scr-field-recaptcha .g-recaptcha {
	display: block;
	width: fit-content;
	border-radius: 3px;
}

.scr-field-recaptcha.scr-invalid .g-recaptcha {
	outline: 1px solid #b32d2e;
	outline-offset: 2px;
}

@media (max-width: 360px) {
	.scr-field-recaptcha .g-recaptcha {
		transform: scale(0.88);
		transform-origin: 0 0;
		margin-bottom: -9px;
	}
}

/* Vertically centred against the 78px reCAPTCHA widget. */
.scr-field-submit {
	margin-left: auto;
	margin-top: 11px;
}

.scr-form-footer:not(:has(.scr-field-recaptcha)) .scr-field-submit {
	margin-top: 0;
}

.scr-submit-button {
	width: auto;
	text-align: center;
	cursor: pointer;
}

.scr-submit-button[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

@media (max-width: 480px) {
	.scr-registration-form-wrap {
		padding: 24px 0;
	}

	.scr-form-footer {
		flex-direction: column;
	}

	.scr-field-submit,
	.scr-submit-button {
		width: 100%;
		margin-left: 0;
		margin-top: 0;
	}

	.scr-signature-typed {
		font-size: 1.6rem;
	}
}

/* Messages. */
.scr-form-messages,
.scr-unavailable {
	margin-bottom: 16px;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 0.9rem;
}

.scr-message-success {
	border: 1px solid #b6e3c0;
	background: #eaf7ec;
	color: #1a7d3c;
}

.scr-message-error {
	border: 1px solid #f3b8b4;
	background: #fdecea;
	color: #b32d2e;
}

.scr-unavailable {
	border: 1px solid #f0d58c;
	background: #fcf6e5;
	color: #6b5200;
}

/* ---------------------------------------------------------------------
 * Signature popup (moved to <body> by signature.js).
 * ------------------------------------------------------------------- */

html.scr-modal-open,
html.scr-modal-open body {
	overflow: hidden;
}

.scr-signature-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	color: #1d2327;
	font-size: 1rem;
	line-height: 1.5;
}

.scr-signature-modal *,
.scr-signature-modal *::before,
.scr-signature-modal *::after {
	box-sizing: border-box;
}

.scr-signature-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.scr-signature-modal-dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.scr-signature-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #eee;
}

.scr-signature-modal-header h3 {
	margin: 0;
	font-size: 1.1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #023991;
}

.scr-signature-modal-close {
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: none;
	color: #646970;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.scr-signature-modal-close:hover {
	background: #f5f7fc;
	color: #1d2327;
}

.scr-signature-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	margin: 16px 20px 0;
	padding: 4px;
	border-radius: 10px;
	background: #f0f2f7;
}

.scr-signature-tab {
	min-height: 40px;
	padding: 8px 12px;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #3c434a;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.scr-signature-tab[aria-selected="true"] {
	background: #fff;
	color: #023991;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.scr-signature-tab:focus-visible,
.scr-signature-modal-close:focus-visible,
.scr-signature-secondary:focus-visible {
	outline: 2px solid #023991;
	outline-offset: 2px;
}

.scr-signature-panel {
	padding: 20px;
}

.scr-signature-panel-title {
	display: block;
	margin: 0 0 var(--scr-space-sm);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #646970;
}

/* Draw. */
.scr-signature-pad-wrap {
	position: relative;
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background: #fff;
}

.scr-signature-pad {
	display: block;
	width: 100%;
	height: 200px;
	border-radius: 8px;
	cursor: crosshair;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
}

.scr-signature-pad-line {
	position: absolute;
	right: 24px;
	bottom: 44px;
	left: 24px;
	border-bottom: 1px dashed #c3c4c7;
	pointer-events: none;
}

.scr-signature-pad-hint {
	position: absolute;
	right: 0;
	bottom: 16px;
	left: 0;
	color: #8c8f94;
	font-size: 0.82rem;
	text-align: center;
	pointer-events: none;
}

/* Type. */
.scr-signature-modal .scr-signature-type-input {
	width: 100%;
	min-height: 44px;
	padding: 0.7rem 1rem;
	border-radius: 6px;
	font: inherit;
}

.scr-signature-preview-label {
	margin: var(--scr-space-md) 0 var(--scr-space-xs);
	font-size: 0.82rem;
	color: #646970;
}

.scr-signature-type-preview,
.scr-signature-upload-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 110px;
	padding: 12px;
	border: 1px dashed #d8d8d8;
	border-radius: 8px;
	background: #fafbfd;
}

.scr-signature-type-preview .scr-signature-typed {
	font-size: 2.2rem;
	text-align: center;
}

/* Upload. */
.scr-signature-modal .scr-signature-upload-input {
	width: 100%;
	padding: 10px;
	border-style: dashed !important;
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 0.9rem;
}

.scr-signature-upload-preview img {
	display: block;
	max-width: 100%;
	max-height: 160px;
	height: auto;
}

.scr-signature-upload-empty {
	color: #8c8f94;
	font-size: 0.85rem;
}

.scr-signature-error {
	margin-top: var(--scr-space-sm);
	padding: 8px 12px;
	border: 1px solid #f3b8b4;
	border-radius: 4px;
	background: #fdecea;
	color: #b32d2e;
	font-size: 0.85rem;
}

.scr-signature-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--scr-space-sm);
	margin-top: var(--scr-space-md);
}

.scr-signature-secondary {
	min-height: 42px;
	padding: 0.6rem 1.4rem;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	background: #fff;
	color: #1d2327;
	font: inherit;
	cursor: pointer;
}

.scr-signature-secondary:hover {
	border-color: #023991;
	color: #023991;
}

.scr-signature-apply {
	cursor: pointer;
}

/* Phones: the popup fills the screen. */
@media (max-width: 600px) {
	.scr-signature-modal {
		padding: 0;
		align-items: stretch;
	}

	.scr-signature-modal-dialog {
		max-width: none;
		max-height: none;
		height: 100%;
		border-radius: 0;
	}

	.scr-signature-pad {
		height: 180px;
	}

	.scr-signature-actions > button {
		flex: 1 1 auto;
	}
}

/* ---------------------------------------------------------------------
 * Thank You / status — the Ticket Sales result page.
 * ------------------------------------------------------------------- */

.scr-status {
	max-width: 680px;
	margin: 40px auto;
	padding: 32px 28px;
	border: 1px solid #e2e2e2;
	border-radius: 20px;
	background: #fff;
	box-sizing: border-box;
	text-align: center;
}

.scr-status h2 {
	margin: 0 0 var(--scr-space-sm);
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
	line-height: 1.2;
}

.scr-status p {
	margin: 0 0 var(--scr-space-md);
}

.scr-status > :last-child {
	margin-bottom: 0;
}

.scr-status-success h2 {
	color: #023991;
}

.scr-status-failed h2 {
	color: #b32d2e;
}

.scr-status-pending h2 {
	color: #8a6d00;
}

.scr-status.scr-status-full {
	width: 100%;
	max-width: 1340px !important;
	margin: 40px auto 0;
	padding: 36px 0;
	border: none;
	border-radius: 0;
	background: none;
	text-align: left;
}

@media (max-width: 1399px) {
	.scr-status.scr-status-full {
		max-width: 1100px !important;
	}
}

@media (max-width: 1199px) {
	.scr-status.scr-status-full {
		max-width: 910px !important;
	}
}

@media (max-width: 991px) {
	.scr-status.scr-status-full {
		max-width: 740px !important;
	}
}

@media (max-width: 767px) {
	.scr-status.scr-status-full {
		max-width: 575px !important;
		padding: 28px 0;
	}
}

.scr-status-full .scr-status-header {
	margin: 0 0 var(--scr-space-lg);
	padding-bottom: var(--scr-space-lg);
	border-bottom: 1px solid #eee;
	text-align: center;
}

.scr-status-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 0 var(--scr-space-sm);
	border-radius: 50%;
	background: #aac4ed;
	color: #023991;
}

.scr-status-references {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: stretch;
	gap: var(--scr-space-sm);
}

.scr-status-reference {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	margin: 0 !important;
	padding: var(--scr-space-sm) 24px;
	border-radius: 8px;
	background: #f5f7fc;
}

.scr-status-reference span {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #666;
}

.scr-status-reference strong {
	font-size: 0.95rem;
	color: #1d2327;
	word-break: break-all;
}

.scr-status-reference .scr-status-badge {
	text-transform: none;
	letter-spacing: 0;
}

.scr-status-badge {
	display: inline-block;
	padding: 1px 10px;
	border-radius: 999px;
	background: #aac4ed;
	color: #023991;
	font-size: 0.85rem;
	font-weight: 700;
}

@media (max-width: 600px) {
	.scr-status-references .scr-status-reference {
		flex: 1 1 100%;
	}
}

.scr-status-layout {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
	gap: 0 40px;
	align-items: start;
}

.scr-status-main,
.scr-status-aside {
	min-width: 0;
}

.scr-status-section-title {
	margin: 0 0 var(--scr-space-sm);
	font-size: 1.1rem;
	line-height: 1.3;
	color: #023991;
}

.scr-status-summary {
	display: grid;
	grid-template-columns: minmax(110px, 200px) minmax(0, 1fr);
	gap: 8px 16px;
	margin: 0 0 var(--scr-space-md);
	padding: var(--scr-space-md);
	border-radius: 8px;
	background: #f7f7f7;
	text-align: left;
}

.scr-status-summary dt {
	font-weight: 600;
	color: #666;
}

.scr-status-summary dd {
	margin: 0;
}

.scr-status-description {
	padding: 14px 18px;
	border-left: 3px solid #023991;
	border-radius: 0 8px 8px 0;
	background: #f5f7fc;
	font-size: 0.9rem;
	line-height: 1.6;
}

.scr-status-description > :last-child {
	margin-bottom: 0;
}

.scr-status-aside {
	position: sticky;
	top: 24px;
	padding: 24px;
	border: 1px solid #e2e2e2;
	border-radius: 16px;
	background: #fafbfd;
}

.scr-status-payment-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 4px 0;
	font-size: 0.95rem;
}

/* Grand Total (Subtotal − Discount): a sub-total, lighter than the total. */
.scr-status-payment-grand-total {
	padding-top: var(--scr-space-xs, 6px);
	border-top: 1px dashed #ddd;
	font-weight: 600;
}

.scr-status-payment-total {
	margin-top: var(--scr-space-xs);
	padding-top: var(--scr-space-sm);
	border-top: 1px solid #ddd;
	font-size: 1.05rem;
}

.scr-status-full .scr-status-note {
	margin: var(--scr-space-lg) 0 0;
	padding: 14px 18px;
	border: 1px solid #e3e8f4;
	border-left: 3px solid #023991;
	border-radius: 8px;
	background: #f5f7fc;
	color: #3c434a;
	font-size: 0.9rem;
}

/* Payment Failed — same full-page layout as Thank You, plus a red icon,
   a Try Again button, and the "What You Can Do" list (the Ticket Sales
   plugin's booking-failed styles). */
.scr-status-failed .scr-status-icon {
	background: #fdecea;
	color: #b32d2e;
}

.scr-status-badge.scr-status-badge-failed {
	background: #fdecea;
	color: #b32d2e;
}

.scr-status-full .scr-status-header .scr-status-actions {
	margin: var(--scr-space-md) 0 0;
}

/* Result-page buttons (Return to Summer Camp / Try Again): the page's brand
   blue — like its icon, heading and section titles — with the reference
   boxes' rounded corners, sized like the form's Submit & Pay button. The
   theme's global button styles have zero specificity, so these win. */
.scr-status .scr-status-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 220px;
	padding: 0.95rem 2.2rem !important;
	border: 1px solid #023991;
	border-radius: 8px;
	background: #023991;
	box-sizing: border-box;
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.scr-status .scr-status-button:hover,
.scr-status .scr-status-button:focus {
	border-color: #012a6b;
	background: #012a6b;
	color: #ffffff;
}

.scr-status .scr-status-button:focus-visible {
	outline: 2px solid #023991;
	outline-offset: 2px;
}

.scr-status-help-block {
	margin-top: var(--scr-space-lg);
}

.scr-status-help {
	margin: 0;
	padding: 0;
	list-style: none;
}

.scr-status-help li {
	position: relative;
	margin: 0 0 var(--scr-space-sm);
	padding: 0 0 0 28px;
	line-height: 1.6;
}

.scr-status-help li::before {
	content: '';
	position: absolute;
	top: 0.55em;
	left: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #023991;
}

@media (max-width: 480px) {
	.scr-status .scr-status-button {
		display: flex;
		width: 100%;
		min-width: 0;
	}
}

@media (max-width: 991px) {
	.scr-status-layout {
		grid-template-columns: 1fr;
		gap: var(--scr-space-lg);
	}

	.scr-status-aside {
		position: static;
	}
}

@media (max-width: 480px) {
	.scr-status {
		padding: 24px 16px;
	}

	.scr-status-aside {
		padding: 18px;
	}

	.scr-status-full .scr-status-summary {
		grid-template-columns: auto minmax(0, 1fr);
	}
}

/* =====================================================================
 * Summer camp additions: section titles, checkboxes, the Number of
 * Child stepper (the Events & Summer Camp Registration attendees
 * stepper), per-child sections, and the per-child payment summary.
 * ================================================================== */

/* Checkbox pills: a square tick box in place of the radio dot. */
.scr-week-option input[type="checkbox"] + label::before,
.scr-pill-option input[type="checkbox"] + label::before {
	border-radius: 3px;
}

.scr-week-option input[type="checkbox"]:checked + label::before,
.scr-pill-option input[type="checkbox"]:checked + label::before {
	box-shadow: none;
	background: #023991 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.scr-check-options {
	display: flex;
	flex-wrap: wrap;
	gap: var(--scr-space-sm, 12px);
}

.scr-hear-about-field,
.scr-previous-attendance-field,
.scr-currency-field,
.scr-children-count-field {
	margin-bottom: var(--scr-space-md, 20px);
}

.scr-children-stepper {
	display: inline-flex;
	align-items: stretch;
	max-width: 170px;
	border: 1px solid #d8d8d8;
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
}

.scr-children-stepper-btn {
	flex: 0 0 auto;
	width: 44px;
	min-height: 44px;
	border: none;
	background: #fff;
	color: #023991;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.scr-children-decrement {
	border-right: 1px solid #d8d8d8 !important;
}

.scr-children-increment {
	border-left: 1px solid #d8d8d8 !important;
}

.scr-children-stepper-btn:hover:not(:disabled) {
	background: #f5f7fc;
}

.scr-children-stepper-btn:disabled {
	background: #f5f5f5;
	cursor: not-allowed;
	opacity: 0.6;
}

.scr-children-stepper input[type="number"] {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	border: none !important;
	text-align: center;
	-moz-appearance: textfield;
}

.scr-children-stepper input[type="number"]::-webkit-outer-spin-button,
.scr-children-stepper input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.scr-children-count-field.scr-invalid .scr-children-stepper {
	border-color: #b32d2e;
}

.scr-children {
	display: flex;
	flex-direction: column;
	gap: var(--scr-space-md, 20px);
	margin-bottom: var(--scr-space-md, 20px);
}

.scr-child {
	min-width: 0;
	margin: 0;
	padding: var(--scr-space-md, 20px);
	border: 1px solid #d8d8d8;
	border-radius: 8px;
	background: #f9f9f9;
}

.scr-child-title {
	padding: 0 var(--scr-space-xs, 6px);
	color: #023991;
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.scr-child .scr-field:last-child {
	margin-bottom: 0;
}

.scr-child .scr-form-row {
	margin-bottom: var(--scr-space-md, 20px);
}

.scr-child textarea,
.scr-field textarea {
	width: 100%;
	box-sizing: border-box;
	resize: vertical;
}

/* Date of Birth: DD/MM/YYYY text field with a calendar icon. */
.scr-registration-form-wrap .scr-dob-input {
	min-height: 42px;
	padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23023991' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
	background-position: right 12px center;
	background-repeat: no-repeat;
	background-size: 18px 18px;
	cursor: pointer;
}

/*
 * The Date of Birth datepicker (WordPress's jQuery UI Datepicker, which
 * ships no theme). jQuery UI appends one shared #ui-datepicker-div to
 * <body>, so every rule is scoped to .scr-datepicker, the class the form
 * adds to it — any other datepicker on the site is left alone.
 */
.scr-datepicker.ui-datepicker {
	z-index: 100000 !important;
	width: 300px;
	margin-top: 6px;
	padding: 12px;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #ffffff;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
	color: #1d2327;
	font-family: inherit;
	font-size: 14px;
	box-sizing: border-box;
}

.scr-datepicker .ui-datepicker-header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	margin-bottom: 8px;
	padding: 0 34px;
}

.scr-datepicker .ui-datepicker-title {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin: 0;
	font-weight: 600;
	line-height: 1;
}

.scr-datepicker .ui-datepicker-title select {
	min-height: 32px;
	margin: 0;
	padding: 4px 26px 4px 10px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231d2327' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center;
	color: #1d2327;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}

.scr-datepicker .ui-datepicker-title select:focus {
	border-color: #023991;
	outline: 2px solid rgba(2, 57, 145, 0.2);
	outline-offset: 0;
}

.scr-datepicker .ui-datepicker-prev,
.scr-datepicker .ui-datepicker-next {
	position: absolute;
	top: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: #1d2327;
	text-decoration: none;
	cursor: pointer;
	transform: translateY(-50%);
}

.scr-datepicker .ui-datepicker-prev {
	left: 0;
}

.scr-datepicker .ui-datepicker-next {
	right: 0;
}

.scr-datepicker .ui-datepicker-prev:hover,
.scr-datepicker .ui-datepicker-next:hover {
	background: #f0f4fb;
}

/* Replace jQuery UI's "Prev" / "Next" text with chevrons. */
.scr-datepicker .ui-datepicker-prev span,
.scr-datepicker .ui-datepicker-next span {
	display: block;
	width: 8px;
	height: 8px;
	overflow: hidden;
	border-top: 2px solid currentColor;
	border-left: 2px solid currentColor;
	text-indent: -9999px;
}

.scr-datepicker .ui-datepicker-prev span {
	margin-left: 3px;
	transform: rotate(-45deg);
}

.scr-datepicker .ui-datepicker-next span {
	margin-right: 3px;
	transform: rotate(135deg);
}

.scr-datepicker .ui-state-disabled.ui-datepicker-prev,
.scr-datepicker .ui-state-disabled.ui-datepicker-next {
	opacity: 0.3;
	cursor: default;
}

.scr-datepicker .ui-state-disabled.ui-datepicker-prev:hover,
.scr-datepicker .ui-state-disabled.ui-datepicker-next:hover {
	background: none;
}

.scr-datepicker .ui-datepicker-calendar {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	table-layout: fixed;
}

.scr-datepicker .ui-datepicker-calendar th,
.scr-datepicker .ui-datepicker-calendar td {
	padding: 1px;
	border: 0;
	background: none;
	text-align: center;
}

.scr-datepicker .ui-datepicker-calendar th {
	padding-bottom: 6px;
	color: #646970;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.scr-datepicker .ui-datepicker-calendar td a,
.scr-datepicker .ui-datepicker-calendar td span {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	border-radius: 8px;
	color: #1d2327;
	text-decoration: none;
	line-height: 1;
}

.scr-datepicker .ui-datepicker-calendar td a:hover {
	background: #f0f4fb;
	color: #023991;
}

.scr-datepicker .ui-datepicker-calendar .ui-datepicker-other-month a {
	color: #a7aaad;
}

.scr-datepicker .ui-datepicker-calendar .ui-datepicker-today a {
	box-shadow: inset 0 0 0 1px #023991;
	color: #023991;
	font-weight: 600;
}

.scr-datepicker .ui-datepicker-calendar .ui-datepicker-current-day a,
.scr-datepicker .ui-datepicker-calendar td a.ui-state-active {
	background: #023991;
	box-shadow: none;
	color: #ffffff;
	font-weight: 600;
}

/* Future dates (after today) and dates before the earliest birth year. */
.scr-datepicker .ui-datepicker-calendar .ui-state-disabled span {
	color: #c3c4c7;
	cursor: not-allowed;
}

@media (max-width: 400px) {
	.scr-datepicker.ui-datepicker {
		width: calc(100vw - 32px);
	}
}

/* Payment Information: one block per child, then the totals. */
.scr-summary-children {
	display: flex;
	flex-direction: column;
	gap: var(--scr-space-sm, 12px);
	margin-bottom: var(--scr-space-sm, 12px);
	padding-bottom: var(--scr-space-sm, 12px);
	border-bottom: 1px solid #e2e2e2;
}

.scr-summary-child-name strong {
	min-width: 0;
	overflow-wrap: anywhere;
}

.scr-summary-weeks {
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.85rem;
	color: #50575e;
}

.scr-summary-weeks li {
	display: flex;
	justify-content: space-between;
	gap: var(--scr-space-sm, 12px);
	padding: 2px 0;
}

.scr-summary-weeks li span:first-child {
	min-width: 0;
	overflow-wrap: anywhere;
}

.scr-summary-weeks li span:last-child {
	flex: 0 0 auto;
	white-space: nowrap;
}

.scr-summary-muted {
	margin: 4px 0 0;
	color: #787c82;
	font-size: 0.85rem;
}

/* Discount: the rule label "(One Child - KYD$10.00)" and its amount in brand blue. */
.scr-order-summary-discount #scr-summary-discount-title,
.scr-order-summary-discount #scr-summary-discount {
	color: #023991;
}

/* Grand Total (Subtotal − Discount): a sub-total, lighter than Final Total. */
.scr-order-summary-grand-total {
	padding-top: var(--scr-space-xs, 6px);
	border-top: 1px dashed #ddd;
	font-weight: 600;
}

.scr-payment-section[hidden] {
	display: none !important;
}

/* Thank You / Failed pages: each child with their weeks. */
.scr-status-child {
	margin-top: var(--scr-space-md, 20px);
	padding: var(--scr-space-sm, 12px) var(--scr-space-md, 20px);
	border: 1px solid #e2e2e2;
	border-radius: 8px;
}

.scr-status-child-title {
	margin: 0 0 var(--scr-space-xs, 6px);
	font-size: 1rem;
}

.scr-status-weeks {
	margin: 0;
	padding: 0;
	list-style: none;
}

.scr-status-weeks li,
.scr-status-child-subtotal {
	display: flex;
	justify-content: space-between;
	gap: var(--scr-space-sm, 12px);
	padding: 4px 0;
}

.scr-status-child-subtotal {
	margin: var(--scr-space-xs, 6px) 0 0;
	border-top: 1px solid #e2e2e2;
}

@media (max-width: 600px) {
	.scr-child {
		padding: var(--scr-space-sm, 12px);
	}

	.scr-check-options .scr-pill-option {
		flex: 1 1 calc(50% - var(--scr-space-sm, 12px));
	}
}

/* =====================================================================
 * Section cards: the form is grouped into numbered cards — 1 Parent's /
 * Guardian's Information (ending with Currency), 2 Child Information, 3 Signature,
 * 4 Card Details (hidden while nothing is payable, so never numbered).
 * ================================================================== */

.scr-registration-form-wrap #scr-registration-form-heading {
	margin-bottom: var(--scr-space-xs);
}

.scr-form-lead {
	margin: 0 0 var(--scr-space-lg);
	color: #50575e;
	font-size: 0.95rem;
	line-height: 1.6;
}

.scr-form-main {
	counter-reset: scr-step;
}

.scr-card {
	counter-increment: scr-step;
	margin: 0 0 24px;
	/* Every card ends with a field's own 20px bottom margin. */
	padding: 28px 28px 8px;
	border: 1px solid #e3e7ee;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 18px rgba(16, 24, 40, 0.04);
}

.scr-card-header {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 0 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid #eef1f5;
}

.scr-card-step {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #023991;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1;
}

.scr-card-step::before {
	content: counter(scr-step);
}

.scr-card-heading {
	min-width: 0;
	padding-top: 2px;
}

.scr-registration-form-wrap .scr-card .scr-card-title {
	margin: 0;
	padding: 0;
	border: 0;
	color: #023991;
	font-size: 1.1rem;
	line-height: 1.3;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.scr-card-subtitle {
	margin: 4px 0 0;
	color: #646970;
	font-size: 0.88rem;
	line-height: 1.5;
}

.scr-lock-icon {
	margin-right: 4px;
	color: #1a7d3c;
	vertical-align: -2px;
}

/* Child panels: a soft blue-grey panel with a pill label. */
.scr-card .scr-children {
	margin-bottom: var(--scr-space-md);
}

.scr-child {
	padding: 22px 20px 20px;
	border: 1px solid #dde4ef;
	border-radius: 12px;
	background: #f7f9fc;
}

.scr-child-title {
	padding: 4px 12px;
	border-radius: 999px;
	background: #023991;
	color: #fff;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
}

/* Payment Information: a white summary on the panel, a stronger total. */
.scr-order-summary-box {
	border: 1px solid #e8ebf0;
	background: #fff;
}

.scr-order-summary-total {
	color: #023991;
	font-size: 1.15rem;
}

.scr-submit-button {
	min-width: 220px;
	padding: 0.95rem 2.2rem !important;
	font-size: 1rem;
}

@media (max-width: 600px) {
	.scr-card {
		padding: 20px 16px 0;
		border-radius: 12px;
	}

	.scr-card-header {
		gap: 10px;
		margin-bottom: 20px;
		padding-bottom: 14px;
	}

	.scr-card-step {
		width: 28px;
		height: 28px;
		font-size: 0.85rem;
	}

	.scr-child {
		padding: 18px 12px 12px;
	}

	.scr-submit-button {
		min-width: 0;
	}
}
