/* ==========================================================================
   GoodCap Capital — Reusable components
   MembershipCardVisual · FeatureCard · Checklist · Pills · StatsCounter ·
   TestimonialCard · float animations
   ========================================================================== */

/* ---------- Membership card visual (scales with its own width) ---------- */
.mcard {
  --c1: #063281; --c2: #0280e7; --c3: #17a3f3;
  container-type: inline-size;
  position: relative; width: 100%; aspect-ratio: 1.586; isolation: isolate;
  /* leaf corners, like the G mark. % (not cqw) because the card is its own container;
     vertical radii are ×1.586 so the corners stay circular */
  border-radius: 7% 1.6% 7% 1.6% / 11.1% 2.5% 11.1% 2.5%;
  padding: 6.5% 7.5%;                                   /* % padding = % of width */
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(135deg, var(--c1) 0%, var(--c2) 62%, var(--c3) 100%);
  box-shadow: 0 30px 60px -18px rgba(4, 28, 74, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .5s var(--ease);
  will-change: transform;
}
.mcard::before {           /* large ghost G-arc */
  content: ""; position: absolute; z-index: -1;
  width: 78cqw; height: 78cqw; right: -26cqw; bottom: -40cqw;
  border-radius: 50% 50% 50% 8%;
  border: 9cqw solid rgba(255, 255, 255, 0.08);
}
.mcard::after {            /* sheen sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18) 45%, transparent 60%);
  transform: translateX(-120%);
  animation: mcard-sheen 7s var(--ease) 1.4s infinite;
}
@keyframes mcard-sheen { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.mcard__shine {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(40% 50% at var(--glare-x, 30%) var(--glare-y, 20%), rgba(255, 255, 255, 0.22), transparent 70%);
}
.mcard--helium { --c1: #04469f; --c2: #17a3f3; --c3: #7fd3ff; }
.mcard--fincap { --c1: #041c4a; --c2: #063281; --c3: #0280e7; }

.mcard__row { display: flex; align-items: center; justify-content: space-between; }
.mcard__mark { width: 11cqw; height: 11cqw; }
.mcard__tier {
  font-size: clamp(11px, 5cqw, 22px); font-weight: 800; letter-spacing: 0.06em;
  padding: 1cqw 3.2cqw; border-radius: 99px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.25);
}
.mcard__chiprow { display: flex; align-items: center; gap: 3.5cqw; }
.mcard__chip {
  width: 13cqw; height: 10cqw; border-radius: 2cqw;
  background: linear-gradient(135deg, #f7d58b, #d8a64a 55%, #f3cf86);
  box-shadow: inset 0 0 0 1px rgba(120, 80, 10, 0.35);
  position: relative;
}
.mcard__chip::before, .mcard__chip::after { content: ""; position: absolute; background: rgba(120, 80, 10, 0.35); }
.mcard__chip::before { left: 33%; right: 33%; top: 0; bottom: 0; border-inline: 1px solid rgba(120, 80, 10, 0.3); background: transparent; }
.mcard__chip::after { top: 50%; left: 0; right: 0; height: 1px; }
.mcard__nfc { display: flex; gap: 0.9cqw; align-items: center; }
.mcard__nfc i { display: block; width: 1.6cqw; border: 0.7cqw solid rgba(255, 255, 255, 0.75); border-left: 0; border-radius: 0 50% 50% 0; }
.mcard__nfc i:nth-child(1) { height: 3cqw; } .mcard__nfc i:nth-child(2) { height: 5cqw; } .mcard__nfc i:nth-child(3) { height: 7cqw; }
.mcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 4cqw; }
.mcard__label { display: block; font-size: clamp(10px, 3.6cqw, 14px); font-weight: 600; opacity: .78; }
.mcard__name { display: block; font-size: clamp(12px, 5.2cqw, 22px); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; max-width: 30ch; }
.mcard__brand { font-size: clamp(10px, 3.6cqw, 14px); font-weight: 800; line-height: 1.05; text-align: right; opacity: .95; letter-spacing: 0.02em; }
.mcard--sm { box-shadow: 0 20px 40px -16px rgba(4, 28, 74, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
.mcard--sm::after { animation-duration: 9s; }

/* ---------- Feature card ---------- */
.feature {
  position: relative; padding: clamp(26px, 3vw, 36px);
  background: #fff; border: var(--border-soft); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--gc-line-blue); }
.feature__icon {
  width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 24px;
  border-radius: 18px 5px 18px 5px; background: var(--gc-tint); color: var(--gc-blue);
  transition: transform .35s var(--ease);
}
.feature:hover .feature__icon { transform: rotate(-6deg) scale(1.04); }
.feature h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.feature p { color: var(--gc-muted); font-size: 1rem; }

/* ---------- Checklist ---------- */
.checklist { display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; line-height: 1.55; color: var(--gc-text); }
.checklist .icon {
  width: 20px; height: 20px; padding: 3px; margin-top: 1px; flex-shrink: 0;
  border-radius: 50%; background: rgba(22, 163, 74, 0.12); color: var(--gc-success); stroke-width: 3;
}

/* ---------- Pills (variants) ---------- */
.pill--cyan { background: rgba(23, 163, 243, 0.12); color: #0369a1; }
.pill--navy { background: rgba(6, 50, 129, 0.08); color: var(--gc-navy); }

/* ---------- Stat ---------- */
.stat { display: grid; justify-items: start; gap: 6px; }
.stat__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 8px; }
.stat__num { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 0.9375rem; font-weight: 600; }

/* ---------- Testimonial card ---------- */
.tcard {
  margin: 0; height: 100%; display: flex; flex-direction: column; gap: 22px;
  padding: clamp(26px, 3vw, 34px); border-radius: var(--r-leaf);
  background: #fff; border: var(--border-soft); box-shadow: var(--sh-sm);
}
.tcard__quote { width: 34px; height: 34px; color: var(--gc-cyan); }
.tcard__text { margin: 0; font-size: 1.0625rem; color: var(--gc-ink); line-height: 1.7; flex: 1; }
.tcard__person { display: flex; align-items: center; gap: 14px; }
.tcard__person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--gc-tint); }
.tcard__person b { display: block; color: var(--gc-ink); font-size: 1rem; }
.tcard__person small { display: block; color: var(--gc-muted); font-size: 0.875rem; }

/* ---------- Ambient float (decorative only) ---------- */
@keyframes gc-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
.float-slow { animation: gc-float 7s ease-in-out infinite; }
.float-mid { animation: gc-float 5.5s ease-in-out .6s infinite; }
.float-fast { animation: gc-float 4.5s ease-in-out 1.2s infinite; }

@media (prefers-reduced-motion: reduce) {
  .float-slow, .float-mid, .float-fast, .mcard::after { animation: none !important; }
}

/* ==========================================================================
   Added in Phase 2 — internal pages
   ========================================================================== */

/* ---------- Breadcrumb ---------- */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; font-weight: 600; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; color: var(--gc-muted); }
.breadcrumb li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; margin-right: 4px; }
.breadcrumb a { color: var(--gc-blue); min-height: 32px; display: inline-flex; align-items: center; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--gc-ink); }

