/* GCHS Sponsorships & Corporate Partnerships widget. */

.gchs-sp {
	--gchs-sp-bg:        var(--wp--preset--color--base, #ffffff);
	--gchs-sp-accent:    var(--wp--preset--color--primary, #1f3a93);
	--gchs-sp-accent-2:  var(--wp--preset--color--secondary, #c0392b);
	--gchs-sp-heading:   var(--wp--preset--color--primary-dark, #1a3650);
	--gchs-sp-text:      var(--wp--preset--color--contrast, #1a1a1a);
	--gchs-sp-muted:     var(--wp--preset--color--neutral-mid, #686868);
	--gchs-sp-border:    rgba(0, 0, 0, 0.08);
	--gchs-sp-radius:    10px;
	--gchs-sp-gap:       28px;

	color: var(--gchs-sp-text);
}

.gchs-sp > * + * { margin-top: 4rem; }

/* ── Hero ──────────────────────────────────────────────────────── */
.gchs-sp__hero { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.gchs-sp__hero-heading {
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 1rem;
	color: var(--gchs-sp-heading);
}
.gchs-sp__hero-intro {
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--gchs-sp-text);
	opacity: 0.9;
}
.gchs-sp__hero-intro p { margin: 0 0 0.75em; }

/* ── Section headers (reused across sections) ──────────────────── */
.gchs-sp__section-header { text-align: center; max-width: 720px; margin: 0 auto 2rem; }
.gchs-sp__section-heading {
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	margin: 0 0 0.5rem;
	color: var(--gchs-sp-heading);
}
.gchs-sp__section-intro {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--gchs-sp-muted);
	margin: 0;
}
.gchs-sp__empty {
	text-align: center;
	color: var(--gchs-sp-muted);
	font-style: italic;
	padding: 2rem;
	border: 1px dashed var(--gchs-sp-border);
	border-radius: var(--gchs-sp-radius);
}

/* ── Sponsor packet CTA ────────────────────────────────────────── */
.gchs-sp__packet {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding: 1.75rem 2rem;
	background: linear-gradient(135deg,
		color-mix(in srgb, var(--gchs-sp-accent) 8%, var(--gchs-sp-bg)),
		var(--gchs-sp-bg) 65%);
	border: 1px solid color-mix(in srgb, var(--gchs-sp-accent) 18%, transparent);
	border-radius: var(--gchs-sp-radius);
}
.gchs-sp__packet-text { flex: 1 1 320px; min-width: 0; }
.gchs-sp__packet-heading {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 0 0 0.25rem;
	color: var(--gchs-sp-heading);
}
.gchs-sp__packet-desc {
	margin: 0;
	color: var(--gchs-sp-muted);
	font-size: 0.98rem;
}
.gchs-sp__packet-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85rem 1.5rem;
	background: var(--gchs-sp-accent);
	color: #fff;
	font-weight: 600;
	border-radius: 999px;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 120ms ease, background-color 120ms ease;
}
.gchs-sp__packet-btn:hover,
.gchs-sp__packet-btn:focus-visible {
	transform: translateY(-2px);
	background: color-mix(in srgb, var(--gchs-sp-accent) 85%, #000);
}

/* ── Tier groups (annual + event) ─────────────────────────────── */
.gchs-sp__section { }
.gchs-sp__tier + .gchs-sp__tier { margin-top: 2.5rem; }

.gchs-sp__tier-heading {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 0.5rem;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--gchs-sp-accent);
	margin: 0 0 1.25rem;
}
.gchs-sp__tier-min {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--gchs-sp-muted);
	letter-spacing: normal;
	text-transform: none;
}

.gchs-sp__logos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: var(--gchs-sp-gap);
	align-items: center;
}
.gchs-sp__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	min-height: 100px;
	background: var(--gchs-sp-bg);
	border: 1px solid var(--gchs-sp-border);
	border-radius: var(--gchs-sp-radius);
	transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
	text-decoration: none;
}
.gchs-sp__logo:hover,
.gchs-sp__logo:focus-visible {
	border-color: var(--gchs-sp-accent);
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}
.gchs-sp__logo img {
	max-width: 100%;
	max-height: 70px;
	width: auto;
	height: auto;
	object-fit: contain;
}
.gchs-sp__logo-fallback {
	font-weight: 600;
	color: var(--gchs-sp-text);
	text-align: center;
	font-size: 0.95rem;
}

/* ── Adopter discounts ────────────────────────────────────────── */
.gchs-sp__discount-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1rem;
}
.gchs-sp__discount-inner {
	display: flex;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: var(--gchs-sp-bg);
	border: 1px solid var(--gchs-sp-border);
	border-radius: var(--gchs-sp-radius);
	text-decoration: none;
	color: inherit;
	transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
	height: 100%;
}
a.gchs-sp__discount-inner:hover,
a.gchs-sp__discount-inner:focus-visible {
	border-color: var(--gchs-sp-accent);
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.gchs-sp__discount-logo {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 6px;
	background: #f7f8fa;
}
.gchs-sp__discount-logo--placeholder {
	background: linear-gradient(135deg, #e9e9e9, #cfcfcf);
}
.gchs-sp__discount-body { min-width: 0; }
.gchs-sp__discount-name {
	margin: 0 0 0.15rem;
	font-size: 1rem;
	font-weight: 700;
	color: var(--gchs-sp-text);
}
.gchs-sp__discount-offer {
	margin: 0 0 0.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--gchs-sp-accent);
}
.gchs-sp__discount-details {
	margin: 0;
	font-size: 0.85rem;
	color: var(--gchs-sp-muted);
	line-height: 1.45;
}

/* ── Interest form ─────────────────────────────────────────────── */
.gchs-sp__form {
	max-width: 780px;
	margin: 0 auto;
	padding: 2rem;
	background: var(--gchs-sp-bg);
	border: 1px solid var(--gchs-sp-border);
	border-radius: var(--gchs-sp-radius);
}

.gchs-sp__form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
@media (max-width: 600px) { .gchs-sp__form-grid { grid-template-columns: 1fr; } }

.gchs-sp__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.gchs-sp__label {
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--gchs-sp-text);
}
.gchs-sp__help {
	font-weight: 400;
	color: var(--gchs-sp-muted);
	margin-left: 0.35rem;
}
.gchs-sp__form input[type="text"],
.gchs-sp__form input[type="email"],
.gchs-sp__form input[type="tel"],
.gchs-sp__form textarea {
	width: 100%;
	padding: 0.65rem 0.85rem;
	font-size: 1rem;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	color: var(--gchs-sp-text);
	font-family: inherit;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}
