/* PG Academy pricing wizard v1.1
   Design system: magenta #d24287, navy #063049, yellow #ffd500, sand #f4f1eb
   Fonts: Eczar (headings), Mulish (body) — loaded by theme */

/* ── Card container ────────────────────────────────────────── */
.pg-wiz {
	background: #fff;
	border: 1px solid #e7ded6;
	border-radius: 24px;
	padding: 32px;
	box-shadow: 0 1px 2px rgba(6,48,73,.04), 0 10px 28px rgba(6,48,73,.07);
	font-family: "Mulish", system-ui, -apple-system, sans-serif;
	color: #333;
	box-sizing: border-box;
	width: 100%;
	overflow: visible;
}
.pg-wiz *, .pg-wiz *::before, .pg-wiz *::after {
	box-sizing: border-box;
}

.pg-wiz-hidden { display: none !important; }

/* ── Header ────────────────────────────────────────────────── */
.pg-wiz-header {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-family: "Eczar", Georgia, serif;
	font-size: 1.5rem;
	font-weight: 600;
	color: #063049;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #ede9e1;
}
.pg-wiz-header svg {
	flex-shrink: 0;
	color: #d24287;
}
.pg-wiz-highlight {
	background-image: linear-gradient(transparent 60%, #ffd500 60%, #ffd500 90%, transparent 90%);
}

/* ── Admin warning ─────────────────────────────────────────── */
.pg-wiz-admin-warning {
	background: #fff5d6;
	border: 1px solid #f0d97a;
	color: #6b5800;
	font-size: .8rem;
	line-height: 1.5;
	padding: 12px 14px;
	border-radius: 10px;
	margin-bottom: 1rem;
}

/* ── Step transitions ──────────────────────────────────────── */
.pg-wiz-step {
	animation: pg-wiz-fadein .22s ease-out;
}
@keyframes pg-wiz-fadein {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: none; }
}

/* ── Step label + question ─────────────────────────────────── */
.pg-wiz-step-label {
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #d24287;
	margin-bottom: .6rem;
}
.pg-wiz-question {
	font-family: "Eczar", Georgia, serif;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.25;
	color: #063049;
	margin: 0 0 1rem;
}

/* ── Step 1: info box + select ─────────────────────────────── */
.pg-wiz-info {
	font-size: .78rem;
	color: #666;
	line-height: 1.6;
	margin-bottom: .875rem;
	padding: .75rem .9rem;
	background: #f4f1eb;
	border-radius: 8px;
}
.pg-wiz-info strong { color: #063049; }

.pg-wiz-select {
	width: 100%;
	padding: .85rem 2.5rem .85rem 1rem;
	border: 2px solid #e5e0d8;
	border-radius: 10px;
	font-family: inherit;
	font-size: .875rem;
	color: #063049;
	background: #fff;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23063049' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	cursor: pointer;
	transition: border-color .15s ease;
}
.pg-wiz-select:focus {
	outline: none;
	border-color: #063049;
}

/* ── Step 2: org buttons ───────────────────────────────────── */
.pg-wiz-org-options {
	display: flex;
	flex-direction: column;
	gap: .55rem;
	margin-bottom: .75rem;
}
/*
 * Org selection cards use <div role="button"> instead of <button>
 * to avoid the UA stylesheet's text-wrap-mode:nowrap on form controls,
 * which Chrome 149+ enforces on <button> elements and resists author overrides.
 */
.pg-wiz .pg-wiz-org-btn {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	text-align: left;
	white-space: normal;
	overflow: visible;
	overflow-wrap: break-word;
	min-width: 0;
	width: 100%;
	max-width: 100%;
	background: #fff;
	border: 2px solid #e5e0d8;
	border-radius: 10px;
	padding: .875rem 1.1rem;
	cursor: pointer;
	font-family: inherit;
	font-size: .85rem;
	color: #063049;
	transition: border-color .15s ease, background .15s ease;
}
.pg-wiz .pg-wiz-org-btn:focus-visible {
	outline: 2px solid #d24287;
	outline-offset: 2px;
}
.pg-wiz .pg-wiz-org-btn > span {
	white-space: normal;
	overflow: visible;
	display: block;
	max-width: 100%;
}
.pg-wiz .pg-wiz-org-btn:hover {
	border-color: #063049;
	background: #f4f1eb;
}
.pg-wiz-org-title {
	font-weight: 700;
	font-size: .85rem;
}
.pg-wiz-org-desc {
	font-weight: 400;
	font-size: .75rem;
	color: #777;
	line-height: 1.45;
}
.pg-wiz-org-discount {
	font-size: .73rem;
	font-weight: 700;
	color: #d24287;
	margin-top: .1rem;
}

/* ── Back button ───────────────────────────────────────────── */
.pg-wiz-back {
	background: none;
	border: none;
	font-family: inherit;
	font-size: .78rem;
	font-weight: 600;
	color: #aaa;
	cursor: pointer;
	padding: 0;
}
.pg-wiz-back:hover { color: #063049; }

/* ── Result: price card ────────────────────────────────────── */
.pg-wiz-result-card {
	background: #063049;
	border-radius: 12px;
	padding: 1.75rem;
	text-align: center;
	margin-bottom: .875rem;
}
.pg-wiz-price-label {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(255,255,255,.5);
	margin-bottom: .4rem;
}
.pg-wiz-price-amount {
	font-family: "Eczar", Georgia, serif;
	font-size: 2.75rem;
	font-weight: 600;
	color: #fff;
	line-height: 1;
	margin-bottom: .5rem;
}
.pg-wiz-price-context {
	font-size: .72rem;
	color: rgba(255,255,255,.5);
	line-height: 1.5;
}

/* ── Result: breakdown ─────────────────────────────────────── */
.pg-wiz-breakdown {
	background: #f4f1eb;
	border-radius: 10px;
	padding: 1rem 1.1rem;
	margin-bottom: .875rem;
	font-size: .8rem;
}
.pg-wiz-bd-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: .25rem 0;
	color: #555;
}
.pg-wiz-bd-val {
	color: #063049;
	font-weight: 600;
}
.pg-wiz-bd-discount {
	color: #d24287;
}
.pg-wiz-bd-muted {
	color: #bbb;
	font-weight: 400;
}
.pg-wiz-bd-pct {
	display: block;
	color: #d24287;
	font-weight: 500;
	margin-top: .1rem;
}
.pg-wiz-bd-divider {
	border-top: 1px solid #ddd;
	margin: .4rem 0;
}
.pg-wiz-bd-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding-top: .25rem;
	font-weight: 700;
	font-size: .85rem;
	color: #063049;
}