/* ---------- Internal page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 7vw, 96px);
  background: linear-gradient(180deg, #f2f8ff 0%, #ffffff 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(6, 50, 129, 0.08) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 80% at 85% 30%, #000 10%, transparent 70%);
  mask-image: radial-gradient(60% 80% at 85% 30%, #000 10%, transparent 70%);
}
.page-hero__grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .page-hero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.page-hero h1 { font-size: var(--fs-h1); letter-spacing: -0.032em; margin: 18px 0 18px; max-width: 16ch; }
.page-hero .lead { max-width: 56ch; }

/* ---------- Process timeline (vertical on mobile, numbered steps) ---------- */
.timeline { position: relative; display: grid; gap: 0; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline::before, .timeline__progress {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px;
}
.timeline::before { background: var(--gc-line-blue); }
.timeline__progress { background: var(--gc-gradient-text); transform-origin: top; transform: scaleY(var(--progress, 0)); transition: transform .2s linear; }
.timeline__step { position: relative; display: grid; grid-template-columns: 48px 1fr; align-content: start; gap: 18px; padding-bottom: 28px; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__num {
  position: relative; z-index: 1; width: 48px; height: 48px; border-radius: 15px 4px 15px 4px;
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
  background: #fff; color: var(--gc-blue); border: 2px solid var(--gc-line-blue);
  transition: background-color .4s, color .4s, border-color .4s, box-shadow .4s;
}
.timeline__step.is-reached .timeline__num { background: var(--gc-blue); color: #fff; border-color: var(--gc-blue); box-shadow: 0 8px 20px rgba(2, 128, 231, 0.3); }
.timeline__body { padding-top: 8px; }
.timeline__body h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.timeline__body p { color: var(--gc-muted); font-size: 0.9375rem; margin-top: 4px; line-height: 1.6; }
@media (min-width: 1024px) {
  .timeline--h { grid-template-columns: repeat(var(--steps, 6), 1fr); gap: 20px; }
  .timeline--h::before, .timeline--h .timeline__progress { left: 24px; right: calc((100% - (var(--steps, 6) - 1) * 20px) / var(--steps, 6) - 24px); top: 23px; bottom: auto; width: auto; height: 2px; }
  .timeline--h .timeline__progress { transform-origin: left; transform: scaleX(var(--progress, 0)); }
  .timeline--h .timeline__step { grid-template-columns: 1fr; gap: 16px; padding-bottom: 0; }
  .timeline--h .timeline__body { padding-top: 0; }
}

/* ---------- Copyable info list ---------- */
.info-list { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.info-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--gc-line);
}
.info-row:last-child { border-bottom: 0; }
.info-row__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--gc-tint); color: var(--gc-blue); }
.info-row__label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--gc-muted); }
.info-row__value { display: block; color: var(--gc-ink); font-weight: 700; font-size: 0.9875rem; line-height: 1.5; overflow-wrap: anywhere; }
.info-row__value a:hover { color: var(--gc-blue); }
.info-row__value--mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.copy-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 12px;
  border: 1px solid var(--gc-line); background: #fff; color: var(--gc-muted);
  font-size: 0.8125rem; font-weight: 700; transition: color .2s, border-color .2s, background-color .2s;
}
.copy-btn:hover { color: var(--gc-blue); border-color: var(--gc-line-blue); background: var(--gc-mist); }
.copy-btn .icon { width: 17px; height: 17px; }
.copy-btn__idle, .copy-btn__done { display: inline-flex; align-items: center; gap: 6px; }
.copy-btn .copy-btn__done { display: none; }
.copy-btn.is-copied { color: var(--gc-success); border-color: rgba(22, 163, 74, 0.35); background: rgba(22, 163, 74, 0.06); }
.copy-btn.is-copied .copy-btn__idle { display: none; }
.copy-btn.is-copied .copy-btn__done { display: inline-flex; }
@media (max-width: 479px) { .copy-btn__text { display: none; } .copy-btn { padding: 0; } }

