/* ============================================================
 * Help Nagaland — Donation form & status page styling.
 *
 * Brand palette (matches Nagaland Me parent):
 *   --hnc-forest-deep:   #0F2419   very dark forest green
 *   --hnc-forest:        #0A7558   primary brand green
 *   --hnc-emerald:       #10B981   bright accent
 *   --hnc-gold:          #D4A843   accent / selected
 *   --hnc-cream:         #FDFBF7   warm off-white background
 *   --hnc-ink:           #1A1A1A   near-black for body text
 *
 * Typography:
 *   Headings: Cormorant Garamond (serif) — elegant, like the parent site.
 *   Body:     Outfit (sans-serif).
 *
 * Both fonts loaded via Google Fonts in :root @font-face fallback.
 * If the active theme already loads them (Astra child / Nagaland Me child),
 * these declarations are ignored harmlessly.
 * ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

.hnc-donate {
	--hnc-forest-deep: #0F2419;
	--hnc-forest:      #0A7558;
	--hnc-emerald:     #10B981;
	--hnc-gold:        #D4A843;
	--hnc-gold-soft:   #F5E6B8;
	--hnc-cream:       #FDFBF7;
	--hnc-ink:         #1A1A1A;
	--hnc-muted:       #6B7280;
	--hnc-border:      #E5E7EB;
	--hnc-error:       #B91C1C;
	--hnc-error-bg:    #FEF2F2;
	--hnc-success-bg:  #ECFDF5;

	max-width: 580px;
	margin: 32px auto;
	padding: 40px 32px;
	background: #ffffff !important;
	color: #1A1A1A !important;
	border: 1px solid var(--hnc-border);
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(15, 36, 25, 0.06);
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	line-height: 1.55;
}

.hnc-donate * {
	box-sizing: border-box;
}

/* Force text colors against any theme bleed-through. */
.hnc-donate,
.hnc-donate p,
.hnc-donate span,
.hnc-donate label,
.hnc-donate legend,
.hnc-donate fieldset {
	color: #1A1A1A;
}

/* -------- Header -------- */

.hnc-donate__header {
	text-align: center;
	margin-bottom: 32px;
}

/* Force black/dark text on title + subtitle.
 * Higher specificity (body + nested class chain) needed to beat
 * Astra Pro theme rules that style .entry-content h2 with faded colors. */
body .hnc-donate h2.hnc-donate__title,
body .hnc-donate .hnc-donate__title {
	font-family: 'Cormorant Garamond', Georgia, serif !important;
	font-size: 36px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	color: #000000 !important;
	margin: 0 0 12px !important;
	letter-spacing: -0.01em !important;
	opacity: 1 !important;
	text-shadow: none !important;
	background: transparent !important;
}

body .hnc-donate p.hnc-donate__subtitle,
body .hnc-donate .hnc-donate__subtitle {
	font-size: 16px !important;
	color: #374151 !important;
	margin: 0 !important;
	opacity: 1 !important;
	font-weight: 400 !important;
}

/* -------- Feedback area -------- */

.hnc-donate__feedback {
	margin-bottom: 16px;
}

.hnc-donate__feedback:empty {
	display: none;
}

.hnc-donate__feedback--error {
	padding: 12px 16px;
	background: var(--hnc-error-bg);
	border-left: 3px solid var(--hnc-error);
	border-radius: 4px;
	color: var(--hnc-error);
	font-size: 14px;
}

.hnc-donate__feedback--info {
	padding: 12px 16px;
	background: var(--hnc-success-bg);
	border-left: 3px solid var(--hnc-emerald);
	border-radius: 4px;
	color: var(--hnc-forest);
	font-size: 14px;
}

/* -------- Field shared -------- */

.hnc-donate__field {
	margin: 0 0 28px;
	padding: 0;
	border: none;
}

.hnc-donate__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #0F2419 !important;
	margin: 0 0 12px;
	padding: 0;
	text-align: center;
	width: 100%;
}

/* Center the section labels for visual parity with the centered title/subtitle.
 * Uses higher specificity (body chain) to beat any theme legend/label rules. */
body .hnc-donate fieldset.hnc-donate__field legend.hnc-donate__label,
body .hnc-donate .hnc-donate__field .hnc-donate__label,
body .hnc-donate label[for="hnc-donate-email"].hnc-donate__label {
	text-align: center !important;
	width: 100% !important;
	display: block !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.hnc-donate__hint {
	font-size: 13px;
	color: #6B7280 !important;
	margin: 8px 0 0;
	line-height: 1.5;
}

/* -------- Frequency tabs -------- */

.hnc-donate__freq-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	background: var(--hnc-cream);
	padding: 6px;
	border-radius: 8px;
}

.hnc-donate__freq-tab {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 16px;
	background: transparent;
	border: none;
	border-radius: 6px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	color: var(--hnc-muted);
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
}

.hnc-donate__freq-tab:hover {
	color: var(--hnc-forest-deep);
}

.hnc-donate__freq-tab.is-selected {
	background: #fff;
	color: var(--hnc-forest);
	box-shadow: 0 1px 3px rgba(15, 36, 25, 0.1);
	font-weight: 600;
}

/* -------- Email input -------- */

