/* SAHMS GBVF Walk registration: colours taken from the printed form. */
.sahms-walk {
	--sw-orange: #f26522;
	--sw-orange-dark: #c94a0f;
	--sw-blue: #1d4f9c;
	--sw-lav: #e3e4f7;
	--sw-lav-line: #c7c9ec;
	--sw-ink: #1a1a2e;
	--sw-muted: #5c5c70;
	--sw-error: #b42318;
	--sw-ok: #0f6b33;
	--sw-radius: 8px;

	max-width: 820px;
	margin: 0 auto;
	color: var(--sw-ink);
	font-size: 16px;
	line-height: 1.5;
}
.sahms-walk *,
.sahms-walk *::before,
.sahms-walk *::after { box-sizing: border-box; }

/* Event strip */
.sw-strip {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--sw-lav-line);
	border: 1px solid var(--sw-lav-line);
	border-radius: var(--sw-radius);
	overflow: hidden;
	margin-bottom: 28px;
}
.sw-strip > div { background: #fff; padding: 14px 16px; font-weight: 700; color: var(--sw-blue); }
.sw-strip-k {
	display: block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sw-orange);
	margin-bottom: 2px;
}

/* Sections */
.sw-form { margin: 0; }
.sw-section {
	border: 1px solid var(--sw-lav-line);
	border-radius: var(--sw-radius);
	padding: 0 20px 8px;
	margin: 0 0 24px;
	min-width: 0;
}
.sw-section legend {
	display: flex;
	align-items: center;
	gap: 10px;
	float: left;
	width: calc(100% + 40px);
	margin: 0 -20px 18px;
	padding: 10px 20px;
	background: var(--sw-lav);
	border-radius: var(--sw-radius) var(--sw-radius) 0 0;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--sw-blue);
}
.sw-section legend + * { clear: both; }
.sw-num {
	display: inline-grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 4px;
	background: var(--sw-orange);
	color: #fff;
	font-size: 14px;
}

.sw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }

/* Fields */
.sw-field { margin: 0 0 16px; }
.sw-field label,
.sw-q { display: block; font-weight: 600; margin: 0 0 6px; padding: 0; font-size: 15px; }
.sw-opt { font-weight: 400; color: var(--sw-muted); }
.sahms-walk input[type="text"],
.sahms-walk input[type="email"],
.sahms-walk input[type="tel"],
.sahms-walk textarea {
	display: block;
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #a9abc8;
	border-radius: 6px;
	background: #fff;
	color: var(--sw-ink);
	font: inherit;
	line-height: 1.4;
	margin: 0;
	box-shadow: none;
}
.sahms-walk input[readonly] { background: #f4f4f8; color: var(--sw-muted); }
.sahms-walk input:focus,
.sahms-walk textarea:focus { outline: 3px solid rgba(29, 79, 156, .3); outline-offset: 0; border-color: var(--sw-blue); }
.sw-has-error input,
.sw-has-error textarea { border-color: var(--sw-error); }
.sw-help { margin: 5px 0 0; padding: 0; font-size: 14px; color: var(--sw-muted); }
.sw-error { margin: 5px 0 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--sw-error); }

.sw-choices { display: flex; gap: 12px; flex-wrap: wrap; }
.sw-choice,
.sw-check {
	display: flex !important;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	cursor: pointer;
}
.sw-choice { padding: 10px 18px; border: 1px solid #a9abc8; border-radius: 6px; min-width: 100px; }
.sw-choice:has(input:checked) { border-color: var(--sw-blue); background: var(--sw-lav); }
.sahms-walk input[type="radio"],
.sahms-walk input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: var(--sw-blue); flex: none; }
.sw-check { padding: 4px 0; }
.sw-medical-details[hidden] { display: none; }

