/* =========================================================================
   HAPEI Program Support Popup + Sidebar - append to end of assets/css/main.css
   Supersedes any earlier program-support.css from this feature.

   Contains:
   1. Redesigned single-program sidebar (.hp-paside)
   2. Popup shell + chooser
   3. Popup-optimised forms (contact, volunteer, donate)
   4. Mobile-first responsive rules
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. SIDEBAR (.hp-paside)
   ---------------------------------------------------------------------- */

.hp-single__aside.hp-paside {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 96px;
	align-self: start;
}

.hp-paside__card {
	background: #fff;
	border: 1px solid rgba(26, 11, 11, 0.08);
	border-radius: 20px;
	padding: 24px;
	position: relative;
	overflow: hidden;
}

.hp-paside__eyebrow {
	display: inline-block;
	font-family: var(--hp-body, "Inter", sans-serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hp-primary, #e10d0d);
	padding: 5px 10px;
	background: rgba(225, 13, 13, 0.08);
	border-radius: 999px;
	margin-bottom: 14px;
}

.hp-paside__eyebrow--light {
	background: rgba(255, 255, 255, 0.18);
	color: #fff;
}

/* --- Facts card --- */

.hp-paside__facts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.hp-paside__facts li {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 12px 0;
	border-top: 1px solid rgba(26, 11, 11, 0.06);
}

.hp-paside__facts li:first-child {
	border-top: 0;
	padding-top: 4px;
}

.hp-paside__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: rgba(225, 13, 13, 0.08);
	color: var(--hp-primary, #e10d0d);
}

.hp-paside__icon svg { width: 18px; height: 18px; }

.hp-paside__facts li > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.hp-paside__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(26, 11, 11, 0.5);
}

.hp-paside__facts strong {
	font-family: var(--hp-body, "Inter", sans-serif);
	font-size: 15px;
	font-weight: 600;
	color: var(--hp-ink, #1a0b0b);
	line-height: 1.35;
	word-break: break-word;
}

/* --- CTA card --- */

.hp-paside__card--cta {
	background: linear-gradient(150deg, var(--hp-primary, #e10d0d) 0%, var(--hp-primary-dark, #a40000) 100%);
	color: #fff;
	border: 0;
	padding: 28px 24px;
}

.hp-paside__card--cta::before,
.hp-paside__card--cta::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	pointer-events: none;
}

.hp-paside__card--cta::before {
	width: 200px;
	height: 200px;
	top: -100px;
	right: -80px;
}

.hp-paside__card--cta::after {
	width: 140px;
	height: 140px;
	bottom: -70px;
	left: -50px;
}

.hp-paside__cta-art {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 72px;
	height: 72px;
	opacity: 0.9;
}

.hp-paside__cta-art svg { width: 100%; height: 100%; }

.hp-paside__card--cta h3 {
	margin: 6px 0 10px;
	font-family: var(--hp-head, "Outfit", sans-serif);
	font-size: 20px;
	line-height: 1.25;
	color: #fff;
	position: relative;
	z-index: 1;
	padding-right: 56px;
}

.hp-paside__card--cta p {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
	position: relative;
	z-index: 1;
}

.hp-paside__btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 10px;
	padding: 14px 20px;
	background: #fff;
	color: var(--hp-primary, #e10d0d);
	border: 0;
	border-radius: 12px;
	font-family: var(--hp-body, "Inter", sans-serif);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	position: relative;
	z-index: 1;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.hp-paside__btn:hover,
.hp-paside__btn:focus-visible {
	background: #fff;
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
	outline: none;
}

.hp-paside__btn svg {
	width: 18px;
	height: 18px;
	transition: transform .18s ease;
}

.hp-paside__btn:hover svg {
	transform: translateX(3px);
}

.hp-paside__ways {
	list-style: none;
	margin: 18px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	flex-direction: column;
	gap: 10px;
	position: relative;
	z-index: 1;
}

.hp-paside__ways li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.9);
}

.hp-paside__ways svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	opacity: 0.85;
}

/* --- Share block --- */