.hnc-donate__email-input {
	width: 100%;
	padding: 14px 16px;
	font-family: inherit;
	font-size: 16px;
	color: #1A1A1A !important;
	background: #ffffff !important;
	border: 1.5px solid var(--hnc-border);
	border-radius: 8px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hnc-donate__email-input::placeholder {
	color: #9CA3AF;
	opacity: 1;
}

.hnc-donate__email-input:focus {
	outline: none;
	border-color: var(--hnc-forest);
	box-shadow: 0 0 0 3px rgba(10, 117, 88, 0.12);
}

/* -------- Submit button -------- */

.hnc-donate__submit {
	width: 100%;
	padding: 16px 24px;
	margin-top: 8px;
	background: var(--hnc-forest);
	border: none;
	border-radius: 8px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	cursor: pointer;
	transition: all 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	box-shadow: 0 2px 12px rgba(10, 117, 88, 0.2);
}

.hnc-donate__submit:hover {
	background: var(--hnc-forest-deep);
	box-shadow: 0 4px 16px rgba(10, 117, 88, 0.3);
	transform: translateY(-1px);
}

.hnc-donate__submit:active {
	transform: translateY(0);
}

.hnc-donate__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.hnc-donate__submit-spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: hnc-spin 0.8s linear infinite;
}

@keyframes hnc-spin {
	to { transform: rotate(360deg); }
}

/* -------- Legal/footer text -------- */

.hnc-donate__legal {
	margin: 20px 0 0;
	font-size: 13px;
	color: var(--hnc-muted);
	text-align: center;
	line-height: 1.5;
}

.hnc-donate__legal a {
	color: var(--hnc-forest);
	text-decoration: underline;
	text-decoration-color: var(--hnc-gold);
	text-underline-offset: 2px;
}

/* ============================================================
 * STATUS / THANK-YOU PAGE
 * ============================================================ */

.hnc-status {
	max-width: 580px;
	margin: 32px auto;
	padding: 48px 32px;
	background: #ffffff !important;
	color: #1A1A1A !important;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(15, 36, 25, 0.06);
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
	line-height: 1.55;
	text-align: center;
}

.hnc-status p,
.hnc-status span,
.hnc-status div {
	color: #1A1A1A;
}

.hnc-status__icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
}

.hnc-status__icon--success {
	background: #ECFDF5;
	color: #10B981;
}

.hnc-status__icon--pending {
	background: #FEF3C7;
	color: #D4A843;
}

.hnc-status__icon--error {
	background: #FEF2F2;
	color: #B91C1C;
}

.hnc-status__title {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 32px;
	font-weight: 600;
	color: #0F2419 !important;
	margin: 0 0 12px;
	letter-spacing: -0.01em;
}

.hnc-status__message {
	font-size: 16px;
	color: #4B5563 !important;
	margin: 0 0 24px;
}

.hnc-status__details {
	display: inline-block;
	background: #FDFBF7;
	border-radius: 8px;
	padding: 16px 24px;
	margin: 0 auto 28px;
	text-align: left;
	font-size: 14px;
	color: #1A1A1A;
}

.hnc-status__details-row {
	margin: 4px 0;
}

.hnc-status__details-label {
	color: #6B7280;
	margin-right: 8px;
}

.hnc-status__details-value {
	font-weight: 500;
	font-family: 'SF Mono', Monaco, Consolas, monospace;
}

.hnc-status__cta {
	display: inline-block;
	margin-top: 8px;
	padding: 12px 24px;
	background: #0A7558;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 500;
	font-size: 14px;
	transition: background 0.15s ease;
}

.hnc-status__cta:hover {
	background: #0F2419;
	color: #fff;
}

/* -------- Mobile -------- */

@media (max-width: 600px) {
	.hnc-donate,
	.hnc-status {
		/* Break out of the theme container's padding to reach the actual
		 * screen edges. The viewport-width math pulls the element left
		 * and right by exactly half the difference between viewport and
		 * current parent width — works regardless of theme padding. */
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		width: 100vw;
		max-width: 100vw;
		padding: 28px 20px;
		border-radius: 0;
		border: none;
		box-shadow: none;
	}

	.hnc-donate__title,
	.hnc-status__title {
		font-size: 28px;
	}

	.hnc-donate__subtitle {
		font-size: 15px;
	}

	.hnc-donate__freq-tab {
		padding: 10px 12px;
		font-size: 13px;
	}

	.hnc-donate__submit {
		padding: 16px 20px;
		font-size: 15px;
	}
}
/* ==============================================================
 * PLAN TILES — replaces the old amount grid. The frequency tab
 * itself carries the price, stacked label + price. No custom
 * amount field exists, by design (Razorpay flags free-amount
 * flows as donations).
 * ============================================================== */

.hnc-donate__freq-tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	min-height: 88px;
	line-height: 1.2;
}

.hnc-donate__freq-tab-label {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	opacity: 0.85;
}

.hnc-donate__freq-tab-price {
	font-size: 20px;
	font-weight: 700;
}

.hnc-donate__freq-tab.is-selected .hnc-donate__freq-tab-label {
	opacity: 1;
}

.hnc-donate__compliance {
	margin-top: 12px;
	font-size: 12px;
	line-height: 1.5;
	color: #6B7280;
	text-align: center;
}

@media (max-width: 480px) {
	.hnc-donate__freq-tab {
		min-height: 76px;
	}
	.hnc-donate__freq-tab-price {
		font-size: 18px;
	}
}
