/* Carbon Holiday Pledges. Colors follow the site's Elementor globals. */
.chp-pledge,
.chp-confirm {
	--chp-orange: #ff7d16;
	--chp-orange-glow: rgba(255, 103, 0, 0.32);
	--chp-cream: #e9dbc5;
	--chp-panel: #242122;
	--chp-line: #353233;
	--chp-muted: #a39c95;
	--chp-error: #f73232;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	color: var(--chp-cream);
}

.chp-pledge {
	max-width: 560px;
	margin: 0 auto;
	padding: 28px;
	background: var(--chp-panel);
	border: 1px solid var(--chp-line);
	border-radius: 16px;
	box-sizing: border-box;
	text-align: left;
}

.chp-pledge *,
.chp-pledge *::before,
.chp-pledge *::after {
	box-sizing: border-box;
}

.chp-field {
	margin-bottom: 16px;
}

.chp-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
}

.chp-req,
.chp-opt {
	font-weight: 400;
	font-size: 13px;
	color: var(--chp-muted);
	margin-left: 4px;
}

.chp-pledge input[type="email"],
.chp-pledge input[type="text"],
.chp-pledge select {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	font: inherit;
	font-size: 16px;
	color: #fff;
	background: #1e1b1b;
	border: 1px solid var(--chp-line);
	border-radius: 10px;
	outline: none;
}

.chp-pledge select option {
	color: #fff;
	background: #1e1b1b;
}

.chp-pledge input:focus,
.chp-pledge select:focus {
	border-color: var(--chp-orange);
	box-shadow: 0 0 0 3px var(--chp-orange-glow);
}

.chp-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.chp-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 4px 0 20px;
	font-size: 15px;
	cursor: pointer;
}

.chp-check input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--chp-orange);
	flex: none;
}

.chp-button {
	display: inline-block;
	width: 100%;
	padding: 14px 22px;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	text-align: center;
	text-decoration: none;
	background: var(--chp-orange);
	border: 0;
	border-radius: 10px;
	box-shadow: -1px 11px 26px 4px var(--chp-orange-glow);
	cursor: pointer;
	transition: transform 0.2s, opacity 0.2s;
}

.chp-button:hover {
	transform: scale(0.98);
	color: #fff;
}

.chp-button:disabled {
	opacity: 0.6;
	cursor: wait;
}

.chp-status {
	min-height: 1.4em;
	margin: 14px 0 0;
	font-size: 15px;
}

.chp-status-success {
	color: var(--chp-orange);
	font-weight: 600;
}

.chp-status-error {
	color: var(--chp-error);
}

.chp-privacy {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--chp-muted);
}

.chp-privacy a {
	color: var(--chp-cream);
	text-decoration: underline;
}

.chp-privacy a:hover {
	color: var(--chp-orange);
}

.chp-notice {
	padding: 4px 0 8px;
}

.chp-notice h3 {
	margin: 0 0 8px;
	color: var(--chp-orange);
}

.chp-notice p {
	margin: 0;
}

.chp-notice-invalid {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--chp-line);
}

.chp-notice-invalid h3 {
	color: var(--chp-cream);
}

.chp-count {
	font-variant-numeric: tabular-nums;
}

.chp-progress {
	max-width: 560px;
	margin: 0 auto;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.chp-progress-label {
	margin-bottom: 8px;
	font-size: 28px;
	font-weight: 700;
	color: #ff7d16;
}

.chp-progress-label span:not(.chp-count) {
	font-size: 15px;
	font-weight: 400;
	color: #e9dbc5;
}

.chp-progress-track {
	height: 10px;
	background: #353233;
	border-radius: 999px;
	overflow: hidden;
}

.chp-progress-bar {
	height: 100%;
	background: #ff7d16;
	border-radius: 999px;
	transition: width 0.6s ease;
}

/* Standalone confirmation page */
.chp-confirm-body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: #000;
	box-sizing: border-box;
}

.chp-confirm {
	width: 100%;
	max-width: 480px;
	padding: 36px 28px;
	text-align: center;
	background: #242122;
	border: 1px solid #353233;
	border-radius: 16px;
	box-sizing: border-box;
}

.chp-confirm-brand {
	margin: 0 0 18px;
	font-weight: 700;
	color: #ff7d16;
}

.chp-confirm h1 {
	margin: 0 0 12px;
	font-size: 28px;
	color: #fff;
}

.chp-confirm p {
	margin: 0 0 24px;
	line-height: 1.5;
}

/* Carbon Holiday calendar ([ch_calendar] / home page "How it works" image).
   Scales with its own width like the image it replaced: everything is sized in em,
   and the month font size follows the calendar width (container query units). */
