/* Membership Form widget. Field styling comes from the Membri Router's gravity-forms.css. */

.chamber-tier-panel {
	--ctp-accent: #226ab4;
	--ctp-ink: #2a3037;
	--ctp-text: #0c1e40;
	width: 100%;
	font-family: "Poppins", sans-serif;
}

.chamber-tier-panel[data-mode="connect"] {
	--ctp-accent: #7b86d6;
	--ctp-other: #226ab4;
}

/* The info section's button leads to the other tier, so it wears that tier's colour. */
.chamber-tier-panel[data-mode="build"] {
	--ctp-other: #7b86d6;
}

/*
 * Fixed-tier pages show only their own tier card. !important beats the inline
 * display tier-display.js sets on every card when it re-filters.
 */
.chamber-tier-panel .pcmr-tier-card.is-ctp-hidden {
	display: none !important;
}

/* ----------------------------------------------------------------------------
 * Plan info layout (Figma BuildForm / ConnectForm): summary left, card right. No form.
 * ------------------------------------------------------------------------- */
.chamber-tier-panel--plan {
	display: grid;
	grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.6fr);
	gap: clamp(32px, 4.5vw, 96px);
	align-items: start;
	color: var(--ctp-text);
}

.chamber-tier-panel__lead-title {
	margin: 0 0 clamp(20px, 1.8vw, 32px);
	color: var(--ctp-ink);
	font-family: inherit;
	font-size: clamp(36px, 3.4vw, 60px);
	font-weight: 500;
	line-height: 1.1;
}

.chamber-tier-panel__accent {
	color: var(--ctp-accent);
	font-weight: 600;
}

.chamber-tier-panel__lead-price,
.chamber-tier-panel__lead-value {
	margin: 0;
	color: var(--ctp-accent);
	line-height: 1.1;
}

.chamber-tier-panel__lead-price {
	margin-bottom: 10px;
	font-size: clamp(22px, 1.8vw, 32px);
	font-weight: 700;
}

.chamber-tier-panel__lead-value {
	font-size: clamp(18px, 1.35vw, 24px);
	font-weight: 600;
}

.chamber-tier-panel__card {
	background: #fff;
	border-radius: 25px;
	overflow: hidden;
}

.chamber-tier-panel__header {
	margin: 0;
	padding: clamp(24px, 2.6vw, 50px) clamp(24px, 2.6vw, 50px) clamp(22px, 2.2vw, 41px);
	background: var(--ctp-accent);
	color: #fff;
	font-family: inherit;
	font-size: clamp(20px, 1.55vw, 28px);
	font-weight: 700;
	line-height: 1.1;
}

.chamber-tier-panel__body {
	padding: clamp(24px, 2.8vw, 53px) clamp(24px, 2.6vw, 50px) clamp(28px, 2.6vw, 50px);
	font-size: clamp(16px, 1.25vw, 24px);
	line-height: 1.15;
}

.chamber-tier-panel__intro {
	margin: 0 0 0.75em;
	font-weight: 500;
}

.chamber-tier-panel__list {
	margin: 0 0 1.6em;
	padding-left: 1.5em;
	list-style: disc;
}

.chamber-tier-panel__list li {
	margin: 0 0 1.04em;
}

.chamber-tier-panel__list li:last-child {
	margin-bottom: 0;
}

.chamber-tier-panel__list strong {
	font-weight: 600;
}

.chamber-tier-panel__price {
	margin: 0;
	color: var(--ctp-accent);
	font-weight: 600;
}

.chamber-tier-panel__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 16px 33px;
	margin-top: clamp(24px, 2.5vw, 47px);
}

/* Doubled class beats the Elementor kit's link and button rules. */
.chamber-tier-panel .chamber-tier-panel__button,
.chamber-tier-panel .chamber-tier-panel__button:hover,
.chamber-tier-panel .chamber-tier-panel__button:focus {
	display: inline-flex;
	justify-content: center;
	min-width: min(338px, 100%);
	padding: 15px 30px;
	border: 0;
	border-radius: 1000px;
	background-color: var(--ctp-other, #7b86d6);
	color: #fff;
	font-family: inherit;
	font-size: clamp(16px, 1.1vw, 21px);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition: filter 0.15s ease;
}

.chamber-tier-panel .chamber-tier-panel__button:hover {
	filter: brightness(1.08);
}

.chamber-tier-panel .chamber-tier-panel__button:focus-visible {
	outline: 3px solid var(--ctp-text);
	outline-offset: 3px;
}

/*
 * Form layout, fixed tier with "Hide package card": the info section above already
 * carries the pricing. Only once tier-panel.js has matched the tier's card
 * (.is-tier-locked), so a mismatched tier name never hides a required field.
 */
.chamber-tier-panel--form[data-hide-card].is-tier-locked .gfield:has(.pcmr-tier-grid) {
	display: none !important;
}

/* Desktop: the summary stays in view while the card scrolls. Clears the sticky announcement bar. */
@media (min-width: 1025px) {
	.chamber-tier-panel__lead {
		position: sticky;
		top: 96px;
	}
}

@media (max-width: 1024px) {
	.chamber-tier-panel--plan {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	.chamber-tier-panel__card {
		border-radius: 18px;
	}
	.chamber-tier-panel .chamber-tier-panel__button {
		width: 100%;
	}
}
