/**
 * Donations & thank-you layouts — inherits Creedy theme tokens (--wdt*).
 */

.mithila-donations,
.mithila-donation-thanks {
	color: var(--wdtBodyTxtColor, #444);
	font-family: var(--wdtFontTypo_Base, inherit);
	line-height: var(--wdtLineHeight_Base, 1.65);
}

.mithila-donations__hero {
	position: relative;
	border-radius: var(--wdtRadius_2X, 12px);
	overflow: hidden;
	margin-bottom: 2.5rem;
	min-height: 220px;
	background-color: rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.08);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
}

.mithila-donations__hero-inner {
	position: relative;
	z-index: 1;
	padding: 2rem 1.75rem;
	width: 100%;
	background: linear-gradient(
		to top,
		rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.92) 0%,
		rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.35) 55%,
		transparent 100%
	);
}

.mithila-donations__hero h1,
.mithila-donation-thanks__hero h1 {
	margin: 0 0 0.35rem;
	font-family: var(--wdtFontTypo_Alt, inherit);
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: var(--wdtFontWeight_Alt, 600);
	color: var(--wdtAccentTxtColor, #fff);
	line-height: 1.2;
}

.mithila-donations__hero p,
.mithila-donation-thanks__hero p {
	margin: 0;
	max-width: 42rem;
	color: rgba(var(--wdtAccentTxtColorRgb, 255, 255, 255), 0.92);
	font-size: 1rem;
}

.mithila-donations__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: start;
}

@media (min-width: 960px) {
	.mithila-donations__grid {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 2.5rem;
	}
}

.mithila-donations__gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem;
}

.mithila-donations__gallery figure {
	margin: 0;
	border-radius: var(--wdtRadius_2X, 10px);
	overflow: hidden;
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.12);
	box-shadow: 0 6px 24px rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.08);
	background: var(--wdtBodyBGColor, #fff);
}

.mithila-donations__gallery img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
}

.mithila-donations__gallery figcaption {
	padding: 0.4rem 0.55rem;
	font-size: 0.7rem;
	color: rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.65);
	line-height: 1.35;
}

.mithila-donations__card,
.mithila-donation-thanks__card {
	background: var(--wdtBodyBGColor, #fff);
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.12);
	border-radius: var(--wdtRadius_2X, 12px);
	padding: 1.75rem 1.5rem 2rem;
	box-shadow: 0 8px 32px rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.06);
}

.mithila-donations__notice {
	padding: 0.85rem 1rem;
	margin-bottom: 1.25rem;
	border-radius: var(--wdtRadius_1X, 8px);
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.15);
	background: rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.08);
	color: var(--wdtHeadAltColor, #333);
	font-size: 0.95rem;
}

.mithila-donations__notice--error {
	border-color: rgba(159, 33, 36, 0.35);
	background: rgba(159, 33, 36, 0.06);
}

.mithila-donations__field {
	margin-bottom: 1.15rem;
}

.mithila-donations__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: var(--wdtFontWeight_Base, 500);
	color: var(--wdtHeadAltColor, #222);
	font-size: 0.9rem;
}

.mithila-donations__field input[type="text"],
.mithila-donations__field input[type="email"],
.mithila-donations__field input[type="tel"],
.mithila-donations__field input[type="number"],
.mithila-donations__field textarea,
.mithila-donations__field select {
	width: 100%;
	max-width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.2);
	border-radius: var(--wdtRadius_1X, 6px);
	font-family: inherit;
	font-size: 1rem;
	color: var(--wdtBodyTxtColor, #444);
	background: var(--wdtBodyBGColor, #fff);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mithila-donations__field input:focus,
.mithila-donations__field textarea:focus,
.mithila-donations__field select:focus {
	outline: none;
	border-color: var(--wdtPrimaryColor, #c0503c);
	box-shadow: 0 0 0 3px rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.2);
}

.mithila-donations__field textarea {
	min-height: 110px;
	resize: vertical;
}

.mithila-donations__amount-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.35rem;
}

.mithila-donations__amount-btn {
	cursor: pointer;
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.25);
	background: transparent;
	color: var(--wdtHeadAltColor, #333);
	padding: 0.45rem 0.85rem;
	border-radius: var(--wdtRadius_1X, 6px);
	font-size: 0.9rem;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mithila-donations__amount-btn:hover,
.mithila-donations__amount-btn.is-active {
	background: var(--wdtPrimaryColor, #c0503c);
	color: var(--wdtAccentTxtColor, #fff);
	border-color: var(--wdtPrimaryColor, #c0503c);
}

.mithila-donations__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mithila-donations__submit {
	margin-top: 0.5rem;
}

.mithila-donations__submit button {
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.75rem;
	font-size: 1rem;
	font-weight: var(--wdtFontWeight_Base, 600);
	font-family: inherit;
	border: none;
	border-radius: var(--wdtRadius_1X, 6px);
	background: var(--wdtPrimaryColor, #c0503c);
	color: var(--wdtAccentTxtColor, #fff);
	transition: opacity 0.2s ease, transform 0.15s ease;
}

.mithila-donations__submit button:hover {
	opacity: 0.92;
	transform: translateY(-1px);
}

.mithila-donations__fineprint {
	margin-top: 1.25rem;
	font-size: 0.8rem;
	color: rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.65);
	line-height: 1.5;
}

.mithila-donations__fineprint a {
	color: var(--wdtPrimaryColor, #c0503c);
	text-decoration: underline;
}

/* Thank you */
.mithila-donation-thanks__hero {
	border-radius: var(--wdtRadius_2X, 12px);
	overflow: hidden;
	margin-bottom: 2rem;
	min-height: 180px;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
}

.mithila-donation-thanks__hero-inner {
	padding: 1.75rem 1.5rem;
	width: 100%;
	background: linear-gradient(
		to top,
		rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.88) 0%,
		transparent 100%
	);
}

.mithila-donation-thanks__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 1.25rem;
	border-radius: 50%;
	background: rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.15);
	color: var(--wdtPrimaryColor, #c0503c);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	line-height: 1;
}

.mithila-donation-thanks__card {
	text-align: center;
	max-width: 560px;
	margin: 0 auto;
}

.mithila-donation-thanks__card h2 {
	font-family: var(--wdtFontTypo_Alt, inherit);
	color: var(--wdtHeadAltColor, #222);
	font-size: 1.5rem;
	margin: 0 0 0.75rem;
}

.mithila-donation-thanks__card p {
	margin: 0 0 1rem;
	color: var(--wdtBodyTxtColor, #555);
}

.mithila-donation-thanks__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 0.5rem;
}

.mithila-donation-thanks__actions a {
	display: inline-block;
	padding: 0.65rem 1.25rem;
	border-radius: var(--wdtRadius_1X, 6px);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: opacity 0.2s ease;
}

.mithila-donation-thanks__actions a:first-child {
	background: var(--wdtPrimaryColor, #c0503c);
	color: var(--wdtAccentTxtColor, #fff);
}

.mithila-donation-thanks__actions a.mithila-donation-thanks__secondary {
	background: transparent;
	color: var(--wdtHeadAltColor, #333);
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.25);
}

.mithila-donation-thanks__actions a:hover {
	opacity: 0.88;
}

.mithila-donation-thanks__mosaic {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem;
	max-width: 720px;
	margin: 2rem auto 0;
}

.mithila-donation-thanks__mosaic img {
	width: 100%;
	height: 90px;
	object-fit: cover;
	border-radius: var(--wdtRadius_1X, 8px);
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.12);
}

@media (min-width: 640px) {
	.mithila-donation-thanks__mosaic img {
		height: 120px;
	}
}