.sw-legal { font-size: 14px; color: #33334a; margin: 0 0 14px; padding: 0; }
.sw-legal-box {
	max-height: 170px;
	overflow: auto;
	padding: 12px 14px;
	background: #f7f7fb;
	border: 1px solid var(--sw-lav-line);
	border-radius: 6px;
}

/* Buttons */
.sw-btn {
	display: inline-block;
	padding: 14px 26px;
	border: 0;
	border-radius: 6px;
	background: var(--sw-orange);
	color: #fff !important;
	font: inherit;
	font-weight: 800;
	font-size: 17px;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .15s ease;
}
.sw-btn:hover { background: var(--sw-orange-dark); }
.sw-btn:focus-visible { outline: 3px solid var(--sw-blue); outline-offset: 2px; }
.sw-btn[disabled] { opacity: .65; cursor: progress; }
.sw-btn-ghost { background: transparent; color: var(--sw-blue) !important; box-shadow: inset 0 0 0 2px var(--sw-blue); }
.sw-btn-ghost:hover { background: var(--sw-lav); }
.sw-btn-pay { width: 100%; font-size: 19px; padding: 16px; }

.sw-submit { margin: 8px 0 0; }
.sw-small { font-size: 14px; color: var(--sw-muted); margin: 12px 0 0; padding: 0; }
.sw-secure { font-size: 14px; color: var(--sw-muted); margin: 10px 0 0; padding: 0; text-align: center; }

/* Messages */
.sw-alert {
	padding: 12px 16px;
	margin: 0 0 20px;
	border-left: 4px solid var(--sw-error);
	background: #fdecea;
	color: var(--sw-error);
	font-weight: 600;
	border-radius: 0 6px 6px 0;
}
.sw-success {
	padding: 14px 18px;
	margin: 0 0 20px;
	border-left: 4px solid var(--sw-ok);
	background: #e6f4ea;
	border-radius: 0 6px 6px 0;
}
.sw-sandbox {
	padding: 8px 14px;
	margin: 0 0 16px;
	background: #fff4d6;
	border: 1px dashed #c58a00;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	color: #7a5300;
}
.sw-admin-hint { font-size: 14px; background: #f4f4f8; padding: 8px 12px; border-radius: 6px; }
.sw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Cards (pay / waiting) */
.sw-card {
	border: 1px solid var(--sw-lav-line);
	border-top: 6px solid var(--sw-orange);
	border-radius: var(--sw-radius);
	padding: 24px 28px;
	background: #fff;
}
.sw-eyebrow { margin: 0 0 4px; padding: 0; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sw-orange); }
.sw-h { margin: 0 0 12px; padding: 0; font-size: 26px; font-weight: 800; line-height: 1.2; color: var(--sw-blue); }
.sw-summary { margin: 20px 0; padding: 0; border-top: 1px solid var(--sw-lav-line); }
.sw-summary > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--sw-lav-line); }
.sw-summary dt { color: var(--sw-muted); }
.sw-summary dd { margin: 0; font-weight: 700; text-align: right; }
.sw-spinner {
	width: 36px;
	height: 36px;
	margin: 16px 0;
	border: 4px solid var(--sw-lav);
	border-top-color: var(--sw-orange);
	border-radius: 50%;
	animation: sw-spin .9s linear infinite;
}
@keyframes sw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sw-spinner { animation-duration: 3s; } }

/* Ticket */
.sw-ticket {
	border: 2px solid var(--sw-orange);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}
.sw-ticket-head { background: var(--sw-orange); color: #fff; padding: 18px 24px; }
.sw-ticket-head span { display: block; }
.sw-ticket-org { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.sw-ticket-title { font-size: 28px; font-weight: 900; line-height: 1.1; text-transform: uppercase; margin: 4px 0; }
.sw-ticket-sub { font-size: 14px; font-weight: 600; }
.sw-ticket-body { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 22px 24px; }
.sw-ticket-k { margin: 0; padding: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sw-muted); }
.sw-ticket-no { margin: 0 0 14px; padding: 0; font-size: 40px; font-weight: 900; line-height: 1.1; color: var(--sw-blue); letter-spacing: .02em; }
.sw-ticket-dl { margin: 0; padding: 0; }
.sw-ticket-dl > div { padding: 6px 0; border-top: 1px solid var(--sw-lav-line); }
.sw-ticket-dl dt { font-size: 13px; color: var(--sw-muted); }
.sw-ticket-dl dd { margin: 0; font-weight: 700; }
.sw-ticket-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: var(--sw-muted); text-align: center; }
.sw-qr { width: 160px; height: 160px; }
.sw-qr img, .sw-qr canvas { width: 160px !important; height: 160px !important; }
.sw-ticket-foot { background: var(--sw-lav); color: var(--sw-blue); padding: 10px 24px; font-size: 14px; font-weight: 600; }
.sw-ticket-powered {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 6px 24px 7px;
	background: #fff;
	border-top: 1px solid var(--sw-lav-line);
	color: var(--sw-muted) !important;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none !important;
}
.sw-ticket-powered img { display: block; width: auto; height: 36px; }
.sw-ticket-powered:hover span { color: var(--sw-ink); }
.sw-ticket-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 0; }

@media (max-width: 640px) {
	.sw-strip { grid-template-columns: 1fr; }
	.sw-grid { grid-template-columns: 1fr; }
	.sw-section { padding: 0 14px 4px; }
	.sw-section legend { width: calc(100% + 28px); margin: 0 -14px 16px; padding: 10px 14px; }
	.sw-card { padding: 20px 18px; }
	.sw-h { font-size: 22px; }
	.sw-ticket-body { grid-template-columns: 1fr; }
	.sw-ticket-no { font-size: 34px; }
	.sw-btn { width: 100%; text-align: center; }
}

@media print {
	body * { visibility: hidden; }
	.sw-ticket, .sw-ticket * { visibility: visible; }
	.sw-ticket { position: absolute; left: 0; top: 0; width: 100%; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
