/**
 * Veterans Honored - Multi-Step Donation Form Styles
 * Matching pixel-perfect design specifications
 */

.vh-donation-widget {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
	box-sizing: border-box;
}

.vh-donation-widget *,
.vh-donation-widget *::before,
.vh-donation-widget *::after {
	box-sizing: border-box;
}

.vh-donation-card {
	position: relative;
	background: linear-gradient(15deg, #fff 0%, #f2f2f2 100%);
	border-radius: 16px;
	padding: 50px 100px;
	box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
	border: 1px solid #fff;
	overflow: hidden;
}

/* =========================================================
   Step Progress Header
   ========================================================= */
.vh-progress-header {
	margin-bottom: 25px;
	padding: 0 10px;
}

.vh-progress-track-wrapper {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	position: relative;
	width: 100%;
}

/* Continuous Connecting Line */
.vh-progress-bar-line {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 17px;
	height: 3px;
	background: #dcdcdc;
	border-radius: 3px;
	z-index: 1;
	overflow: hidden;
}

.vh-progress-bar-fill {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	border-radius: 3px;
	transition: background 0.4s ease;
}

/* Step 1 Active: Green from Step 1 fading towards Step 2, then grey */
.vh-progress-track-wrapper.step-1-active .vh-progress-bar-fill {
	background: linear-gradient(90deg, #5df358 0%, #7ef17a 22%, #dcdcdc 46%, #dcdcdc 100%);
}

/* Step 2 Active: Solid green through Step 2, fading past halfway to Step 3 */
.vh-progress-track-wrapper.step-2-active .vh-progress-bar-fill {
	background: linear-gradient(90deg, #5df358 0%, #5df358 48%, #7ef17a 72%, #dcdcdc 100%);
}

/* Step 3 Active: Full continuous green gradient across the whole line */
.vh-progress-track-wrapper.step-3-active .vh-progress-bar-fill {
	background: linear-gradient(90deg, #5df358 0%, #46e84d 50%, #29cf32 100%);
}

.vh-step-node-col {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	z-index: 2;
	user-select: none;
}

.vh-step-node-col[data-step="2"] {
	align-items: center;
}

.vh-step-node-col[data-step="3"] {
	align-items: flex-end;
}

.vh-step-label {
	display: flex;
	flex-direction: column;
	margin-bottom: 5px;
	transition: all 0.3s ease;
}

.vh-step-node-col[data-step="2"] .vh-step-label {
	align-items: center;
	text-align: center;
}

.vh-step-node-col[data-step="3"] .vh-step-label {
	align-items: flex-end;
	text-align: right;
}

.vh-step-tag {
	font-size: 14px;
	font-weight: 700;
	color: #919191;
	transition: color 0.3s ease;
}

.vh-step-text {
	font-size: 14px;
	font-weight: 700;
	color: #919191;
	margin-top: 2px;
	transition: color 0.3s ease;
}

/* Active & Completed States for Steps */
.vh-step-node-col.active .vh-step-tag {
	color: #c21a1e;
}

.vh-step-node-col.active .vh-step-text {
	color: #000;
}

.vh-step-node-col.completed .vh-step-tag {
	color: #15803d;
}

.vh-step-node-col.completed .vh-step-text {
	color: #000;
}

.vh-step-node-col:not(.completed):not(.active) .vh-circle-node {
	top: 13px;
}

/* Step Badges */
.vh-step-badge-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
}

.vh-step-star-img {
	display: none;
	position: relative;
	z-index: 2;
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vh-step-star-img:hover {
	transform: scale(1.08);
}

.vh-circle-node {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #ebebeb;
	border: 2.5px solid #ffffff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	position: relative;
	z-index: 2;
}

.vh-node-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #cbd5e1;
	transition: all 0.3s ease;
	display: none;
}

/* Active & Completed step shows donation_step_mark.webp image */
.vh-step-node-col.active .vh-step-star-img,
.vh-step-node-col.completed .vh-step-star-img {
	display: block;
	animation: vhStarPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vh-step-node-col.active .vh-circle-node,
.vh-step-node-col.completed .vh-circle-node {
	display: none;
}

@keyframes vhStarPop {
	0% {
		transform: scale(0.35);
		opacity: 0;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* =========================================================
   Headings
   ========================================================= */
.vh-main-title {
	color: #c21a1e;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.1;
}

.vh-subtitle {
	color: #000;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.1;
}

/* =========================================================
   Step 1: Amount Buttons Grid
   ========================================================= */
.vh-amounts-container {
	width: 100%;
	margin-bottom: 30px;
}

.vh-row-inputs {
	margin-bottom: 30px;
}

.vh-amounts-flex {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
	width: 100%;
}

.vh-amount-card {
	position: relative;
	background: linear-gradient(-285deg, #ffffff 0%, #efefef 100%);
	border: 1px solid #bfccbd;
	border-radius: 12px;
	padding: 0 14px;
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	user-select: none;
	outline: none;
}

.vh-amount-card:hover {
	transform: translateY(-2px);
	border-color: #d1d5db;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.vh-amount-left-box {
	display: flex;
	align-items: center;
	gap: 10px;
}

.vh-amount-icon-box {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.vh-tab-icon-img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	display: block;
	opacity: 0.65;
	filter: grayscale(1);
	transition: filter 0.25s ease, opacity 0.25s ease, transform 0.2s ease;
}

.vh-amount-number {
	color: #c21a1e;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	transition: color 0.25s ease;
}

.vh-amount-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: 6px;
}

/* Unselected Empty 3D Disc */
.vh-empty-circle-wrap {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #ebebeb;
	border: 2.5px solid #ffffff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), inset 0 1px 3px rgba(0, 0, 0, 0.08);
	display: block;
	transition: all 0.2s ease;
}

.vh-check-circle-wrap {
	display: none;
}

/* Selected Amount Card */
.vh-amount-card.selected {
	background: linear-gradient(-285deg, rgb(89 236 59) 0%, rgb(184 255 169) 99%);
	border-color: #23cb2d;
	box-shadow: 0 6px 20px rgba(41, 206, 52, 0.38);
	transform: translateY(-2px);
}

.vh-amount-card.selected .vh-tab-icon-img {
	filter: brightness(0) invert(1);
	opacity: 1;
}

.vh-amount-card.selected .vh-amount-number {
	color: #ffffff;
}

.vh-amount-card.selected .vh-empty-circle-wrap {
	display: none;
}

.vh-amount-card.selected .vh-check-circle-wrap {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f6db1f;
	border: 2px solid rgba(255, 255, 255, 0.85);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: vhBadgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes vhBadgePop {
	0% {
		transform: scale(0.5);
		opacity: 0;
	}

	100% {
		transform: scale(1);
		opacity: 1;
	}
}

/* =========================================================
   Custom Amount & Recurring Options Row
   ========================================================= */
.vh-label {
	font-size: 14px;
	color: #000;
}

.vh-custom-input-box {
	position: relative;
	display: flex;
	align-items: center;
}

.vh-currency-prefix {
	position: absolute;
	left: 16px;
	font-size: 18px;
	font-weight: 700;
	color: #6b7280;
	pointer-events: none;
	z-index: 1;
}

.vh-custom-amount-input {
	height: 48px;
	padding-left: 32px !important;
	padding-right: 14px;
	font-size: 16px;
	font-weight: 600;
	color: #111827;
	border-radius: 8px;
	border: 1.5px solid #d1d5db;
	background: #ffffff;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
	transition: all 0.2s ease;
}

.vh-custom-amount-input:focus {
	border-color: #c21a1e;
	outline: none;
	box-shadow: 0 0 0 3px rgba(194, 26, 30, 0.12);
}

.vh-custom-amount-input.has-value {
	border-color: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Recurring Radio Items */
.vh-recurring-pills {
	height: 48px;
	display: flex;
	align-items: center;
}

.vh-radio-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	margin-bottom: 0;
}

.vh-real-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.vh-radio-circle {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid #cbd5e1;
	background: #f8fafc;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
	position: relative;
	display: inline-block;
	transition: all 0.2s ease;
}

.vh-real-radio:checked+.vh-radio-circle {
	border-color: #c21a1e;
	background: #ffffff;
}

.vh-real-radio:checked+.vh-radio-circle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1);
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #c21a1e;
	transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vh-radio-circle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0);
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #c21a1e;
	transition: transform 0.2s ease;
}

.vh-radio-text {
	font-size: 14px;
	font-weight: 800;
	color: #000;
}

/* =========================================================
   Action Buttons (Split Red & Yellow Styles with Animations)
   ========================================================= */
.vh-btn-cta {
	display: inline-flex;
	align-items: stretch;
	border: none;
	border-radius: 6px;
	overflow: hidden;
	background: #c21a1e;
	box-shadow: 0 4px 14px rgba(194, 26, 30, 0.35);
	cursor: pointer;
	text-decoration: none;
	padding: 0;
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	outline: none;
}

/* Forward sweep animation (left to right) */
.vh-btn-cta::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 100%;
	background: #a0080c;
	transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
}

.vh-btn-cta:hover::before {
	width: 100%;
}

.vh-btn-cta:active,
.vh-btn-back:active {
	transform: translateY(0);
}

.vh-btn-cta .vh-btn-label {
	padding: 14px 32px;
	color: #ffffff;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	line-height: 1.2;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
}

.vh-btn-cta .vh-btn-icon-block {
	padding: 14px 22px;
	background: #9b1115;
	color: #ffffff;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
	transition: background 0.25s ease;
}

.vh-btn-cta .vh-btn-icon-block i {
	transition: transform 0.25s ease;
}

.vh-btn-cta:hover .vh-btn-icon-block i {
	transform: translateX(4px);
}

/* Yellow Split Back Button */
.vh-btn-back {
	display: inline-flex;
	align-items: stretch;
	border: none;
	border-radius: 6px;
	overflow: hidden;
	background: #ead01d;
	box-shadow: 0 4px 14px rgba(234, 208, 29, 0.35);
	cursor: pointer;
	text-decoration: none;
	padding: 0;
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	outline: none;
}

/* Backward sweep animation in opposite direction (right to left) */
.vh-btn-back::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	width: 0;
	height: 100%;
	background: #edb714;
	transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
}

.vh-btn-back:hover::before {
	width: 100%;
}

.vh-btn-back .vh-btn-icon-block {
	padding: 14px 22px;
	background: #edb714;
	color: #000000;
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
	transition: background 0.25s ease;
}

.vh-btn-back .vh-btn-icon-block i {
	transition: transform 0.25s ease;
}

.vh-btn-back:hover .vh-btn-icon-block i {
	transform: translateX(-4px);
	/* Moves left in opposite direction */
}

.vh-btn-back .vh-btn-label {
	padding: 14px 32px;
	color: #000000;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	line-height: 1.2;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 2;
}

/* =========================================================
   Step 2: Form Inputs & Gift Badge
   ========================================================= */
.vh-gift-preview-badge .vh-badge-pill {
	display: inline-flex;
	align-items: center;
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 50px;
	padding: 8px 20px;
	font-size: 15px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.vh-badge-edit-link {
	background: none;
	border: none;
	color: #c21a1e;
	font-weight: 700;
	cursor: pointer;
	font-size: 14px;
	text-decoration: underline;
	padding: 0;
}

.vh-badge-edit-link:hover {
	color: #a0080c;
}

.vh-input-control {
	height: 48px;
	border-radius: 8px;
	border: 1.5px solid #d1d5db;
	font-size: 15px;
	color: #111827;
	padding: 10px 16px;
	transition: all 0.2s ease;
}

.vh-input-control:focus {
	border-color: #c21a1e;
	box-shadow: 0 0 0 3px rgba(194, 26, 30, 0.12);
	outline: none;
}

.vh-input-control.is-invalid {
	border-color: #ef4444;
	background-color: #fef2f2;
}

.vh-validation-msg {
	color: #ef4444;
	font-size: 13px;
	font-weight: 500;
	margin-top: 4px;
}

/* =========================================================
   Step 3: Summary Receipt Card
   ========================================================= */
.vh-summary-box {
	background: #f8fafc;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.vh-summary-heading {
	color: #111827;
	font-size: 18px;
}

.vh-secure-badge-pill {
	font-size: 13px;
	font-weight: 700;
	background: #ecfdf5;
	padding: 4px 12px;
	border-radius: 20px;
	border: 1px solid #a7f3d0;
}

.vh-total-highlight-row {
	background: #ffffff;
	margin: 8px -12px 0 -12px;
	padding: 14px 16px !important;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
}

/* =========================================================
   Loading Overlay
   ========================================================= */
.vh-loading-overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 50;
	border-radius: 16px;
	animation: vhFadeIn 0.3s ease;
}

@keyframes vhFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* =========================================================
   Responsive Breakpoints
   ========================================================= */
@media (max-width: 991px) {
	.vh-amounts-flex {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.vh-donation-card {
		padding: 28px 18px;
	}

	.vh-amounts-flex {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.vh-step-tag {
		font-size: 11px;
	}

	.vh-step-text {
		font-size: 10px;
		max-width: 80px;
	}

	.vh-star-badge {
		width: 32px;
		height: 32px;
	}

	.vh-star-svg {
		width: 30px;
		height: 30px;
	}

	.vh-circle-node {
		width: 24px;
		height: 24px;
	}

	.vh-progress-connector {
		margin-top: 24px;
	}

	.vh-main-title {
		font-size: 22px;
	}

	.vh-btn-label {
		padding: 12px 20px;
		font-size: 16px;
	}

	.vh-btn-icon-block {
		padding: 12px 16px;
		font-size: 16px;
	}

	.vh-btn-back {
		padding: 11px 20px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.vh-amounts-flex {
		grid-template-columns: 1fr;
	}

	.vh-step-text {
		display: none;
		/* Hide detailed sub-label on very small devices for clean layout */
	}

	.vh-step-node-col {
		align-items: center !important;
	}

	.vh-step-label {
		align-items: center !important;
		text-align: center !important;
	}
}