/* SG Academy - front end. Neutral by design so the theme's typography wins. */

.sga-form, .sga-pay { max-width: 640px; margin: 0 auto; }

.sga-fieldset {
	border: 1px solid rgba(0,0,0,.10);
	border-radius: 10px;
	padding: 20px 22px 6px;
	margin: 0 0 22px;
}
.sga-fieldset > legend { padding: 0 8px; font-weight: 600; font-size: .95em; }

.sga-field { margin: 0 0 18px; }
.sga-field > label { display: block; font-weight: 600; margin: 0 0 6px; font-size: .95em; }
.sga-field input[type=text],
.sga-field input[type=email],
.sga-field input[type=tel],
.sga-field input[type=date],
.sga-field select,
.sga-field textarea {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid rgba(0,0,0,.22);
	border-radius: 8px;
	font: inherit;
	background: #fff;
	color: inherit;
	box-sizing: border-box;
}
.sga-field input:focus, .sga-field select:focus, .sga-field textarea:focus {
	outline: 2px solid #1e73be;
	outline-offset: 1px;
	border-color: #1e73be;
}
.sga-req { color: #c0392b; }
.sga-hint { font-size: .85em; opacity: .72; margin: 6px 0 0; }
.sga-hint.is-flagged { opacity: 1; color: #a15c00; font-weight: 600; }
.sga-error { display: block; color: #c0392b; font-size: .85em; margin: 6px 0 0; font-weight: 600; }

.sga-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sga-check { margin: 0 0 16px; }
.sga-check label { display: flex; gap: 10px; align-items: flex-start; font-size: .92em; line-height: 1.5; }
.sga-check input { margin-top: .3em; flex: 0 0 auto; }

.sga-btn {
	display: inline-block;
	background: #1e73be;
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 14px 28px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.sga-btn:hover { background: #185d99; }
.sga-btn:focus-visible { outline: 3px solid #a9cdea; outline-offset: 2px; }

/* ---- notices ---- */
.sga-notice { border-radius: 10px; padding: 16px 18px; margin: 0 0 22px; border: 1px solid; }
.sga-notice > :first-child { margin-top: 0; }
.sga-notice > :last-child { margin-bottom: 0; }
.sga-notice--success { background: #edf7ee; border-color: #bcdfc0; }
.sga-notice--error   { background: #fdeded; border-color: #f2bcbc; }
.sga-notice--warn    { background: #fff6e5; border-color: #f0d9a8; }
.sga-notice--info    { background: #eef4fa; border-color: #c3d8ec; }

/* ---- pitch ---- */
.sga-pitch-wrap { margin: 4px 0 18px; }
.sga-pitch {
	position: relative;
	width: 100%;
	max-width: 340px;
	margin: 0 auto 10px;
	aspect-ratio: 100 / 150;
}
.sga-pitch__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sga-pitch__turf { fill: #2f7d4f; }
.sga-pitch__line { fill: none; stroke: rgba(255,255,255,.55); stroke-width: .7; }
.sga-pitch__dot  { fill: rgba(255,255,255,.55); stroke: none; }

.sga-pos {
	position: absolute;
	transform: translate(-50%, -50%);
	width: 15%;
	aspect-ratio: 1;
	min-width: 38px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,.85);
	background: rgba(0,0,0,.42);
	color: #fff;
	font: inherit;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: background .12s ease, transform .12s ease;
}
.sga-pos:hover { background: rgba(0,0,0,.62); }
.sga-pos:focus-visible { outline: 3px solid #ffd54a; outline-offset: 2px; }
.sga-pos.is-primary   { background: #f2c200; color: #1b1b1b; border-color: #fff; transform: translate(-50%, -50%) scale(1.16); }
.sga-pos.is-secondary { background: #fff; color: #1b1b1b; border-color: #f2c200; transform: translate(-50%, -50%) scale(1.08); }

.sga-pos__badge { display: none; }
.sga-pos.is-primary .sga-pos__badge,
.sga-pos.is-secondary .sga-pos__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	top: -6px; right: -6px;
	width: 19px; height: 19px;
	border-radius: 50%;
	background: #1e73be;
	color: #fff;
	font-size: 11px;
	border: 2px solid #fff;
}
.sga-pos.is-primary   .sga-pos__badge::after { content: "1"; }
.sga-pos.is-secondary .sga-pos__badge::after { content: "2"; }

.sga-pitch__legend { text-align: center; font-size: .84em; opacity: .8; margin: 0 0 14px; }
.sga-key {
	display: inline-flex; align-items: center; justify-content: center;
	width: 19px; height: 19px; border-radius: 50%;
	background: #1e73be; color: #fff; font-size: 11px; font-weight: 700;
	margin: 0 4px 0 12px;
}
.sga-pitch__legend > .sga-key:first-child { margin-left: 0; }

.sga-pitch__selects { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .sga-pitch__selects { grid-template-columns: 1fr; } }

/* Without JS the pitch is decorative and the selects do the work. */
.sga-pitch-wrap:not(.is-enhanced) .sga-pitch { display: none; }
.sga-pitch-wrap:not(.is-enhanced) .sga-pitch__legend { display: none; }

/* ---- payment ---- */
.sga-pay__sub { opacity: .75; margin-top: -6px; }
.sga-pay__block { margin: 0 0 26px; }

.sga-option {
	display: block;
	border: 2px solid rgba(0,0,0,.12);
	border-radius: 12px;
	padding: 16px 18px;
	margin: 0 0 14px;
	cursor: pointer;
}
.sga-option:hover { border-color: rgba(30,115,190,.45); }
.sga-option:has(input:checked) { border-color: #1e73be; background: #f4f9fd; }
.sga-option input { margin-right: 10px; }
.sga-option__body { display: block; }
.sga-option__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.sga-option__total { font-weight: 700; }
.sga-option__detail { display: block; font-size: .88em; opacity: .75; margin: 4px 0 12px; }

.sga-schedule, .sga-dates { font-size: .88em; }
.sga-schedule th { font-weight: 600; }

.sga-consent-note {
	font-size: .86em;
	background: #f6f7f9;
	border-radius: 10px;
	padding: 14px 16px;
	margin: 20px 0;
	line-height: 1.55;
}
.sga-secure { font-size: .82em; opacity: .7; margin-top: 12px; }

.sga-term-dates table { width: 100%; }
