/* OMHAS Academy passes: the four-option section [omhas_academy_passes] and the
   Course Pass and 30-Day Pass buy pages [omhas_academy_pass]. */

.ap-section,
.ap-wrap {
	--ap-navy: #16283F;
	--ap-ink: #1E2A38;
	--ap-muted: #5C6B7A;
	--ap-line: #E3E8EE;
	--ap-paper: #F4F6F8;

	--ap-gold: #C8873C;
	--ap-gold-dark: #9C6526;
	--ap-gold-soft: #FBF1E4;
	--ap-black: #14181E;
	--ap-black-soft: #EEF0F2;
	--ap-teal: #1A7A7C;
	--ap-teal-soft: #E2F4F2;
	--ap-blue: #1F4FA8;
	--ap-blue-soft: #E7EEFB;
}

.ap-section *,
.ap-section *::before,
.ap-section *::after,
.ap-wrap *,
.ap-wrap *::before,
.ap-wrap *::after { box-sizing: border-box; }

/* ---------- section ---------- */

.ap-section {
	font-family: 'Inter', Arial, sans-serif;
	color: var(--ap-ink);
	padding: 8px 0;
	scroll-margin-top: 90px;
}

.ap-section__head { max-width: 760px; margin: 0 auto 34px; text-align: center; }

.ap-section__eyebrow {
	display: inline-block;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ap-gold);
	margin-bottom: 10px;
}

.ap-section__title {
	margin: 0 0 12px;
	font-family: 'Outfit', sans-serif;
	font-weight: 800;
	font-size: 38px;
	line-height: 1.12;
	color: var(--ap-navy);
}

.ap-section__sub { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ap-muted); }

.ap-section__notice {
	margin: 18px auto 0;
	display: inline-block;
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--ap-gold-soft);
	color: var(--ap-gold-dark);
	font-weight: 600;
	font-size: 15px;
}

.ap-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	align-items: stretch;
}

/* ---------- one option ---------- */

.ap-pass {
	--ap-accent: var(--ap-navy);
	--ap-tint: var(--ap-paper);
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 14px 34px -22px rgba(22, 40, 63, .45);
}

.ap-pass--owner  { --ap-accent: var(--ap-gold);  --ap-accent-dark: var(--ap-gold-dark); --ap-tint: var(--ap-gold-soft); }
.ap-pass--team   { --ap-accent: var(--ap-black); --ap-accent-dark: #000;                --ap-tint: var(--ap-black-soft); }
.ap-pass--single { --ap-accent: var(--ap-teal);  --ap-accent-dark: #135C5E;             --ap-tint: var(--ap-teal-soft); }
.ap-pass--day30  { --ap-accent: var(--ap-blue);  --ap-accent-dark: #173D85;             --ap-tint: var(--ap-blue-soft); }

.ap-pass__visual {
	background: var(--ap-tint);
	padding: 26px 22px 22px;
	display: flex;
	justify-content: center;
	border-top: 5px solid var(--ap-accent);
}

.ap-pass__visual .ap-cardpic { width: 100%; max-width: 290px; }

.ap-pass__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 24px 24px 26px;
}

.ap-pass__eyebrow {
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--ap-accent);
}

.ap-pass--team .ap-pass__eyebrow { color: var(--ap-muted); }

.ap-pass__title {
	margin: 6px 0 14px;
	font-family: 'Outfit', sans-serif;
	font-weight: 800;
	font-size: 24px;
	line-height: 1.2;
	color: var(--ap-navy);
}

.ap-pass__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }

.ap-pass__amount {
	font-family: 'Bebas Neue', 'Outfit', Impact, sans-serif;
	font-size: 44px;
	line-height: 1;
	letter-spacing: .01em;
	color: var(--ap-navy);
}

.ap-pass__per { font-size: 14.5px; color: var(--ap-muted); }

.ap-pass__paren { margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--ap-muted); }

/* Offer band under the card picture (e.g. Grand Opening Special), 1.10.3 */
.ap-pass__promo {
	display: block;
	padding: 7px 12px;
	background: var(--ap-gold-dark);
	color: #fff;
	text-align: center;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.ap-pass__extra {
	margin: 12px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--ap-tint);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ap-ink);
}

.ap-pass__list {
	list-style: none;
	margin: 18px 0 22px;
	padding: 16px 0 0;
	border-top: 1px solid var(--ap-line);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ap-pass__list li {
	position: relative;
	padding-left: 26px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ap-ink);
}

.ap-pass__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	background: var(--ap-accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ap-pass__list li::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 7px;
	width: 7px;
	height: 4px;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg);
}

.ap-pass__foot { margin-top: auto; }