.chp-cal {
	--chp-cal-blue: #1f3f8f;
	--chp-cal-green: #13a31b;
	container-type: inline-size;
	box-sizing: border-box;
	width: 90%;
	margin: 0 auto;
	padding: 1.2% 1.6% 0.9%;
	background: #fff;
	color: #1d2433;
	font-family: "Segoe UI", system-ui, -apple-system, Verdana, sans-serif;
	text-align: left;
}

.chp-cal *,
.chp-cal *::before,
.chp-cal *::after {
	box-sizing: border-box;
}

.chp-cal .chp-cal-title {
	margin: 0 0 0.3em;
	padding: 0;
	text-align: center;
	font-family: "Segoe UI", system-ui, -apple-system, Verdana, sans-serif !important;
	font-size: clamp(14px, 2.6cqw, 34px) !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	color: var(--chp-cal-blue) !important;
	letter-spacing: 0.02em;
	text-transform: none;
}

.chp-cal-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1cqw 4%;
}

.chp-cal-month {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	table-layout: fixed;
	border: 0.1em solid var(--chp-cal-blue);
	border-top: 0;
	font-size: clamp(7px, 1.05cqw, 15px);
}

.chp-cal-month caption {
	padding: 0;
	background: linear-gradient(#2c55b0, var(--chp-cal-blue));
	color: #fff;
	font-weight: 700;
	font-size: 1.13em;
	line-height: 1.6em;
	text-align: center;
	border-radius: 0.3em 0.3em 0 0;
	caption-side: top;
}

.chp-cal-month th {
	padding: 0;
	height: 1.15em;
	background: #dfe7f6;
	color: var(--chp-cal-blue);
	font-size: 0.8em;
	line-height: 1.15em;
	font-weight: 700;
	text-align: center;
	border: 0;
}

.chp-cal-month abbr {
	text-decoration: none;
	border: 0;
	cursor: default;
}

.chp-cal-month td {
	height: 1.5em;
	padding: 0;
	text-align: center;
	vertical-align: middle;
	border: 1px solid #cfd6e4;
	background: #fff;
	color: #1d2433;
	line-height: 1;
}

.chp-cal-month td.chp-we {
	background: #f1f3f8;
	color: #5a6478;
}

.chp-cal-day {
	display: inline-block;
	min-width: 1.67em;
	height: 1.33em;
	line-height: 0.93em;
	margin: -0.2em;
	padding: 0 0.13em;
	border: 0.2em solid var(--chp-cal-green);
	border-radius: 50%;
	color: #1d2433;
	font-weight: 700;
}

.chp-cal-key {
	margin: 0.7em 0 0;
	text-align: center;
	font-size: clamp(8px, 1.05cqw, 14px);
	line-height: 1.4;
	color: #3c4659;
}

.chp-cal-key .chp-cal-day {
	margin: 0 0.4em 0 0;
	vertical-align: middle;
}

/* Phones: two columns, readable sizes. */
@container (max-width: 560px) {
	.chp-cal-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px 10px;
	}

	.chp-cal-month {
		font-size: clamp(11px, 3.7cqw, 14px);
	}

	.chp-cal .chp-cal-title {
		font-size: clamp(18px, 6cqw, 26px) !important;
	}

	.chp-cal-key {
		font-size: clamp(11px, 3.5cqw, 14px);
	}
}

@media (max-width: 700px) {
	.chp-cal {
		width: 100%;
		padding: 12px 10px 8px;
	}
}

/* Recent pledges and country tally */
.chp-recent,
.chp-countries {
	max-width: 560px;
	margin: 24px auto 0;
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
	color: #e9dbc5;
	text-align: left;
}

.chp-recent[hidden],
.chp-countries[hidden] {
	display: none;
}

.chp-recent-title {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #ff7d16;
}

.chp-recent ul,
.chp-countries ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.chp-recent li,
.chp-countries li {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 10px;
	align-items: baseline;
	padding: 9px 0;
	font-size: 15px;
	border-bottom: 1px solid #353233;
}

.chp-recent-name {
	font-weight: 600;
	color: #fff;
}

.chp-recent-country {
	flex: 1;
}

.chp-recent-time {
	font-size: 13px;
	color: #a39c95;
}

.chp-countries-name {
	flex: 1;
}

.chp-countries-n {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #ff7d16;
}

.chp-cal-print {
	margin: 0.3em 0 0;
	text-align: center;
	font-size: clamp(8px, 1cqw, 13px);
}

.chp-cal-print a {
	color: var(--chp-cal-blue);
	text-decoration: underline;
}

@media print {
	.chp-cal-print {
		display: none;
	}
}
