/* ==========================================================================
   Payment options page (/paymentoptions)
   Scoped to body.po-page; all page classes use the po- prefix.
   Colours come from the :root variables in _layout.css. The only page tokens
   below are for layout (radius, shadow, spacing).
   Global classes kept as-is: .fw, .btn-brick, .Wfrm1, .w75p, .iCheck, .asoffscr
   ========================================================================== */

#pcontent { display: none; }


/* Layout tokens
   ------------------------------------------------------------------------ */

.po-page {
	--po-radius-lg: 1.5rem;
	--po-radius-md: 1rem;
	--po-shadow: 0 1px 2px rgba(var(--theme-color1-rgb), .06), 0 8px 24px rgba(var(--theme-color1-rgb), .08);
	--po-space-section: clamp(3rem, 2rem + 4vw, 5.5rem);
	--po-measure: 68ch;
}

.po-page h1,
.po-page h2 { text-wrap: balance; }

.po-page p { text-wrap: pretty; }

.po-sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}


/* Hero
   ------------------------------------------------------------------------ */

.po-hero { border-bottom: 1px solid #e2e2e2; }

.po-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: end;
	gap: clamp(1.5rem, 3vw, 3rem);
}

.po-hero__text { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(2.5rem, 1.5rem + 3vw, 4rem); }

.po-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
	line-height: 1.1;
	color: var(--theme-color1);
}

.po-hero__lede {
	max-width: 46ch;
	margin: 0 0 2.25rem;
	font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem);
	line-height: 1.5;
	color: var(--theme-color1);
}

.po-hero__media { align-self: end; }
.po-hero__img { display: block; width: 100%; max-width: 640px; height: auto; margin: 0 0 0 auto; }

/* USPs: icon-led list, no boxes */
.po-facts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem 2rem;
	max-width: 600px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.po-facts__item {
	display: flex;
	align-items: center;
	gap: .9rem;
	margin: 0;
}

.po-facts__icon {
	flex: none;
	box-sizing: border-box;
	width: 3rem;
	height: 3rem;
	padding: .7rem;
	border-radius: 50%;
	background: rgba(var(--theme-color2-rgb), .12);
	fill: none;
	stroke: var(--theme-color2);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.po-facts__text {
	font-size: 1rem;
	line-height: 1.35;
	color: #5a5a5a;
}

.po-facts__text strong {
	display: block;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--theme-color1);
}

@media screen and (max-width: 1050px) {
	.po-hero__inner { grid-template-columns: 1fr; }
	.po-hero__text { padding-bottom: 0; }
	.po-hero__img { max-width: 440px; margin: 0 auto; }
}

@media screen and (max-width: 520px) {
	.po-facts { grid-template-columns: 1fr; gap: 1rem; }
}


/* Example plan
   ------------------------------------------------------------------------ */

.po-plan { padding: var(--po-space-section) 0; }

.po-plan__intro {
	max-width: var(--po-measure);
	margin: 0 auto clamp(2rem, 1.5rem + 2vw, 3rem);
	font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
	line-height: 1.65;
	text-align: center;
}

.po-example {
	max-width: 820px;
	margin: 0 auto;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: var(--po-radius-lg);
	box-shadow: var(--po-shadow);
}

.po-example__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .25rem 1rem;
	padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
	background: var(--theme-gradient2);
	color: #fff;
}

.po-example__title {
	margin: 0;
	font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
	line-height: 1.2;
	color: #fff;
}

.po-example__course {
	margin: 0;
	font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
}

.po-example__course span { font-weight: 500; opacity: .9; }

.po-example__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	background: #e2e2e2;   /* shows through the 1px gaps as dividers */
}

.po-example__stat {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	padding: 1.25rem clamp(1rem, 2.5vw, 1.75rem);
	background: #fff;
	text-align: left;
}

.po-example__stat dt {
	margin: 0;
	font-size: .9rem;
	font-weight: 500;
	line-height: 1.3;
	color: #5a5a5a;
}

.po-example__stat dd {
	margin: 0;
	font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--theme-color1);
	font-variant-numeric: tabular-nums;
}

.po-example__stat--key { background: #f1f1f1; }
.po-example__stat--key dd { color: var(--theme-color5); }

.po-plan__note {
	max-width: 820px;
	margin: 1rem auto 0;
	font-size: .875rem;
	line-height: 1.5;
	color: #5a5a5a;
}

.po-rep-example {
	box-sizing: border-box;
	max-width: 820px;
	margin: 1.5rem auto 0;
	padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
	background: #f1f1f1;
	border-radius: var(--po-radius-md);
}

.po-rep-example p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--theme-color1);
}

@media screen and (max-width: 670px) {
	.po-plan__intro { text-align: left; }
	.po-example__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 380px) {
	.po-example__grid { grid-template-columns: 1fr; }
}


/* Apply / enquiry form
   ------------------------------------------------------------------------ */

.po-apply { padding: var(--po-space-section) 0; background: var(--theme-gradient2); }

.po-apply__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
	gap: clamp(2rem, 4vw, 4rem);
	padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
	background: #fff;
	border-radius: var(--po-radius-lg);
	box-shadow: var(--po-shadow);
}

.po-apply__title {
	margin: 0 0 1rem;
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
	line-height: 1.15;
	color: var(--theme-color1);
}

.po-apply__aside p {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	line-height: 1.6;
}

