/* =========================================================
   AL USWA CHARITY — Volunteer Registration (multi-step form)
   Builds on css/charity.css tokens (green #063913, gold #CD9B29)
   ========================================================= */

.vr-page { background: #fff; }
.vr-page .ch-header__inner { height: 84px; }
.vr-page .ch-brand__logo { height: 66px; }
.charity .vr-back { font-family: var(--ch-en); font-size: .9rem; font-weight: 600; color: var(--ch-green); }
.charity .vr-back:hover { color: var(--ch-gold-dark); }

.vr-main {
	padding: 50px 0 70px;
	background:
		radial-gradient(circle at 12% 0%, rgba(205, 155, 41, .12), transparent 40%),
		var(--ch-geo) 0 0 / 56px 56px;
	background-color: #fff;
	position: relative;
}
.vr-main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .97)); pointer-events: none; }
.vr-container { position: relative; max-width: 940px; }

/* ---------- Intro ---------- */
.vr-intro { text-align: center; margin-bottom: 34px; }
.vr-kicker { font-family: var(--ch-en); font-size: .78rem; font-weight: 700; letter-spacing: .24em; color: var(--ch-gold-dark); }
.charity .vr-intro h1 { font-family: var(--ch-display); font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--ch-green); margin: 8px 0 4px; }
.vr-intro__ml { font-family: var(--ch-head); font-size: 1.2rem; font-weight: 600; color: var(--ch-ink); margin: 0 0 6px; }
.vr-intro__tag { font-family: var(--ch-display); color: var(--ch-gold-dark); margin: 0 0 4px; }
.vr-intro__motto { color: var(--ch-muted); margin: 0; }

/* ---------- Stepper ---------- */
.vr-steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; counter-reset: none; }
.vr-steps__item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; cursor: default; position: relative; }
.vr-steps__item::after {
	content: ""; position: absolute; top: 18px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px;
	background: var(--ch-line); transition: background .4s;
}
.vr-steps__item:last-child::after { display: none; }
.vr-steps__num {
	width: 38px; height: 38px; border-radius: 50%;
	display: grid; place-items: center;
	font-family: var(--ch-en); font-weight: 700; font-size: .95rem;
	background: #fff; color: var(--ch-muted);
	border: 2px solid var(--ch-line);
	transition: background .35s, color .35s, border-color .35s, transform .35s;
	position: relative; z-index: 1;
}
.vr-steps__label { font-family: var(--ch-en); font-size: .7rem; font-weight: 600; line-height: 1.3; color: var(--ch-muted); letter-spacing: .02em; }
.vr-steps__item.is-reachable { cursor: pointer; }
.vr-steps__item.is-done .vr-steps__num { background: var(--ch-green); border-color: var(--ch-green); color: var(--ch-gold); }
.vr-steps__item.is-done::after { background: var(--ch-gold); }
.vr-steps__item.is-current .vr-steps__num { background: var(--ch-gold); border-color: var(--ch-gold); color: var(--ch-green-dark); transform: scale(1.12); box-shadow: 0 0 0 6px rgba(205, 155, 41, .18); }
.vr-steps__item.is-current .vr-steps__label { color: var(--ch-green); }

.vr-progress { height: 4px; border-radius: 4px; background: var(--ch-line); overflow: hidden; margin-bottom: 26px; }
.vr-progress span { display: block; height: 100%; width: 14%; background: linear-gradient(90deg, var(--ch-gold), var(--ch-green)); transition: width .5s var(--ch-ease); }

/* ---------- Card & panels ---------- */
.vr-card {
	background: #fff;
	border: 1px solid #efe6cf;
	border-top: 4px solid var(--ch-gold);
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(6, 57, 19, .08);
	padding: 34px 38px 28px;
}
.vr-panel { border: 0; margin: 0; padding: 0; min-width: 0; }
.vr-form.is-js .vr-panel, .is-js .vr-panel { display: none; }
.is-js .vr-panel.is-active { display: block; animation: vr-in .45s var(--ch-ease); }
@keyframes vr-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.vr-panel legend {
	width: 100%; float: none;
	font-family: var(--ch-display); font-weight: 700; font-size: 1.6rem; line-height: 1.2;
	color: var(--ch-green); margin: 0 0 24px; padding: 0 0 16px;
	border-bottom: 1px solid #f1ead8;
	outline: none;
}
.vr-panel legend small { display: block; font-family: var(--ch-en); font-size: .72rem; font-weight: 700; letter-spacing: .2em; color: var(--ch-gold-dark); margin-bottom: 6px; }
.vr-panel legend span { display: block; font-family: var(--ch-head); font-size: 1.05rem; font-weight: 600; color: var(--ch-gold-dark); margin-top: 6px; }

