/* =========================================================
 *  Donation Form — scoped + hardened against theme CSS bleed
 *
 *  Every rule is scoped under .cdf-card so it never leaks out
 *  to the rest of your site, and critical visual properties use
 *  !important so your theme's global styles (link colors, input
 *  widths, button skins, etc.) can't override this form's look.
 * ========================================================= */

.cdf-card, .cdf-card * {
	box-sizing: border-box !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
	-webkit-font-smoothing: antialiased;
}



div#hec-df-card {
    height: 630px;
}

.cdf-card {
	display: grid !important;
	grid-template-columns: 1fr !important;
	width: 100% !important;
	max-width: 480px !important;
	margin: 0 auto !important;
	background: #fff !important;
	border-radius: 16px !important;
	box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
	padding: 28px 26px !important;
	color: #222 !important;
	line-height: 1.4 !important;
	position: relative !important;
}

/* All steps share the same grid cell (stacked on top of one another).
   A CSS grid row auto-sizes to its tallest occupant, so the card
   automatically becomes exactly as tall as the biggest step — no
   JavaScript measurement needed, and nothing to get out of sync. */
.cdf-step {
	grid-area: 1 / 1 !important;
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
	visibility: hidden !important;
	pointer-events: none !important;
}
/* Override the browser's built-in `[hidden] { display:none }` rule —
   hidden steps must stay laid out (display:flex) so they still count
   toward the grid row's height; visibility:hidden is what actually
   keeps them invisible and non-interactive instead. */
.cdf-step[hidden] {
	display: flex !important;
}
.cdf-step:not([hidden]) {
	visibility: visible !important;
	pointer-events: auto !important;
}

.cdf-admin-notice {
	background: #fff8e5 !important;
	border: 1px solid #f0c33c !important;
	color: #6b5300 !important;
	font-size: 13px !important;
	padding: 10px 12px !important;
	border-radius: 6px !important;
	margin: 0 0 16px 0 !important;
}
.cdf-admin-notice a { color: #3b5bdb !important; text-decoration: underline !important; }

.cdf-step > .cdf-primary-btn {
	margin-top: auto !important;
}
.cdf-step[data-step="1"] > .cdf-dedicate-link {
	margin-top: auto !important;
}
.cdf-step[data-step="1"] > .cdf-primary-btn {
	margin-top: 6px !important;
}

.cdf-step-header {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	font-weight: 700 !important;
	font-size: 17px !important;
	color: #222 !important;
	margin: 0 0 18px 0 !important;
}
.cdf-back-btn {
	display: inline-flex !important;
	background: none !important;
	border: none !important;
	font-size: 20px !important;
	cursor: pointer !important;
	color: #333 !important;
	padding: 0 !important;
	margin: 0 !important;
}
.cdf-lock { color: #2e9e5b !important; font-size: 16px !important; }

.cdf-toggle-group {
	display: flex !important;
	gap: 10px !important;
	margin: 0 0 16px 0 !important;
}
.cdf-toggle {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	flex: 1 1 0 !important;
	width: auto !important;
	padding: 10px !important;
	border: 1px solid #ccc !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #333 !important;
	cursor: pointer !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	text-align: center !important;
	text-decoration: none !important;
	line-height: normal !important;
}
.cdf-freq-icon {
	display: inline-block !important;
	flex-shrink: 0 !important;
	color: #d63384 !important;
	vertical-align: middle !important;
}
.cdf-toggle.active {
	border-color: #3b5bdb !important;
	background: #eef1ff !important;
	color: #2c3fae !important;
	font-weight: 600 !important;
}

.cdf-amounts-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 10px !important;
	margin: 0 0 14px 0 !important;
}
.cdf-amount-btn {
	display: block !important;
	width: 100% !important;
	padding: 12px 6px !important;
	border: 1px solid #ccc !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: #333 !important;
	cursor: pointer !important;
	font-size: 15px !important;
	font-weight: 400 !important;
	text-align: center !important;
	text-decoration: none !important;
	line-height: normal !important;
}
.cdf-amount-btn.active {
	border-color: #3b5bdb !important;
	background: #eef1ff !important;
	color: #2c3fae !important;
	font-weight: 600 !important;
}

.cdf-custom-amount {
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	border: 1px solid #ccc !important;
	border-radius: 6px !important;
	padding: 10px 14px !important;
	margin: 0 0 16px 0 !important;
	background: #fff !important;
}
.cdf-custom-amount input[type="number"] {
	display: block !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	font-size: 20px !important;
	color: #222 !important;
	width: 100% !important;
	height: auto !important;
	padding: 0 !important;
	margin: 0 !important;
	appearance: textfield !important;
}
.cdf-custom-amount input[type="number"]::-webkit-outer-spin-button,
.cdf-custom-amount input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}
.cdf-custom-amount select {
	display: block !important;
	flex: 0 0 auto !important;
	border: none !important;
	background-color: transparent !important;
	font-size: 14px !important;
	color: #666 !important;
	font-weight: 600 !important;
	padding: 6px 20px 6px 8px !important;
	margin-left: 10px !important;
	border-left: 1px solid #e2e2e2 !important;
	cursor: pointer !important;
	outline: none !important;
	appearance: none !important;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%23666'/></svg>") !important;
	background-repeat: no-repeat !important;
	background-position: right 4px center !important;
	width: auto !important;
	height: auto !important;
}