/* ---------- Dark CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: 48px 12px 48px 12px; background: var(--gc-deep); color: #fff;
  background-image:
    radial-gradient(70% 120% at 100% 100%, rgba(23, 163, 243, 0.3), transparent 60%),
    radial-gradient(50% 80% at 0% 0%, rgba(4, 70, 159, 0.55), transparent 70%);
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; gap: 48px; } }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); max-width: 18ch; }
.cta-band p { color: rgba(255, 255, 255, 0.78); margin-top: 14px; max-width: 54ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .cta-band__actions .btn { width: 100%; } }
.cta-band__mark { position: absolute; z-index: -1; width: 340px; height: 340px; right: -60px; bottom: -110px; opacity: .06; }

/* ==========================================================================
   Added in Phase 3 — FAQ accordion · info strip · price card
   ========================================================================== */

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff; border: 1px solid var(--gc-line); border-radius: 18px;
  transition: border-color .3s, box-shadow .3s;
}
.faq__item.is-open { border-color: var(--gc-line-blue); box-shadow: var(--sh-md); }
.faq__item h3 { margin: 0; font-size: inherit; }
.faq__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%;
  min-height: 64px; padding: 18px 20px 18px 24px; text-align: left;
  font-size: 1.0625rem; font-weight: 700; color: var(--gc-ink); line-height: 1.4; border-radius: 18px;
}
.faq__btn:hover { color: var(--gc-blue); }
.faq__icon { position: relative; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--gc-tint); transition: background-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2px; margin: -1px 0 0 -6.5px; border-radius: 2px; background: var(--gc-blue); transition: transform .35s var(--ease), background-color .3s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--gc-blue); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }
.faq__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility 0s linear .4s; }
.faq__item.is-open .faq__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s var(--ease), visibility 0s; }
.faq__panel > div { overflow: hidden; }
.faq__panel p { padding: 0 24px 22px; color: var(--gc-text); line-height: 1.7; max-width: 72ch; }
.faq__panel p + p { margin-top: -10px; }