/* ---------- Fields ---------- */
.vr-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.vr-col-2 { grid-column: 1 / -1; }
.vr-field { min-width: 0; }
.vr-field > label, .vr-label, .vr-reveal > label { display: block; font-weight: 600; font-size: .95rem; line-height: 1.55; color: var(--ch-ink); margin-bottom: 8px; }
.vr-req { color: #c0392b; margin-left: 2px; }
.vr-page input[type=text], .vr-page input[type=tel], .vr-page input[type=email], .vr-page input[type=date], .vr-page input[type=number], .vr-page textarea {
	width: 100%;
	font: inherit; font-size: 1rem; color: var(--ch-ink);
	background: #fbfcfb;
	border: 1.5px solid #e2e8e3;
	border-radius: 10px;
	padding: 12px 14px;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.vr-page textarea { resize: vertical; min-height: 90px; }
.vr-page input:focus, .vr-page textarea:focus { outline: none; border-color: var(--ch-gold); background: #fff; box-shadow: 0 0 0 4px rgba(205, 155, 41, .16); }
.vr-page .vr-readonly { background: #f3f6f4; color: var(--ch-muted); cursor: default; }
.vr-signature { font-family: var(--ch-display) !important; font-style: italic; font-size: 1.15rem !important; }

/* pill choices */
.vr-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.vr-chip { position: relative; margin: 0; cursor: pointer; }
.vr-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vr-chip span {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px; border-radius: 999px;
	border: 1.5px solid #e2e8e3; background: #fff;
	font-size: .92rem; font-weight: 500; line-height: 1.45; color: var(--ch-ink);
	transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.vr-chip span::before {
	content: ""; flex: 0 0 auto; width: 16px; height: 16px; border-radius: 50%;
	border: 1.5px solid #c7d0c9; background: #fff; transition: all .2s;
}
.vr-chip input[type=checkbox] + span::before { border-radius: 4px; }
.vr-chip:hover span { border-color: var(--ch-gold); }
.vr-chip input:checked + span { background: var(--ch-green); border-color: var(--ch-green); color: #fff; }
.vr-chip input:checked + span::before {
	border-color: var(--ch-gold); background: var(--ch-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23042a0d' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.vr-chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(205, 155, 41, .3); }

.vr-inline-check { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .85rem; color: var(--ch-muted); cursor: pointer; }
.vr-inline-check input { accent-color: var(--ch-green); }

.vr-reveal { display: none; margin-top: 12px; }
.vr-reveal.is-shown { display: block; animation: vr-in .35s var(--ch-ease); }
input.vr-reveal.is-shown { display: block; }

/* errors */
.vr-error { color: #c0392b; font-size: .85rem; font-weight: 600; margin: 6px 0 0; }
.vr-field.is-invalid input:not([type=radio]):not([type=checkbox]), .vr-field.is-invalid textarea { border-color: #e08a80; background: #fff7f6; }
.vr-field.is-invalid .vr-chip span { border-color: #f0b9b2; }
.vr-alert { background: #fff4f2; border: 1px solid #f3c6bf; color: #a5352a; border-radius: 12px; padding: 14px 18px; margin-bottom: 18px; font-weight: 600; }

.vr-note { margin: 22px 0 0; padding: 14px 18px; background: var(--ch-gold-soft); border-left: 4px solid var(--ch-gold); border-radius: 10px; font-size: .95rem; }

/* declaration */
.vr-declaration { background: #f7faf8; border: 1px solid #e3ece5; border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; }
.vr-declaration p { margin: 0 0 10px; font-size: .97rem; }
.vr-declaration p:last-child { margin: 0; font-weight: 600; color: var(--ch-green); }
.vr-agree { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px solid #e2e8e3; border-radius: 12px; cursor: pointer; margin-bottom: 18px; font-weight: 600; transition: border-color .2s, background .2s; }
.vr-agree input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--ch-green); flex: 0 0 auto; }
.vr-agree:has(input:checked) { border-color: var(--ch-green); background: #f2f7f3; }
.vr-field.is-invalid .vr-agree { border-color: #e08a80; }
.vr-guardian { margin-top: 26px; padding: 22px; border: 1.5px dashed var(--ch-gold); border-radius: 14px; background: #fffdf7; }
.vr-guardian h3 { font-family: var(--ch-display); font-size: 1.15rem; color: var(--ch-green); margin: 0 0 10px; }
.vr-guardian h3 span { display: block; font-family: var(--ch-head); font-size: .95rem; color: var(--ch-gold-dark); margin-top: 4px; }
.vr-guardian > p { font-size: .95rem; margin: 0 0 16px; }

/* navigation */
.vr-nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid #f1ead8; }
.vr-count { font-family: var(--ch-en); font-size: .85rem; font-weight: 600; color: var(--ch-muted); }
.charity .vr-prev { border-color: var(--ch-green) !important; color: var(--ch-green) !important; background: transparent; }
.charity .vr-prev:hover { background: var(--ch-green); color: #fff !important; }
.vr-nav [hidden] { display: none !important; }
.vr-submit:disabled { opacity: .7; cursor: progress; }

/* honeypot */
.vr-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* success */
.vr-done { text-align: center; padding: 50px 30px; }
.vr-done__icon { width: 78px; height: 78px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ch-green); color: var(--ch-gold); box-shadow: 0 0 0 10px rgba(205, 155, 41, .18); animation: vr-pop .6s var(--ch-ease); }
.vr-done__icon svg { width: 38px; height: 38px; }
@keyframes vr-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.charity .vr-done h2 { font-family: var(--ch-head); color: var(--ch-green); font-size: 1.7rem; }
.vr-done__no { display: inline-flex; flex-direction: column; gap: 4px; margin: 18px 0 10px; padding: 16px 30px; border: 1.5px dashed var(--ch-gold); border-radius: 14px; background: #fffdf7; }
.vr-done__no span { font-family: var(--ch-en); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ch-muted); }
.vr-done__no strong { font-family: var(--ch-en); font-size: 1.5rem; letter-spacing: .06em; color: var(--ch-green); }
.vr-muted { color: var(--ch-muted); margin-bottom: 22px; }

.vr-foot { text-align: center; margin: 34px 0 0; color: var(--ch-muted); font-size: .9rem; line-height: 1.8; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
	.vr-steps { gap: 2px; }
	.vr-steps__label { display: none; }
	.vr-steps__num { width: 32px; height: 32px; font-size: .85rem; }
	.vr-steps__item::after { top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); }
	.vr-card { padding: 24px 18px 20px; border-radius: 14px; }
	.vr-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.vr-panel legend { font-size: 1.35rem; }
	.vr-chip span { padding: 8px 13px; font-size: .88rem; }
	.vr-nav { flex-wrap: wrap; }
	.vr-count { order: -1; flex: 1 0 100%; text-align: center; }
	.vr-nav .ch-btn { flex: 1; justify-content: center; }
	.charity .vr-back { font-size: .8rem; }
	.vr-page .ch-brand__logo { height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
	.is-js .vr-panel.is-active, .vr-reveal.is-shown, .vr-done__icon { animation: none; }
}

/* ---------- Wider form, normal (sans) fonts ---------- */
.vr-container { max-width: 1180px; }
.vr-page {
	--ch-display: "Poppins", "Noto Sans Malayalam", sans-serif;
	--ch-head: "Noto Sans Malayalam", "Poppins", sans-serif;
}
.charity.vr-page h1, .charity.vr-page h2, .charity.vr-page h3, .vr-panel legend { font-family: var(--ch-display); }
.charity .vr-intro h1 { font-weight: 700; letter-spacing: 0; }
.vr-intro__tag, .vr-foot em, .vr-intro__tag em { font-style: normal; }
.vr-panel legend { font-weight: 600; font-size: 1.45rem; }
.vr-signature { font-family: inherit !important; font-style: normal; font-size: 1rem !important; }
.vr-card { padding: 38px 46px 30px; }
.vr-grid { gap: 22px 28px; }
@media (min-width: 1000px) {
	/* use the extra width: three columns for short text fields */
	.vr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.vr-col-2 { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	.vr-card { padding: 24px 18px 20px; }
}

/* step-saved notice */
.vr-count { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.vr-saved { font-size: .78rem; font-weight: 600; color: var(--ch-green); opacity: 0; transition: opacity .3s; }
.vr-saved.is-shown { opacity: 1; }
.vr-saved.is-bad { color: #a5352a; }
.vr-next:disabled { opacity: .7; cursor: progress; }

/* same top bar and menu as the charity page */
@media (max-width: 960px) { .vr-page .ch-nav { top: 84px; } }
@media (max-width: 760px) { .vr-page .ch-header__inner { height: 66px; } .vr-page .ch-nav { top: 66px; } }