.hp-paside__share {
	background: rgba(26, 11, 11, 0.03);
	border-radius: 16px;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.hp-paside__share > span {
	font-size: 13px;
	font-weight: 500;
	color: rgba(26, 11, 11, 0.7);
}

.hp-paside__share-row {
	display: flex;
	gap: 6px;
}

.hp-paside__share-row a {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: grid;
	place-items: center;
	background: #fff;
	color: rgba(26, 11, 11, 0.65);
	border: 1px solid rgba(26, 11, 11, 0.08);
	transition: background .18s ease, color .18s ease, transform .18s ease;
}

.hp-paside__share-row a:hover {
	background: var(--hp-primary, #e10d0d);
	color: #fff;
	transform: translateY(-2px);
	border-color: var(--hp-primary, #e10d0d);
}

.hp-paside__share-row svg {
	width: 15px;
	height: 15px;
}

/* Sticky drops on narrow layouts. */
@media (max-width: 1024px) {
	.hp-single__aside.hp-paside { position: static; top: auto; }
}

/* -------------------------------------------------------------------------
   2. POPUP SHELL + CHOOSER
   ---------------------------------------------------------------------- */

.hp-modal--support {
	padding: 0 !important;
	align-items: stretch !important;
}

.hp-modal--support .hp-modal__panel {
	max-width: 780px;
	max-height: 100vh;
	padding: 0;
	border-radius: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
}

@media (min-width: 720px) {
	.hp-modal--support { padding: 24px !important; align-items: center !important; }
	.hp-modal--support .hp-modal__panel {
		border-radius: 22px;
		max-height: 92vh;
		box-shadow: 0 40px 90px rgba(26, 11, 11, 0.35);
	}
}

.hp-support {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	flex: 1;
	min-height: 0;
	overflow: hidden;
}

.hp-modal__close {
	position: absolute;
	top: 12px;
	right: 14px;
	z-index: 5;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(26, 11, 11, 0.06) !important;
	color: var(--hp-ink, #1a0b0b);
	border: 0;
	font-size: 22px;
	line-height: 1;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background .18s ease, color .18s ease;
}

.hp-modal__close:hover {
	background: var(--hp-primary, #e10d0d) !important;
	color: #fff;
}

/* --- Views: only one shown, morph in place --- */

.hp-support__view {
	display: none;
	flex-direction: column;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 32px 28px 28px;
	animation: hp-support-in .3s ease both;
	-webkit-overflow-scrolling: touch;
}

.hp-support__view.is-active,
.hp-support__view:not([hidden]) {
	display: flex;
}

.hp-support__view[hidden] { display: none; }

@keyframes hp-support-in {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 720px) {
	.hp-support__view { padding: 40px 44px 36px; }
}

/* --- Head --- */

.hp-support__head {
	margin-bottom: 22px;
	padding-right: 44px;
}

.hp-support__head .hp-eyebrow {
	display: inline-block;
	font-family: var(--hp-body, "Inter", sans-serif);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--hp-primary, #e10d0d);
	padding: 5px 10px;
	background: rgba(225, 13, 13, 0.08);
	border-radius: 999px;
	margin: 0 0 12px;
}

.hp-support__head h3 {
	margin: 0 0 6px;
	font-family: var(--hp-head, "Outfit", sans-serif);
	font-size: clamp(20px, 3vw, 26px);
	line-height: 1.25;
	color: var(--hp-ink, #1a0b0b);
	letter-spacing: -0.01em;
}

.hp-support__head p {
	margin: 0;
	font-size: 14px;
	color: rgba(26, 11, 11, 0.65);
	line-height: 1.55;
}

/* --- Chooser cards --- */

.hp-choices {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.hp-choice {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	text-align: left;
	padding: 18px 20px;
	background: #fff;
	border: 1.5px solid rgba(26, 11, 11, 0.1);
	border-radius: 16px;
	cursor: pointer;
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
	font-family: inherit;
	width: 100%;
}

.hp-choice:hover,
.hp-choice:focus-visible {
	border-color: var(--hp-primary, #e10d0d);
	background: rgba(225, 13, 13, 0.03);
	transform: translateY(-2px);
	box-shadow: 0 12px 26px rgba(225, 13, 13, 0.1);
	outline: none;
}

.hp-choice__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: rgba(225, 13, 13, 0.08);
	color: var(--hp-primary, #e10d0d);
}

.hp-choice__icon svg { width: 22px; height: 22px; }

.hp-choice__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.hp-choice__body strong {
	font-family: var(--hp-head, "Outfit", sans-serif);
	font-size: 16px;
	font-weight: 600;
	color: var(--hp-ink, #1a0b0b);
}

.hp-choice__body span {
	font-size: 13px;
	line-height: 1.5;
	color: rgba(26, 11, 11, 0.65);
}

/* --- Back button --- */

.hp-support__back {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 16px;
	padding: 7px 14px 7px 10px;
	border: 1px solid rgba(26, 11, 11, 0.12);
	border-radius: 999px;
	background: #fff;
	color: var(--hp-ink, #1a0b0b);
	font-family: var(--hp-body, "Inter", sans-serif);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.hp-support__back:hover,
.hp-support__back:focus-visible {
	background: rgba(225, 13, 13, 0.06);
	border-color: rgba(225, 13, 13, 0.25);
	color: var(--hp-primary, #e10d0d);
	outline: none;
}

.hp-support__back svg { width: 14px; height: 14px; }

/* -------------------------------------------------------------------------
   3. FORMS INSIDE THE POPUP
   These OVERRIDE the global .hp-formcard styling to be popup-appropriate.
   ---------------------------------------------------------------------- */

.hp-support .hp-formcard,
.hp-support .hp-pc-form {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	max-width: none !important;
	overflow: visible;
}

.hp-support .hp-formcard::before { display: none !important; }
.hp-support .hp-formcard__head { display: none !important; }
.hp-support .hp-formcard__steps { display: none !important; }

/* --- Fields: compact, popup-tuned --- */

.hp-support .hp-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 14px;
}

.hp-support .hp-field label {
	font-family: var(--hp-body, "Inter", sans-serif);
	font-size: 13px;
	font-weight: 600;
	color: var(--hp-ink, #1a0b0b);
	margin: 0;
}

.hp-support .hp-field input[type=text],
.hp-support .hp-field input[type=email],
.hp-support .hp-field input[type=tel],
.hp-support .hp-field input[type=number],
.hp-support .hp-field input[type=url],
.hp-support .hp-field select,
.hp-support .hp-field textarea {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid rgba(26, 11, 11, 0.12);
	border-radius: 10px;
	background: #fff;
	font-family: var(--hp-body, "Inter", sans-serif);
	font-size: 15px;
	color: var(--hp-ink, #1a0b0b);
	line-height: 1.4;
	transition: border-color .18s ease, box-shadow .18s ease;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	box-shadow: none;
}

/* iOS zoom-on-focus prevention: font-size must be at least 16px on mobile. */
@media (max-width: 720px) {
	.hp-support .hp-field input,
	.hp-support .hp-field select,
	.hp-support .hp-field textarea {
		font-size: 16px;
	}
}

.hp-support .hp-field input:focus,
.hp-support .hp-field select:focus,
.hp-support .hp-field textarea:focus {
	border-color: var(--hp-primary, #e10d0d);
	box-shadow: 0 0 0 3px rgba(225, 13, 13, 0.12);
	outline: none;
}

.hp-support .hp-field textarea {
	min-height: 100px;
	resize: vertical;
}

.hp-support .hp-field select {
	background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E10D0D' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
	cursor: pointer;
}

.hp-support .hp-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
}

.hp-support .hp-field-row .hp-field { margin-bottom: 0; }

@media (max-width: 640px) {
	.hp-support .hp-field-row { grid-template-columns: 1fr; gap: 0; }
	.hp-support .hp-field-row .hp-field { margin-bottom: 14px; }
}

.hp-req { color: var(--hp-primary, #e10d0d); }

/* --- Extra fields reveal --- */

.hp-pc-extra {
	display: grid;
	gap: 12px;
	padding: 14px;
	margin: 4px 0 14px;
	background: rgba(225, 13, 13, 0.04);
	border: 1px dashed rgba(225, 13, 13, 0.28);
	border-radius: 12px;
	animation: hp-support-in .25s ease both;
}

.hp-pc-extra[hidden] { display: none; }

.hp-pc-extra .hp-field { margin-bottom: 0; }

/* --- Consent checkbox --- */

.hp-support .hp-consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	color: rgba(26, 11, 11, 0.75);
	line-height: 1.5;
	margin: 6px 0 14px;
	padding: 12px 14px;
	background: rgba(26, 11, 11, 0.03);
	border-radius: 10px;
}

.hp-support .hp-consent input[type=checkbox] {
	appearance: none;
	-webkit-appearance: none;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(26, 11, 11, 0.2);
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	margin: 0;
	position: relative;
	transition: background .18s ease, border-color .18s ease;
}

.hp-support .hp-consent input[type=checkbox]:checked {
	background: var(--hp-primary, #e10d0d);
	border-color: var(--hp-primary, #e10d0d);
}

.hp-support .hp-consent input[type=checkbox]:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 6px;
	height: 11px;
	border: solid #fff;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.hp-support .hp-consent input[type=checkbox]:focus-visible {
	box-shadow: 0 0 0 3px rgba(225, 13, 13, 0.18);
}

/* --- Submit button + sticky bar on mobile --- */

.hp-support .hp-form-actions {
	display: flex;
	gap: 10px;
	margin-top: 6px;
}

.hp-support .hp-form-actions .hp-btn {
	flex: 1;
	justify-content: center;
	padding: 14px 20px;
	background: var(--hp-primary, #e10d0d);
	color: #fff;
	border: 0;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	box-shadow: 0 8px 20px rgba(225, 13, 13, 0.25);
}

.hp-support .hp-form-actions .hp-btn:hover {
	background: var(--hp-primary-dark, #a40000);
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(225, 13, 13, 0.32);
}

/* Sticky submit bar below 640px so the CTA never hides while scrolling. */
@media (max-width: 640px) {
	.hp-support .hp-pc-form,
	.hp-support .hp-formcard { padding-bottom: 76px !important; }

	.hp-support .hp-form-actions {
		position: sticky;
		bottom: 0;
		left: 0;
		right: 0;
		margin: 16px -28px 0;
		padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.96);
		backdrop-filter: blur(8px);
		border-top: 1px solid rgba(26, 11, 11, 0.08);
		z-index: 3;
	}
}

/* -------------------------------------------------------------------------
   4. DONATE VIEW INSIDE THE POPUP
   [hapei_donate] renders with .hp-donate wrapper set to 2-col grid at
   >820px. Inside the popup we always want single column and stripped chrome.
   ---------------------------------------------------------------------- */

.hp-support__view--donate .hp-support__donate {
	margin-top: 4px;
}

.hp-support__view--donate .hp-donate {
	display: block !important;
	grid-template-columns: 1fr !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin: 0 !important;
	max-width: none !important;
}

.hp-support__view--donate .hp-donate__body { display: none !important; }

.hp-support__view--donate .hp-donate__panel {
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
}

.hp-support__view--donate .hp-donate-form {
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}

.hp-support__view--donate .hp-donate-form::before { display: none !important; }
.hp-support__view--donate .hp-donate-form .hp-formcard__head { display: none !important; }

/* Amount buttons as brand pill radios inside the popup. */
.hp-support__view--donate .hp-donate-amounts {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 16px;
}

@media (max-width: 480px) {
	.hp-support__view--donate .hp-donate-amounts {
		grid-template-columns: repeat(2, 1fr);
	}
}

.hp-support__view--donate .hp-donate-amount,
.hp-support__view--donate .hp-donate-amounts button,
.hp-support__view--donate .hp-donate-amounts label {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 12px 8px !important;
	border: 1.5px solid rgba(26, 11, 11, 0.12) !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: var(--hp-ink, #1a0b0b) !important;
	font-family: var(--hp-body, "Inter", sans-serif) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: border-color .18s ease, background .18s ease, color .18s ease !important;
	text-align: center;
}

.hp-support__view--donate .hp-donate-amount:hover,
.hp-support__view--donate .hp-donate-amount.is-selected,
.hp-support__view--donate .hp-donate-amount[aria-pressed=true],
.hp-support__view--donate .hp-donate-amounts button:hover,
.hp-support__view--donate .hp-donate-amounts .is-active {
	border-color: var(--hp-primary, #e10d0d) !important;
	background: rgba(225, 13, 13, 0.08) !important;
	color: var(--hp-primary, #e10d0d) !important;
}

.hp-support__view--donate .hp-donate-submit {
	width: 100%;
	justify-content: center;
	padding: 14px 20px;
	background: var(--hp-primary, #e10d0d);
	color: #fff;
	border: 0;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	box-shadow: 0 8px 20px rgba(225, 13, 13, 0.25);
}

.hp-support__view--donate .hp-donate-secure {
	text-align: center;
	margin-top: 12px;
	font-size: 12px;
	color: rgba(26, 11, 11, 0.55);
}

.hp-support__view--donate .hp-donate-testmode {
	margin-bottom: 14px;
	font-size: 12px;
}

/* Sticky submit for donate on mobile too. */
@media (max-width: 640px) {
	.hp-support__view--donate .hp-donate-submit {
		position: sticky;
		bottom: 0;
		margin: 12px -28px 0;
		padding: 14px 20px calc(14px + env(safe-area-inset-bottom)) !important;
		background: var(--hp-primary, #e10d0d);
		border-radius: 0;
		box-shadow: 0 -6px 20px rgba(26, 11, 11, 0.12);
		z-index: 3;
	}
}

/* =========================================================================
   5. STEP-BY-STEP FORMS (contact/volunteer only, both mobile and desktop)
   ========================================================================= */

/* Progress bar */
.hp-pc-steps {
	margin-bottom: 20px;
}

.hp-pc-steps__bar {
	position: relative;
	height: 4px;
	background: rgba(26, 11, 11, 0.08);
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 10px;
}

.hp-pc-steps__fill {
	position: absolute;
	inset: 0 auto 0 0;
	background: linear-gradient(90deg, var(--hp-primary, #e10d0d), var(--hp-primary-dark, #a40000));
	border-radius: 999px;
	transition: width .35s ease;
}

.hp-pc-steps__labels {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 12px;
	color: rgba(26, 11, 11, 0.55);
	font-weight: 500;
}

.hp-pc-steps__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color .25s ease;
}

.hp-pc-steps__label.is-active {
	color: var(--hp-ink, #1a0b0b);
	font-weight: 600;
}

.hp-pc-steps__label.is-done {
	color: var(--hp-primary, #e10d0d);
}

.hp-pc-steps__num {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(26, 11, 11, 0.1);
	color: rgba(26, 11, 11, 0.6);
	font-size: 11px;
	font-weight: 700;
	transition: background .25s ease, color .25s ease;
}

.hp-pc-steps__label.is-active .hp-pc-steps__num {
	background: var(--hp-primary, #e10d0d);
	color: #fff;
}

.hp-pc-steps__label.is-done .hp-pc-steps__num {
	background: var(--hp-primary, #e10d0d);
	color: #fff;
}

/* Step panels */
.hp-pc-step {
	display: none;
	animation: hp-support-in .25s ease both;
}

.hp-pc-step.is-active {
	display: block;
}

/* Step-mode form actions */
.hp-support .hp-form-actions--step {
	display: flex;
	gap: 10px;
	margin-top: 18px;
}

.hp-support .hp-form-actions--step .hp-btn {
	flex: 1;
	justify-content: center;
	padding: 13px 18px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
	background: var(--hp-primary, #e10d0d);
	color: #fff;
	box-shadow: 0 8px 20px rgba(225, 13, 13, 0.25);
}

.hp-support .hp-form-actions--step .hp-btn svg {
	width: 16px;
	height: 16px;
}

.hp-support .hp-form-actions--step .hp-btn--ghost {
	flex: 0 0 auto;
	background: rgba(26, 11, 11, 0.06);
	color: var(--hp-ink, #1a0b0b);
	box-shadow: none;
	padding: 13px 16px;
}

.hp-support .hp-form-actions--step .hp-btn--ghost:hover {
	background: rgba(26, 11, 11, 0.1);
}

.hp-support .hp-form-actions--step .hp-btn--primary:hover {
	background: var(--hp-primary-dark, #a40000);
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(225, 13, 13, 0.32);
}

/* Field validation state */
.hp-support .hp-field.is-invalid input,
.hp-support .hp-field.is-invalid select,
.hp-support .hp-field.is-invalid textarea {
	border-color: var(--hp-primary, #e10d0d);
	box-shadow: 0 0 0 3px rgba(225, 13, 13, 0.12);
}

.hp-support .hp-field.is-invalid::after {
	content: attr(data-error);
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--hp-primary, #e10d0d);
	font-weight: 500;
}

/* Sticky mobile submit for step forms too */
@media (max-width: 640px) {
	.hp-support .hp-form-actions--step {
		position: sticky;
		bottom: 0;
		margin: 18px -28px 0;
		padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.96);
		backdrop-filter: blur(8px);
		border-top: 1px solid rgba(26, 11, 11, 0.08);
		z-index: 3;
	}
	/* Drop the older non-step sticky rule since forms are now step-mode. */
	.hp-support .hp-pc-form,
	.hp-support .hp-formcard { padding-bottom: 0 !important; }
}

/* =========================================================================
   6. MOBILE-ONLY BOTTOM CTA BAR
   Fixed to the viewport bottom so the CTA is always in reach. Hides itself
   whenever the real aside CTA is visible (JS toggles [hidden]).
   ========================================================================= */

.hp-mob-cta {
	display: none;
}

@media (max-width: 1024px) {
	.hp-mob-cta {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 60;
		background: rgba(255, 255, 255, 0.96);
		backdrop-filter: blur(10px);
		border-top: 1px solid rgba(26, 11, 11, 0.08);
		box-shadow: 0 -8px 30px rgba(26, 11, 11, 0.08);
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		animation: hp-mob-cta-in .35s cubic-bezier(.2, .8, .2, 1) both;
	}

	/* Add scroll room at the bottom of the article so the bar never covers content. */
	body.single-program .hp-main {
		padding-bottom: 88px;
	}
}

.hp-mob-cta[hidden] {
	animation: hp-mob-cta-out .3s ease forwards;
}

@keyframes hp-mob-cta-in {
	from { transform: translateY(100%); opacity: 0; }
	to   { transform: translateY(0); opacity: 1; }
}

@keyframes hp-mob-cta-out {
	from { transform: translateY(0); opacity: 1; }
	to   { transform: translateY(100%); opacity: 0; }
}

.hp-mob-cta__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 640px;
	margin: 0 auto;
}

.hp-mob-cta__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.hp-mob-cta__eyebrow {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hp-primary, #e10d0d);
}

.hp-mob-cta__title {
	font-family: var(--hp-head, "Outfit", sans-serif);
	font-size: 14px;
	font-weight: 600;
	color: var(--hp-ink, #1a0b0b);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.2;
}

.hp-mob-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 20px;
	background: var(--hp-primary, #e10d0d);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-family: var(--hp-body, "Inter", sans-serif);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(225, 13, 13, 0.32);
	transition: background .18s ease, transform .18s ease;
	flex-shrink: 0;
}

.hp-mob-cta__btn:hover,
.hp-mob-cta__btn:focus-visible {
	background: var(--hp-primary-dark, #a40000);
	transform: translateY(-1px);
	outline: none;
}

.hp-mob-cta__btn svg {
	width: 15px;
	height: 15px;
}

/* When the popup is open, hide the bottom bar so it doesn't overlay the modal. */
body.hp-modal-open .hp-mob-cta {
	display: none;
}

/* Also shorten the popup on very short screens so a Next button is always visible. */
@media (max-width: 720px) and (max-height: 640px) {
	.hp-support__view { padding: 18px 22px 20px; }
	.hp-support__head { margin-bottom: 14px; }
	.hp-support .hp-field { margin-bottom: 10px; }
	.hp-support .hp-field textarea { min-height: 70px; }
	.hp-pc-steps { margin-bottom: 12px; }
}

/* =========================================================================
   7. DEFENSIVE HIDDEN RULES + MOBILE CTA GATING
   These override anything else so the popup and mobile bar cannot leak.
   ========================================================================= */

/* Belt-and-braces: the [hidden] attribute must always win. */
.hp-modal--support[hidden],
.hp-mob-cta[hidden],
.hp-support__view[hidden],
.hp-pc-step[hidden] {
	display: none !important;
}

/* Modal must be off-screen when hidden, and above everything when visible. */
.hp-modal--support {
	z-index: 9999;
}

/* Reset the overzealous fullscreen override from block 2. The base .hp-modal
   already gives us `position: fixed; inset: 0; place-items: center` and we
   only need to tweak the panel, not the shell. */
.hp-modal--support {
	padding: 1rem !important;
	place-items: center !important;
	align-items: center !important;
}

@media (max-width: 720px) {
	.hp-modal--support {
		padding: 0 !important;
		place-items: stretch !important;
		align-items: stretch !important;
	}
	.hp-modal--support .hp-modal__panel {
		border-radius: 0;
		max-height: 100vh;
		max-height: 100dvh;
		width: 100%;
	}
}

@media (min-width: 721px) {
	.hp-modal--support .hp-modal__panel {
		border-radius: 22px;
		max-height: 92vh;
		box-shadow: 0 40px 90px rgba(26, 11, 11, 0.35);
	}
}

/* Mobile CTA is STRICTLY only on the single-program body and only under 1024px.
   Everything else keeps it display:none regardless. */
.hp-mob-cta {
	display: none !important;
}

@media (max-width: 1024px) {
	body.single-program .hp-mob-cta:not([hidden]) {
		display: block !important;
	}
	body.single-program {
		padding-bottom: 96px;
	}
	/* When popup is open, mobile bar hides even if visible. */
	body.hp-modal-open .hp-mob-cta {
		display: none !important;
	}
}