/* ── Checkout note ─────────────────────────────────────────── */
.pg-wiz-checkout-note {
	font-size: .78rem;
	color: #777;
	margin-bottom: .875rem;
	line-height: 1.5;
}

/* ── Scholarship note ──────────────────────────────────────── */
.pg-wiz-scholar {
	background: #f4f1eb;
	border-radius: 10px;
	padding: 1rem 1.1rem;
	margin-bottom: .875rem;
	font-size: .82rem;
	color: #444;
	line-height: 1.6;
}
.pg-wiz-scholar a {
	color: #063049;
	font-weight: 700;
}

/* ── CTA + restart ─────────────────────────────────────────── */
.pg-wiz-cta {
	display: block;
	width: 100%;
	padding: .9rem;
	background: #d24287;
	color: #fff !important;
	border: none;
	border-radius: 10px;
	font-family: "Mulish", system-ui, sans-serif;
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	text-decoration: none !important;
	transition: background .15s ease;
	margin-bottom: .6rem;
	box-sizing: border-box;
}
.pg-wiz-cta:hover {
	background: #b73878;
	color: #fff !important;
}
.pg-wiz-restart {
	display: block;
	width: 100%;
	text-align: center;
	font-family: inherit;
	font-size: .78rem;
	color: #aaa;
	cursor: pointer;
	background: none;
	border: none;
	text-decoration: underline;
}
.pg-wiz-restart:hover { color: #063049; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 540px) {
	.pg-wiz { padding: 24px; }
	.pg-wiz-header { font-size: 1.3rem; }
	.pg-wiz-question { font-size: 1.15rem; }
	.pg-wiz-price-amount { font-size: 2.25rem; }
}

/* ══════════════════════════════════════════════════════════════
   AFFILIATE SIGNUP FORM
   ══════════════════════════════════════════════════════════════ */
.pg-aff-signup {
	background: #fff;
	border: 1px solid #e7ded6;
	border-radius: 24px;
	padding: 32px;
	box-shadow: 0 1px 2px rgba(6,48,73,.04), 0 10px 28px rgba(6,48,73,.07);
	font-family: "Mulish", system-ui, -apple-system, sans-serif;
	color: #333;
	box-sizing: border-box;
	width: 100%;
}
.pg-aff-signup *, .pg-aff-signup *::before, .pg-aff-signup *::after {
	box-sizing: border-box;
}
.pg-aff-signup-intro {
	font-size: .85rem;
	color: #666;
	line-height: 1.6;
	margin-bottom: 1.25rem;
}
.pg-aff-signup-error {
	background: #fff0f3;
	border: 1px solid #f5c6cb;
	color: #842029;
	font-size: .82rem;
	line-height: 1.5;
	padding: 12px 14px;
	border-radius: 10px;
	margin-bottom: 1rem;
}
.pg-aff-signup-success {
	text-align: center;
	padding: 2rem 0;
}
.pg-aff-signup-success h3 {
	font-family: "Eczar", Georgia, serif;
	font-size: 1.4rem;
	color: #063049;
	margin: 0 0 .5rem;
}
.pg-aff-signup-success p {
	font-size: .88rem;
	color: #666;
	line-height: 1.6;
}
.pg-aff-field {
	margin-bottom: 1rem;
}
.pg-aff-field label {
	display: block;
	font-size: .82rem;
	font-weight: 700;
	color: #063049;
	margin-bottom: .35rem;
}
.pg-aff-req { color: #d24287; }
.pg-aff-opt { font-weight: 400; color: #aaa; }
.pg-aff-field input[type="text"],
.pg-aff-field input[type="email"],
.pg-aff-field textarea {
	width: 100%;
	padding: .75rem 1rem;
	border: 2px solid #e5e0d8;
	border-radius: 10px;
	font-family: inherit;
	font-size: .85rem;
	color: #063049;
	background: #fff;
	transition: border-color .15s ease;
}
.pg-aff-field input:focus,
.pg-aff-field textarea:focus {
	outline: none;
	border-color: #063049;
}
.pg-aff-field textarea {
	resize: vertical;
	min-height: 80px;
}
.pg-aff-hint {
	font-size: .72rem;
	color: #aaa;
	margin-top: .3rem;
}
@media (max-width: 540px) {
	.pg-aff-signup { padding: 24px; }
}