.cdf-card input[type="text"],
.cdf-card input[type="email"],
.cdf-card input[type="tel"] {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	padding: 12px 14px !important;
	border: 1px solid #ccc !important;
	border-radius: 6px !important;
	margin: 0 0 12px 0 !important;
	font-size: 14px !important;
	color: #222 !important;
	background: #fff !important;
	line-height: normal !important;
	appearance: none !important;
	box-shadow: none !important;
}
.cdf-card input::placeholder { color: #999 !important; opacity: 1 !important; }

.cdf-field-group {
	border: 1px solid #ccc !important;
	border-radius: 6px !important;
	overflow: hidden !important;
	margin: 0 0 12px 0 !important;
	background: #fff !important;
}
.cdf-field {
	position: relative !important;
	padding: 8px 14px 7px 14px !important;
	border-bottom: 1px solid #eee !important;
}
.cdf-field:last-child { border-bottom: none !important; }
.cdf-field label {
	display: block !important;
	font-size: 12px !important;
	color: #888 !important;
	margin: 0 0 2px 0 !important;
	line-height: normal !important;
}
.cdf-field input[type="text"],
.cdf-field input[type="email"],
.cdf-field input[type="tel"] {
	display: block !important;
	width: 100% !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	font-size: 15px !important;
	color: #222 !important;
	appearance: none !important;
}
.cdf-field-phone { padding-right: 40px !important; }
.cdf-phone-hint {
	position: absolute !important;
	right: 14px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
}

.cdf-checkbox-row {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-size: 13px !important;
	color: #444 !important;
	margin: 10px 0 20px 0 !important;
}
.cdf-checkbox-row input[type="checkbox"] {
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	flex-shrink: 0 !important;
}
.cdf-hint {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 16px !important;
	height: 16px !important;
	border-radius: 50% !important;
	border: 1px solid #999 !important;
	font-size: 11px !important;
	color: #888 !important;
	cursor: help !important;
}

.cdf-primary-btn {
	display: block !important;
	width: 100% !important;
	background: #3b5bdb !important;
	color: #fff !important;
	border: none !important;
	padding: 14px !important;
	border-radius: 6px !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	margin: 6px 0 0 0 !important;
	text-align: center !important;
	text-decoration: none !important;
	line-height: normal !important;
}
.cdf-primary-btn:hover { background: #3350c4 !important; color: #fff !important; }
.cdf-primary-btn:disabled { opacity: 0.6 !important; cursor: not-allowed !important; }

.cdf-error {
	color: #c0392b !important;
	font-size: 13px !important;
	margin: 6px 0 !important;
	min-height: 1px !important;
}
.cdf-error[hidden] { display: none !important; }

.cdf-dedicate-link {
	display: block !important;
	text-align: center !important;
	font-size: 13px !important;
	color: #3b5bdb !important;
	text-decoration: underline !important;
	margin: 18px 0 14px 0 !important;
}
.cdf-dedicated-badge {
	display: block !important;
	text-align: center !important;
	font-size: 13px !important;
	color: #2e9e5b !important;
	margin: 18px 0 14px 0 !important;
	font-weight: 600 !important;
}
.cdf-dedicated-badge[hidden] { display: none !important; }

.cdf-subtext {
	font-size: 14px !important;
	color: #444 !important;
	margin: 0 0 16px 0 !important;
	line-height: 1.5 !important;
}
.cdf-subtext.cdf-center { text-align: center !important; }
.cdf-subtext.cdf-strong { font-weight: 700 !important; color: #222 !important; }

.cdf-match-icons {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 16px !important;
	margin: 4px 0 20px 0 !important;
}
.cdf-match-icon {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 56px !important;
	height: 56px !important;
	border-radius: 50% !important;
	border: 1.5px solid #7ea6f5 !important;
	color: #3b5bdb !important;
}
.cdf-match-plus {
	font-size: 20px !important;
	font-weight: 700 !important;
	color: #3b5bdb !important;
}

.cdf-employer-wrap {
	position: relative !important;
	margin-bottom: 18px !important;
}
.cdf-employer-wrap input[type="text"] {
	margin-bottom: 0 !important;
	padding-right: 62px !important;
	border-color: #3b5bdb !important;
}
.cdf-employer-wrap .cdf-hint {
	position: absolute !important;
	right: 38px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
}
.cdf-clear-btn {
	position: absolute !important;
	right: 12px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 18px !important;
	height: 18px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: none !important;
	border: none !important;
	color: #999 !important;
	font-size: 18px !important;
	line-height: 1 !important;
	cursor: pointer !important;
	padding: 0 !important;
}
.cdf-clear-btn[hidden] { display: none !important; }

.cdf-skip-link {
	display: block !important;
	text-align: center !important;
	font-size: 13px !important;
	color: #444 !important;
	text-decoration: underline !important;
	margin: 16px 0 0 0 !important;
}
.cdf-hint-text {
	font-size: 12px !important;
	color: #888 !important;
	margin: 4px 0 0 0 !important;
	line-height: 1.4 !important;
}

.cdf-payment-methods {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
	margin: 0 0 16px 0 !important;
}
.cdf-pm-option {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	width: 100% !important;
	padding: 12px 14px !important;
	border: 1px solid #3b5bdb !important;
	border-radius: 6px !important;
	background: #eef1ff !important;
	color: #2c3fae !important;
	font-size: 14px !important;
	text-align: left !important;
	line-height: normal !important;
}
.cdf-pm-icon {
	display: inline-flex !important;
	width: 24px !important;
	height: 24px !important;
	border-radius: 50% !important;
	align-items: center !important;
	justify-content: center !important;
	font-weight: 700 !important;
	font-size: 13px !important;
	flex-shrink: 0 !important;
	background: #fff2e0 !important;
	color: #e67e22 !important;
}

.cdf-stripe-el {
	position: relative !important;
	min-height: 46px !important;
	display: flex !important;
	align-items: center !important;
	width: 100% !important;
	padding: 0 14px !important;
	border: 1px solid #ccc !important;
	border-radius: 6px !important;
	margin: 0 0 10px 0 !important;
	background: #fff !important;
	font-size: 15px !important;
	transition: border-color 0.15s ease !important;
}
.cdf-stripe-el.StripeElement--focus { border-color: #3b5bdb !important; }
.cdf-stripe-el.StripeElement--invalid { border-color: #c0392b !important; }

.cdf-card-row { display: flex !important; gap: 10px !important; margin: 0 !important; }
.cdf-card-row .cdf-half { flex: 1 1 0 !important; min-width: 0 !important; margin-bottom: 10px !important; }
.cdf-card-row .cdf-half .cdf-stripe-el { margin-bottom: 0 !important; }
.cdf-cvc-wrap { position: relative !important; }
.cdf-cvc-field { padding-right: 32px !important; }
.cdf-cvc-icon {
	position: absolute !important;
	right: 12px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 16px !important;
	height: 16px !important;
	border-radius: 50% !important;
	border: 1px solid #999 !important;
	font-size: 11px !important;
	color: #888 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	pointer-events: none !important;
}

.cdf-total-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	font-size: 15px !important;
	color: #222 !important;
	margin-top: auto !important;
	margin-bottom: 6px !important;
	padding-top: 10px !important;
	border-top: 1px solid #eee !important;
}

.cdf-confirmation { text-align: center !important; padding: 30px 10px !important; }
.cdf-success-icon {
	display: flex !important;
	width: 60px !important;
	height: 60px !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	background: #2e9e5b !important;
	color: #fff !important;
	font-size: 28px !important;
	margin: 0 auto 16px auto !important;
}
.cdf-confirmation h3 { font-size: 20px !important; margin: 0 0 8px 0 !important; color: #222 !important; }
.cdf-confirmation p { font-size: 14px !important; color: #555 !important; margin: 0 0 20px 0 !important; }

/* =========================================================
 *  Responsive breakpoints
 * ========================================================= */
@media (max-width: 480px) {
	.cdf-card { padding: 22px 18px !important; border-radius: 12px !important; }
}
@media (max-width: 380px) {
	.cdf-amounts-grid { grid-template-columns: repeat(2, 1fr) !important; }
	.cdf-card { padding: 18px 14px !important; }
	.cdf-step-header { font-size: 16px !important; }
	.cdf-amount-btn, .cdf-toggle { font-size: 13px !important; padding: 10px 4px !important; }
	.cdf-custom-amount input[type="number"] { font-size: 17px !important; }
}
@media (max-width: 320px) {
	.cdf-card-row { flex-direction: column !important; }
}