.gchs-sp__form input:focus,
.gchs-sp__form textarea:focus {
	outline: none;
	border-color: var(--gchs-sp-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--gchs-sp-accent) 18%, transparent);
}
.gchs-sp__form textarea { resize: vertical; }

.gchs-sp__field--full { grid-column: 1 / -1; }

.gchs-sp__types { margin-top: 1.25rem; border: none; padding: 0; }
.gchs-sp__types-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.5rem 1rem;
	margin-top: 0.5rem;
}
.gchs-sp__type {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.5rem 0.85rem;
	background: #f7f8fa;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background-color 120ms ease, border-color 120ms ease;
}
.gchs-sp__type:hover { background: color-mix(in srgb, var(--gchs-sp-accent) 5%, #f7f8fa); }
.gchs-sp__type input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--gchs-sp-accent);
	cursor: pointer;
}
.gchs-sp__type input[type="checkbox"]:checked + span {
	font-weight: 600;
	color: var(--gchs-sp-accent);
}

/* full-width fields */
.gchs-sp__form > .gchs-sp__field,
.gchs-sp__form > fieldset { margin-top: 1.25rem; }
.gchs-sp__form > .gchs-sp__field:first-of-type { margin-top: 0; }

.gchs-sp__form-actions {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}
.gchs-sp__submit {
	display: inline-flex;
	align-items: center;
	padding: 0.85rem 2rem;
	background: var(--gchs-sp-accent);
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 120ms ease, opacity 120ms ease, transform 120ms ease;
}
.gchs-sp__submit:hover:not(:disabled),
.gchs-sp__submit:focus-visible:not(:disabled) {
	background: color-mix(in srgb, var(--gchs-sp-accent) 85%, #000);
	transform: translateY(-2px);
}
.gchs-sp__submit:disabled { opacity: 0.6; cursor: wait; }

.gchs-sp__msg {
	margin: 0;
	font-size: 0.95rem;
	color: var(--gchs-sp-muted);
}
.gchs-sp__msg.is-success { color: #047857; font-weight: 600; }
.gchs-sp__msg.is-error   { color: #b91c1c; font-weight: 600; }

/* Honeypot — kept off-screen but tab-reachable for accessibility tools. */
.gchs-sp__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