.po-apply__phone {
	display: inline-block;
	margin-top: .25rem;
	font-size: 1.35rem;
	font-weight: 700;
	white-space: nowrap;
	color: var(--theme-color5);
	text-decoration: none;
}

.po-apply__phone:hover,
.po-apply__phone:focus-visible { text-decoration: underline; text-decoration-color: var(--theme-color2); text-underline-offset: .2em; }

.po-apply__partner {
	display: flex;
	flex-direction: column;
	gap: .5rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e2e2e2;
}

.po-apply__partner span {
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #5a5a5a;
}

.po-apply__partner img { display: block; width: 160px; max-width: 100%; height: auto; }

.po-apply__required { margin: 0 0 1rem; font-size: .9rem; color: #5a5a5a; }

@media screen and (max-width: 900px) {
	.po-apply__card { grid-template-columns: 1fr; }
}


/* Form fields
   Overrides the global .Wfrm1 float layout with a grid.
   ------------------------------------------------------------------------ */

.po-page .po-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.po-page .po-form__field { margin: 0; }
.po-page .po-form__field--full { grid-column: 1 / -1; }

.po-page .po-form input[type="text"],
.po-page .po-form input[type="email"],
.po-page .po-form input[type="tel"],
.po-page .po-form select,
.po-page .po-form textarea {
	display: block;
	float: none;
	box-sizing: border-box;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 1.1rem;
	background-color: #f5f5f5;
	border: 1px solid #929393;     /* 3:1 against white, so the field edges stay visible */
	border-radius: 2rem;
	font: inherit;
	font-size: 1rem;               /* 16px stops iOS zooming on focus */
	color: var(--theme-color1);
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.po-page .po-form textarea {
	height: auto;
	min-height: 7.5rem;
	padding: .8rem 1.1rem;
	border-radius: var(--po-radius-md);
	resize: vertical;
	line-height: 1.5;
}

.po-page .po-form ::placeholder { color: #6a6a6a; opacity: 1; }

/* Select: own chevron (same shape as the header's --ico-chev, pointing down), inset from the edge.
   --ico-chev is scoped to #MainHdr in _layout.css, so it isn't available here. */
.po-page .po-form select {
	-webkit-appearance: none;
	appearance: none;
	padding-right: 3.25rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5.5 9 12 15.5 18.5 9' fill='none' stroke='%236a6a6a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1.4rem center;
	background-size: .9rem;
	cursor: pointer;
}

/* match the placeholder grey until a term is chosen (empty value = :invalid as the field is required) */
.po-page .po-form select:invalid { color: #6a6a6a; }
.po-page .po-form select option { color: var(--theme-color1); }

.po-page .po-form input:hover,
.po-page .po-form select:hover,
.po-page .po-form textarea:hover { border-color: var(--theme-color2); }

.po-page .po-form input:focus,
.po-page .po-form select:focus,
.po-page .po-form textarea:focus {
	outline: none;
	background-color: #fff;
	border-color: var(--theme-color2);
	box-shadow: 0 0 0 3px rgba(var(--theme-color2-rgb), .3);
}

.po-page .po-form input:user-invalid,
.po-page .po-form select:user-invalid,
.po-page .po-form textarea:user-invalid { border-color: var(--theme-color6); }

/* keep the antispam honeypot out of the grid flow */
.po-page .po-form .asoffscr { position: absolute; left: -9999px; width: 1px; overflow: hidden; }

.po-page .po-form__consent {
	display: flex;
	align-items: flex-start;
	gap: .75rem;
	margin-top: .5rem;
}

.po-page .po-form__consent input#DataConsent {
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin: .15rem 0 0;
	accent-color: var(--theme-color2);
}

.po-page .po-form label.icheckLbl {
	float: none;
	margin: 0;
	font-size: .95rem;
	line-height: 1.5;
	color: inherit;
}

.po-page .po-form label.icheckLbl a { color: var(--theme-color5); text-decoration-color: var(--theme-color2); text-underline-offset: .2em; }

.po-page .po-form__captcha { min-height: 78px; }

.po-page .po-form__actions { display: flex; justify-content: flex-end; }

.po-page .po-form button.btn-brick { float: none; margin: 0; font-size: 1.2rem; }

@media screen and (max-width: 580px) {
	.po-page .po-form { grid-template-columns: 1fr; }
	.po-page .po-form__actions { justify-content: stretch; }
	.po-page .po-form button.btn-brick { width: 100%; }
}


/* Legal small print
   ------------------------------------------------------------------------ */

.po-legal { padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0; }

.po-legal p {
	max-width: 900px;
	margin: 0 auto .75rem;
	font-size: .85rem;
	line-height: 1.6;
	color: #5a5a5a;
}

.po-legal p:last-child { margin-bottom: 0; }


/* Courses CTA
   ------------------------------------------------------------------------ */

.po-courses { padding: var(--po-space-section) 0; background: #f1f1f1; text-align: center; }

.po-courses__title {
	margin: 0 0 .75rem;
	font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
	line-height: 1.15;
}

.po-courses__text {
	max-width: 48ch;
	margin: 0 auto 2rem;
	font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem);
	line-height: 1.6;
}

.po-courses__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

.po-courses__actions .btn-brick { margin: 0; font-size: 1.2rem; }


/* Motion
   ------------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.po-page .po-form input,
	.po-page .po-form select,
	.po-page .po-form textarea { transition: none; }
}
