/* ============================================================
   CodeYogi Foundation — Donate page
   Pure HTML + CSS recreation (tab switch via radio :checked)
   ============================================================ */

:root {
  --navy:        #1c2b4b;   /* page background */
  --navy-deep:   #172440;   /* lower gradient / band */
  --navy-card:   #243554;   /* card + input background */
  --navy-border: #3a4d70;   /* input / card borders */
  --amber:       #f5a623;   /* accent / buttons */
  --amber-dark:  #e39a2c;
  --navy-ink:    #1a2e50;   /* text on amber */
  --text-light:  #ffffff;
  --text-muted:  #c9d1e0;
  --text-dim:    #8f9bb3;
  --ink:         #141414;

  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--navy);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ---------------------------------------------------------
   Logo (top of page)
   --------------------------------------------------------- */
.page-top {
  background: var(--navy-deep);
  padding-bottom: 40px;
}

.page-logo {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #fff;
}

.logo-icon {
  display: block;
  width: 34px;
  height: 44px;
  flex: none;
}

.logo-text {
  display: flex;
  flex-direction: column;
  font-family: "Poppins", var(--font-sans);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.logo-name { font-weight: 700; font-size: 16.5px; }
.logo-sub  { font-weight: 600; font-size: 14px; }

/* Buttons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
  font-size: 16px;
  padding: 17px 24px;
  border-radius: 999px;
}

.btn-primary:hover { background: var(--amber-dark); transform: translateY(-1px); }

.btn-block { width: 100%; }

/* ---------------------------------------------------------
   Main / Tabs
   --------------------------------------------------------- */
.donate-page {
  background: var(--navy);
  min-height: 100vh;
  padding-bottom: 80px;
}

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

.tab-bar-wrap {
  display: flex;
  justify-content: center;
  padding-top: 36px;
}

.tab-bar {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  transition: background .25s, color .25s;
}

.tab:hover { color: #fff; }

.tab-icon { display: inline-flex; align-items: center; justify-content: center; }

.in-badge {
  font-size: 10px;
  letter-spacing: .06em;
  font-weight: 600;
  opacity: .8;
}

.globe {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #7bd389 0 22%, transparent 24%),
    radial-gradient(circle at 70% 60%, #7bd389 0 18%, transparent 20%),
    #4a90e2;
  box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset;
}

/* Active tab styling */
#tab-india:checked   ~ .page-top .tab-india,
#tab-outside:checked ~ .page-top .tab-outside {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(242, 169, 59, 0.35);
}

#tab-india:checked   ~ .page-top .tab-india .in-badge { opacity: 1; }

/* Panel visibility */
.panel { display: none; }

#tab-india:checked   ~ .panel-india   { display: block; }
#tab-outside:checked ~ .panel-outside { display: block; }

.panel-inner {
  width: min(552px, 100% - 48px);
  margin-inline: auto;
  padding-top: 48px;
}

.panel-inner.center { text-align: center; width: min(600px, 100% - 48px); }

/* Eyebrow -------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 30px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}

.eyebrow .line {
  flex: 0 0 130px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.eyebrow-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Heading -------------------------------------------------- */
.heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 54px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 26px;
}

.heading em {
  font-style: italic;
  font-weight: 500;
  color: var(--amber);
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 56px;
}

.center .lead {
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: 40px;
}

/* ---------------------------------------------------------
   Form (India) — mirrors codeyogi.org/donate
   --------------------------------------------------------- */
.donate-form {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vh, 40px);
}

.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.legend,
.field-label {
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
}

.legend { display: block; margin-bottom: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field-label { margin-bottom: 8px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

/* Amount pills */
.amount-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.amount-pill { position: relative; }

.amount-pill input { position: absolute; opacity: 0; pointer-events: none; }

.amount-pill span {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(245, 166, 35, 0.3);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background .24s ease, border-color .24s ease, color .24s ease, transform .2s ease;
}

.amount-pill span:hover {
  background: rgba(245, 166, 35, 0.1);
  border-color: rgba(245, 166, 35, 0.55);
  color: #fff;
}

.amount-pill span:active { transform: scale(.96); }

.amount-pill input:focus-visible + span {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.amount-pill input:checked + span {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy-ink);
}

/* Text inputs */
.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  transition: border-color .24s ease, background .24s ease;
}

.input::placeholder { color: rgba(255, 255, 255, 0.35); }

.input:focus {
  border-color: rgba(245, 166, 35, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.textarea { height: 112px; resize: vertical; }

/* Hide number spinners */
.input[type="number"]::-webkit-inner-spin-button,
.input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input[type="number"] { -moz-appearance: textfield; }

/* Checkboxes */
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.check input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--amber);
  cursor: pointer;
}

/* 80G receipt block: PAN + Address only when ticked */
.receipt { display: flex; flex-direction: column; gap: 16px; }

.pan-fields {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding-left: 30px;
}

.receipt:has(#wants80G:checked) .pan-fields { display: flex; }

/* Submit */
.submit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 16px 36px;
  border: 0;
  border-radius: 999px;
  background: var(--amber);
  color: var(--navy-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 24px 48px -16px rgba(245, 166, 35, 0.3);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, background .28s ease;
}

.submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 32px 64px -16px rgba(245, 166, 35, 0.4);
  background: #ffb940;
}

.submit:active { transform: scale(.97); }

.submit:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.submit svg {
  width: 18px;
  height: 18px;
  transition: transform .28s cubic-bezier(.2,.8,.2,1);
}

.submit:hover svg { transform: translateX(4px); }

.donate-status { font-size: 14px; margin: 0; min-height: 20px; }
.donate-status.is-error { color: #ff7b7b; }

.fine-print {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
  text-align: center;
}

/* ---------------------------------------------------------
   Steps card (Outside India)
   --------------------------------------------------------- */
.steps-card {
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 34px 32px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.steps-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 26px;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

.steps strong { color: #fff; font-weight: 700; }

.step-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 169, 59, 0.18);
  color: var(--amber);
  font-size: 12px;
  font-weight: 600;
  margin-top: 1px;
}

.steps-card .fine-print {
  margin-top: 20px;
  padding-inline: 6px;
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 600px) {
  .page-logo { padding-top: 28px; }
  .tab { padding: 11px 14px; font-size: 13px; }
  .tab-bar-wrap { padding-top: 32px; }
  .heading { font-size: 40px; }
  .lead { font-size: 16px; margin-bottom: 40px; }
  .eyebrow .line { flex-basis: 60px; }
  .steps-card { padding: 26px 20px 22px; }
}