.ap-pass__btn,
.ap-section .ap-pass__btn:visited {
	display: block;
	text-align: center;
	padding: 14px 18px;
	border-radius: 999px;
	background: var(--ap-accent);
	color: #fff;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 15.5px;
	text-decoration: none;
	transition: background .15s ease, transform .15s ease;
}

.ap-pass__btn:hover,
.ap-pass__btn:focus { background: var(--ap-accent-dark); color: #fff; transform: translateY(-1px); }

.ap-pass__note { margin: 12px 0 0; min-height: 3em; font-size: 13px; line-height: 1.5; color: var(--ap-muted); text-align: center; }

/* ---------- the card picture ---------- */

.ap-cardpic {
	position: relative;
	aspect-ratio: 1.586;
	border-radius: 14px;
	padding: 16px 18px 14px;
	color: #fff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 16px 30px -16px rgba(10, 20, 35, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
	isolation: isolate;
}

.ap-cardpic::after {
	content: "";
	position: absolute;
	inset: -40% -10% auto auto;
	width: 75%;
	height: 120%;
	background: radial-gradient(closest-side, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0));
	transform: rotate(18deg);
	z-index: -1;
}

.ap-cardpic--owner  { background: linear-gradient(135deg, #8C5A1E 0%, #C8873C 30%, #ECC27A 52%, #C8873C 74%, #9C6526 100%); color: #2E1C06; }
.ap-cardpic--team   { background: linear-gradient(140deg, #050608 0%, #1C2129 58%, #2C333D 100%); }
.ap-cardpic--single { background: linear-gradient(140deg, #0B4F51 0%, #1A7A7C 55%, #36A9A1 100%); }
.ap-cardpic--day30  { background: linear-gradient(140deg, #0E2A5C 0%, #1F4FA8 55%, #4A86E0 100%); }

.ap-cardpic__top { display: flex; justify-content: space-between; align-items: center; }

/* Nothing on the card may shrink away, the gold chip least of all. */
.ap-cardpic > * { flex-shrink: 0; }

.ap-cardpic__brand {
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .9;
}

.ap-cardpic--team .ap-cardpic__brand { color: #D9A35C; opacity: 1; }

.ap-cardpic__wave { opacity: .75; }

.ap-cardpic__chip {
	display: block;
	width: 38px;
	height: 28px;
	margin-top: 12px;
	border-radius: 6px;
	background:
		linear-gradient(90deg, transparent 32%, rgba(0, 0, 0, .18) 32% 36%, transparent 36% 64%, rgba(0, 0, 0, .18) 64% 68%, transparent 68%),
		linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .18) 45% 55%, transparent 55%),
		linear-gradient(135deg, #F3D79B 0%, #D6A653 55%, #B9852F 100%);
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
}

.ap-cardpic--owner .ap-cardpic__chip {
	background:
		linear-gradient(90deg, transparent 32%, rgba(0, 0, 0, .2) 32% 36%, transparent 36% 64%, rgba(0, 0, 0, .2) 64% 68%, transparent 68%),
		linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .2) 45% 55%, transparent 55%),
		linear-gradient(135deg, #FFF3D6 0%, #E9C98A 55%, #C9A061 100%);
}

.ap-cardpic__kind {
	margin-top: auto;
	font-family: 'Outfit', sans-serif;
	font-weight: 800;
	font-size: 21px;
	line-height: 1.1;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.ap-cardpic__line { margin-top: 3px; font-size: 12.5px; opacity: .85; }

.ap-cardpic__row {
	display: flex;
	justify-content: space-between;
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid currentColor;
	border-top-color: rgba(255, 255, 255, .28);
	font-family: 'Outfit', sans-serif;
	font-weight: 600;
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ap-cardpic--owner .ap-cardpic__row { border-top-color: rgba(46, 28, 6, .25); }

/* ---------- responsive section ---------- */

@media (max-width: 1199px) {
	.ap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
	.ap-grid { grid-template-columns: 1fr; gap: 18px; }
	.ap-section__title { font-size: 30px; }
	.ap-section__head { margin-bottom: 24px; }
	.ap-pass__visual { padding: 22px 18px 18px; }
	.ap-pass__body { padding: 20px 20px 22px; }
}

/* ---------- section on a dark background (the Academy page) ---------- */

.ap-section--dark .ap-section__eyebrow { color: #E9B470; }
.ap-section--dark .ap-section__title { color: #fff; }
.ap-section--dark .ap-section__sub { color: rgba(255, 255, 255, .86); }
.ap-section--dark .ap-pass { border-color: rgba(255, 255, 255, .14); box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .6); }

/* ---------- the pass pages: shared top band ---------- */

.ap-hero {
	--ap-hero-a: #0B4F51;
	--ap-hero-b: #1A7A7C;
	--ap-hero-c: #24928F;
	background: linear-gradient(120deg, var(--ap-hero-a) 0%, var(--ap-hero-b) 58%, var(--ap-hero-c) 100%);
	color: #fff;
	font-family: 'Inter', Arial, sans-serif;
}

.ap-hero--owner  { --ap-hero-a: #4A2D0A; --ap-hero-b: #7A4D17; --ap-hero-c: #B9782F; }
.ap-hero--team   { --ap-hero-a: #07090C; --ap-hero-b: #171B21; --ap-hero-c: #2C333D; }
.ap-hero--single { --ap-hero-a: #0B4F51; --ap-hero-b: #1A7A7C; --ap-hero-c: #24928F; }
.ap-hero--day30  { --ap-hero-a: #0E2A5C; --ap-hero-b: #1F4FA8; --ap-hero-c: #2E63C2; }

.ap-hero *,
.ap-hero *::before,
.ap-hero *::after { box-sizing: border-box; }

.ap-hero-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 60px 24px 84px;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: center;
	gap: 44px;
}

.ap-hero-text { display: flex; flex-direction: column; gap: 14px; }

.ap-hero-badge {
	align-self: flex-start;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--ap-gold-dark);
	color: #fff;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .1em;
	text-transform: uppercase;
	box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45);
}

.ap-hero-eyebrow {
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .82);
}

.ap-hero--team .ap-hero-eyebrow { color: #E9B470; }

.ap-hero h1.ap-hero-title {
	margin: 0;
	font-family: 'Outfit', sans-serif;
	font-weight: 800;
	font-size: 52px;
	line-height: 1.05;
	color: #fff;
}

.ap-hero-lead { margin: 0; font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 24px; color: #fff; }
.ap-hero-intro { margin: 0; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, .9); }
.ap-hero-small { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, .82); }
.ap-hero-small a,
.ap-hero-small a:visited { color: #fff; font-weight: 600; text-decoration: underline; }
.ap-hero-small a:hover { color: #fff; opacity: .85; }

.ap-hero-price { margin: 4px 0 0; font-size: 16px; color: rgba(255, 255, 255, .86); }

.ap-hero-price b {
	font-family: 'Bebas Neue', 'Outfit', Impact, sans-serif;
	font-weight: 400;
	font-size: 46px;
	line-height: 1;
	color: #fff;
	margin-right: 6px;
	vertical-align: -6px;
}

.ap-hero-paren { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .8); }

.ap-hero-card { display: flex; justify-content: center; }
.ap-hero-card .ap-cardpic { width: 100%; max-width: 360px; transform: rotate(-4deg); }
.ap-hero--owner .ap-hero-card .ap-cardpic { box-shadow: 0 24px 44px -18px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .35); }

/* ---------- the pass pages: colour of each pass in the form ---------- */

.op-wrap.ap-theme-single { --op-teal: #1A7A7C; --ap-btn: #1A7A7C; --ap-btn-dark: #135C5E; }
.op-wrap.ap-theme-day30  { --op-teal: #1F4FA8; --ap-btn: #1F4FA8; --ap-btn-dark: #173D85; }
.op-wrap.ap-theme-owner  { --op-teal: #8A5A20; --ap-btn: #B9782F; --ap-btn-dark: #8A5A20; }

/* The theme turns every button pink on hover, focus and click. Our buttons keep their own colour. */
.op-wrap.ap-theme-single .op-submit,
.op-wrap.ap-theme-day30 .op-submit,
.op-wrap.ap-theme-owner .op-submit { background: var(--ap-btn); color: #fff; }

.op-wrap .op-submit:hover:not(:disabled),
.op-wrap .op-submit:focus:not(:disabled),
.op-wrap .op-submit:active:not(:disabled) { background: var(--ap-btn-dark, #156667); color: #fff; }

.op-wrap .op-submit:focus-visible { outline: 3px solid rgba(22, 40, 63, .35); outline-offset: 3px; }

.op-wrap .op-btn-dark:hover,
.op-wrap .op-btn-dark:focus,
.op-wrap .op-btn-dark:active { color: #fff; }

.ap-section .ap-pass__btn:active { background: var(--ap-accent-dark); color: #fff; }
.ap-section .ap-pass__btn:focus-visible { outline: 3px solid rgba(22, 40, 63, .35); outline-offset: 3px; }

/* ---------- the pass pages: summary at the top of the form ---------- */

.ap-card-form { max-width: 820px; }

.ap-summary {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 20px;
	padding: 18px 20px;
	border-radius: 12px;
	background: var(--ap-teal-soft, #E2F4F2);
	border: 1px solid #BFE4E0;
}

.ap-summary--day30 { background: #E7EEFB; border-color: #C9D8F4; }
.ap-summary--owner { background: #FBF1E4; border-color: #EBD3B1; }

.ap-summary-name { display: block; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px; color: #16283F; margin-bottom: 6px; }
.ap-summary-list { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.6; color: #1E2A38; }
.ap-summary-price { text-align: right; max-width: 210px; }
.ap-summary-price b { display: block; white-space: nowrap; font-family: 'Bebas Neue', 'Outfit', Impact, sans-serif; font-weight: 400; font-size: 38px; line-height: 1; color: #16283F; }
.ap-summary-price span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: #5C6B7A; }
.ap-summary-extra { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: #1E2A38; }

.ap-after { margin: 0; font-size: 14.5px; line-height: 1.6; color: #5C6B7A; }

/* ---------- Team Pass (Library Card) page under the band ---------- */

.lc-wrap.ap-lc-body {
	max-width: 1180px;
	margin: -28px auto 0;
	padding: 0 24px 72px;
	position: relative;
}

.ap-lc-body .lc-submit { background: #14181E; }

.ap-lc-body .lc-submit:hover:not(:disabled),
.ap-lc-body .lc-submit:focus:not(:disabled),
.ap-lc-body .lc-submit:active:not(:disabled) { background: #000; color: #fff; }

.ap-lc-body .lc-stepper button:hover,
.ap-lc-body .lc-stepper button:focus,
.ap-lc-body .lc-stepper button:active { background: #F3E6D6; color: #16283F; }

.ap-lc-body .lc-exists-other:hover,
.ap-lc-body .lc-exists-other:focus,
.ap-lc-body .lc-exists-other:active { background: transparent; color: #16283F; }

.ap-lc-body button:focus-visible { outline: 3px solid rgba(22, 40, 63, .35); outline-offset: 2px; }

/* ---------- instant form checks (pass-forms.js) ---------- */

.omhas-invalid input,
.omhas-invalid select,
.omhas-invalid textarea { border-color: #B3261E !important; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12) !important; }

.op-check.omhas-invalid input,
.lc-check.omhas-invalid input { outline: 2px solid #B3261E; outline-offset: 2px; }

.omhas-error,
.lc-wrap .omhas-error,
.op-wrap .omhas-error {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	color: #B3261E;
}

.op-check + .omhas-error,
.lc-check + .omhas-error { margin: -6px 0 6px 32px; }

@media (max-width: 860px) {
	.ap-hero-inner { grid-template-columns: 1fr; padding: 44px 16px 64px; gap: 26px; }
	.ap-hero h1.ap-hero-title { font-size: 38px; }
	.ap-hero-lead { font-size: 20px; }
	.ap-hero-intro { font-size: 16px; }
	.ap-hero-card .ap-cardpic { max-width: 300px; transform: none; }
	.ap-summary { flex-direction: column; }
	.ap-summary-price { text-align: left; max-width: none; }
	.lc-wrap.ap-lc-body { padding: 0 16px 48px; }
}

/* ---------- learner dashboard panels (OMHAS_AP_Dashboard) ---------- */

.ap-dash-panels { display: flex; flex-direction: column; gap: 14px; margin: 0 0 26px; font-family: 'Inter', Arial, sans-serif; }

.ap-dash-panel {
	--ap-accent: #1A7A7C;
	--ap-accent-dark: #135C5E;
	--ap-tint: #E2F4F2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px 24px;
	padding: 18px 22px;
	border-radius: 14px;
	background: var(--ap-tint);
	border-left: 5px solid var(--ap-accent);
}

.ap-dash-panel--owner  { --ap-accent: #B9782F; --ap-accent-dark: #8A5A20; --ap-tint: #FBF1E4; }
.ap-dash-panel--day30  { --ap-accent: #1F4FA8; --ap-accent-dark: #173D85; --ap-tint: #E7EEFB; }

.ap-dash-panel__eyebrow {
	display: block;
	margin-bottom: 4px;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 12.5px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ap-accent-dark);
}

.ap-dash-panel p { margin: 0; font-size: 15px; line-height: 1.55; color: #1E2A38; }

.ap-dash-panel__btn,
.ap-dash-panel__btn:visited {
	flex-shrink: 0;
	display: inline-block;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--ap-accent);
	color: #fff;
	font-family: 'Outfit', sans-serif;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
}

.ap-dash-panel__btn:hover,
.ap-dash-panel__btn:focus,
.ap-dash-panel__btn:active { background: var(--ap-accent-dark); color: #fff; }

@media (max-width: 700px) {
	.ap-dash-panel { flex-direction: column; align-items: flex-start; }
	.ap-dash-panel__btn { width: 100%; text-align: center; white-space: normal; }
}

.op-team-line { margin: 10px 0 0; font-size: 15px; color: #5C6B7A; }