/* ---------- Info strip ---------- */
.info-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden;
  background: var(--gc-line); border: 1px solid var(--gc-line); border-radius: 22px; box-shadow: var(--sh-sm);
}
@media (min-width: 900px) { .info-strip { grid-template-columns: 0.8fr 1fr 1.35fr 0.95fr; } }
@media (min-width: 900px) and (max-width: 1199px) { .info-strip__item { padding: 18px 16px; gap: 12px; } .info-strip__value { font-size: 0.9375rem; } }
.info-strip__item { display: flex; align-items: center; gap: 14px; padding: 20px; background: #fff; min-width: 0; }
.info-strip__icon { width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0; display: grid; place-items: center; background: var(--gc-tint); color: var(--gc-blue); }
.info-strip__label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--gc-muted); }
.info-strip__value { display: block; font-weight: 800; color: var(--gc-ink); line-height: 1.35; overflow-wrap: break-word; word-break: break-word; }
.info-strip__value a:hover { color: var(--gc-blue); }
@media (max-width: 479px) {
  .info-strip { grid-template-columns: 1fr; }
  .info-strip__item { padding: 16px 18px; }
}

/* ---------- Price card ---------- */
.price-card {
  position: relative; padding: clamp(26px, 4vw, 40px); background: #fff;
  border-radius: 40px 10px 40px 10px; border: 1.5px solid var(--gc-line-blue); box-shadow: var(--sh-lg);
}
.price-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-card__name { font-size: 1.15rem; font-weight: 800; color: var(--gc-ink); }
.price-card__amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 18px 0 6px; }
.price-card__now { font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 800; color: var(--gc-ink); letter-spacing: -0.035em; line-height: 1; }
.price-card__was { font-size: 1.1rem; color: var(--gc-muted); }
.price-card__save { font-size: 0.8125rem; font-weight: 800; color: var(--gc-success); background: rgba(22, 163, 74, 0.1); padding: 4px 10px; border-radius: 99px; }
.price-card__meta { font-size: 0.875rem; color: var(--gc-muted); }
.price-card__meta a { color: var(--gc-blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.price-card .checklist { margin: 24px 0; padding-top: 22px; border-top: 1px solid var(--gc-line); }
.price-card__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 16px; font-size: 0.875rem; }
.price-card__links a { color: var(--gc-muted); font-weight: 600; min-height: 36px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.price-card__links a:hover { color: var(--gc-blue); }

/* ---------- Disclosure note ---------- */
.disclosure {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px;
  background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 0.9rem; line-height: 1.6;
}
.disclosure .icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: #b45309; }
.disclosure strong { color: #78350f; }

/* ==========================================================================
   Added in Phase 6 — form system (used by Contact, Complaint, Login, Apply)
   ========================================================================== */
.form-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; gap: 20px 18px; } .form-grid--2 > .field--full { grid-column: 1 / -1; } }
.field__label .req { color: var(--gc-error); margin-left: 2px; }
.field__label .opt { color: var(--gc-muted); font-weight: 600; margin-left: 4px; }
.field__hint { font-size: 0.8125rem; color: var(--gc-muted); line-height: 1.5; }
textarea.field__control { min-height: 160px; resize: vertical; line-height: 1.6; }
.field__control[aria-invalid="true"] { border-color: var(--gc-error); }
.field__error .icon { width: 16px; height: 16px; flex-shrink: 0; }
.field__meta { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.field__count { font-size: 0.8125rem; color: var(--gc-muted); margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.field__count.is-near { color: var(--gc-warning); }
.field__prefix { position: relative; }
.field__prefix > span { position: absolute; left: 1px; top: 1px; bottom: 1px; display: grid; place-items: center; padding: 0 12px 0 16px; border-right: 1px solid var(--gc-line); color: var(--gc-muted); font-weight: 700; font-size: 0.9375rem; border-radius: 12px 0 0 12px; background: var(--gc-mist); }
.field__prefix > .field__control { padding-left: 68px; }

/* Alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 0.9375rem; line-height: 1.55; border: 1px solid; }
.alert .icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.alert strong { display: block; }
.alert[hidden] { display: none; }
.alert--error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert--success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.alert--info { background: var(--gc-mist); border-color: var(--gc-line-blue); color: var(--gc-navy); }
.alert ul { margin: 4px 0 0; padding-left: 18px; list-style: disc; }

/* Success panel (replaces the form after a successful submit) */
.form-success { display: grid; justify-items: center; text-align: center; gap: 12px; padding: clamp(28px, 5vw, 48px) 12px; }
.form-success[hidden] { display: none; }
.form-success__icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgba(22, 163, 74, 0.1); color: var(--gc-success); }
.form-success__icon svg { width: 40px; height: 40px; }
.form-success__icon path, .form-success__icon circle { stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .7s var(--ease) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 1.5rem; }
.form-success p { color: var(--gc-muted); max-width: 44ch; }
@media (prefers-reduced-motion: reduce) { .form-success__icon path, .form-success__icon circle { animation: none; stroke-dashoffset: 0; } }

/* ==========================================================================
   Added in Phase 7 — file upload · reference number · form sections
   ========================================================================== */
.upload { position: relative; }
.upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.upload__zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 148px; padding: 22px 18px; border-radius: 16px; cursor: pointer;
  border: 2px dashed #c7d7ee; background: var(--gc-mist);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.upload__zone:hover { border-color: var(--gc-blue); background: var(--gc-tint); }
.upload__input:focus-visible + .upload__zone { outline: 3px solid var(--gc-cyan); outline-offset: 3px; border-color: var(--gc-blue); }
.upload.is-dragging .upload__zone { border-color: var(--gc-blue); background: var(--gc-tint); box-shadow: 0 0 0 4px rgba(2, 128, 231, 0.12); }
.upload__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--gc-blue); box-shadow: var(--sh-sm); }
.upload__icon .icon { width: 24px; height: 24px; }
.upload__title { font-weight: 700; color: var(--gc-ink); font-size: 0.9875rem; }
.upload__title u { color: var(--gc-blue); text-underline-offset: 3px; }
.upload__rules { font-size: 0.8125rem; color: var(--gc-muted); }
.field.is-invalid .upload__zone { border-color: var(--gc-error); background: #fef2f2; }
.upload__file {
  display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 12px 12px 12px 14px;
  border-radius: 14px; background: #fff; border: 1px solid var(--gc-line-blue);
}
.upload__file[hidden] { display: none; }
.upload.has-file .upload__zone { min-height: 0; padding: 14px; flex-direction: row; gap: 12px; }
.upload.has-file .upload__icon { width: 36px; height: 36px; }
.upload.has-file .upload__rules { display: none; }
.upload__file-icon { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: rgba(22, 163, 74, 0.1); color: var(--gc-success); }
.upload__file-meta { flex: 1; min-width: 0; }
.upload__file-meta b { display: block; color: var(--gc-ink); font-size: 0.9375rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload__file-meta small { display: block; color: var(--gc-muted); font-size: 0.8125rem; }
.upload__remove { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; color: var(--gc-error); font-weight: 700; font-size: 0.875rem; }
.upload__remove:hover { background: #fef2f2; }
.upload__remove .icon { width: 17px; height: 17px; }

.ref-box { display: grid; gap: 8px; justify-items: center; width: 100%; max-width: 420px; padding: 18px 20px; margin: 6px 0 4px; border-radius: 18px; background: var(--gc-mist); border: 1px dashed var(--gc-line-blue); }
.ref-box[hidden] { display: none; }
.ref-box__label { font-size: 0.8125rem; font-weight: 700; color: var(--gc-muted); }
.ref-box__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ref-box__value { font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 800; color: var(--gc-navy); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ref-box small { font-size: 0.8125rem; color: var(--gc-muted); }

.form-section + .form-section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--gc-line); }
fieldset.form-section > legend { float: left; width: 100%; }
fieldset.form-section > legend + * { clear: both; }
.form-section__title { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; font-weight: 800; color: var(--gc-ink); margin-bottom: 18px; letter-spacing: -0.01em; }
.form-section__num { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--gc-navy); color: #fff; font-size: 0.8125rem; font-weight: 800; }

/* ==========================================================================
   Added in Phase 11 — choice cards (radio) · amount prefix · rep-example table
   ========================================================================== */
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group > legend { padding: 0; margin-bottom: 8px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__card {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px;
  border: 1.5px solid var(--gc-line); border-radius: 13px; background: #fff; cursor: pointer;
  font-weight: 700; color: var(--gc-ink); font-size: 0.9375rem; line-height: 1.3;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.choice__card:hover { border-color: #cbd5e1; }
.choice__icon { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--gc-mist); color: var(--gc-blue); }
.choice__icon .icon { width: 18px; height: 18px; }
.choice__check { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #cbd5e1; flex-shrink: 0; display: grid; place-items: center; transition: background-color .2s, border-color .2s; }
.choice__check svg { width: 12px; height: 12px; color: #fff; opacity: 0; stroke-width: 3.5; }
.choice input:checked + .choice__card { border-color: var(--gc-blue); background: var(--gc-tint); box-shadow: 0 0 0 3px rgba(2, 128, 231, 0.1); }
.choice input:checked + .choice__card .choice__check { background: var(--gc-blue); border-color: var(--gc-blue); }
.choice input:checked + .choice__card .choice__check svg { opacity: 1; }
.choice input:focus-visible + .choice__card { outline: 3px solid var(--gc-cyan); outline-offset: 2px; }
.field.is-invalid .choice__card { border-color: var(--gc-error); }
@media (max-width: 359px) { .choice-grid { grid-template-columns: 1fr; } }

.field__prefix--rupee > span { padding: 0 12px 0 14px; }
.field__prefix--rupee > .field__control { padding-left: 52px; }
.field__hint[data-live] { font-variant-numeric: tabular-nums; }

.rep-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.rep-table th, .rep-table td { padding: 11px 0; border-bottom: 1px solid var(--gc-line); text-align: left; vertical-align: top; }
.rep-table th { font-weight: 600; color: var(--gc-muted); padding-right: 16px; }
.rep-table td { font-weight: 800; color: var(--gc-ink); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rep-table tr:last-child th, .rep-table tr:last-child td { border-bottom: 0; }
.rep-table .is-total th, .rep-table .is-total td { color: var(--gc-navy); font-size: 1rem; border-top: 2px solid var(--gc-line-blue); }
@media (max-width: 439px) {
  .choice__card { gap: 8px; padding: 10px 12px; font-size: 0.875rem; }
  .choice__icon { display: none; }
  .choice__check { width: 18px; height: 18px; }
}
.choice__card { min-width: 0; }
