/* =============================================================================
   UMD India Alumni — Member Registration
   Ported pixel-for-pixel from the design reference. Everything is scoped under
   .umd-alumni so it never collides with the WordPress theme's own styles.
   ============================================================================= */

.umd-alumni {
  /* Brand + design tokens (only the ones the component needs). */
  --umd-red: #E21833;
  --umd-red-hover: #C0162A;
  --umd-red-press: #9A0F1F;
  --umd-gold: #FFD200;
  --umd-dark: #1A0509;

  --ink: #17181C;
  --ink-soft: #3E4048;
  --muted: #6D6F79;
  --hairline: #BBBDC8;
  --hairline-lilac: #E4E2F0;
  --surface-0: #FFFFFF;
  --surface-1: #FDFBFE;

  --r-md: 10px;
  --r-lg: 14px;
  --r-pill: 999px;
  --shadow-md: 0 2px 16px rgba(0,0,0,.07);

  --font-sans: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;

  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.5;
  box-sizing: border-box;
}
.umd-alumni *,
.umd-alumni *::before,
.umd-alumni *::after { box-sizing: border-box; }

.umd-alumni img { max-width: 100%; }
/* Original-colour logo on a small white rounded card (matches the home hero),
   so the dark logo stays readable on the red header / sidebar. */
.umd-logo-white { background: #fff; border-radius: 8px; padding: 7px 12px; }

/* Standalone "Full Page" template: clean off-white backdrop, no theme chrome. */
body.umd-standalone { margin: 0; background: #F0ECEA; }

/* ---------- A/B variant switching -------------------------------------------
   Both layouts are printed into the page; JS coin-flips and sets data-variant.
   Default (JS off) shows Layout A.                                             */
.umd-alumni .umd-variant { display: none; }
.umd-alumni[data-variant="A"] .umd-variant-a { display: block; }
.umd-alumni[data-variant="B"] .umd-variant-b { display: block; }

/* ---------- Shared inputs ---------- */
.umd-alumni .fi,
.umd-alumni .fs {
  width: 100%; height: 48px;
  border: 1.5px solid var(--hairline-lilac);
  border-radius: var(--r-md);
  padding: 0 14px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  transition: border-color .15s, box-shadow .15s;
}
.umd-alumni .fi:focus,
.umd-alumni .fs:focus {
  outline: none;
  border-color: var(--umd-red);
  box-shadow: 0 0 0 3px rgba(226,24,51,.12);
}
/* Fix: theme forces max-width:50px on number inputs, which shrinks the
   Graduation Year box. Restore it to full width. */
.umd-alumni input[type="number"].fi {
  max-width: none !important;
  width: 100% !important;
}
.umd-alumni .fs {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%236D6F79' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  cursor: pointer;
}
.umd-alumni .fl {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--muted); margin-bottom: 5px;
}
.umd-alumni .ff { margin-bottom: 14px; }
.umd-alumni .g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.umd-alumni .req { color: var(--umd-red); font-weight: 700; }

/* Checkbox-group fields (e.g. Alumni / Current Student). */
.umd-alumni .fcg { display: flex; gap: 20px; flex-wrap: wrap; }
.umd-alumni .fcg-opt {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink); cursor: pointer;
}
.umd-alumni .fcg-opt input[type="checkbox"] {
  width: 17px; height: 17px; accent-color: var(--umd-red); cursor: pointer;
}

/* Validation: keep the field looking normal — only the message under it is red. */
.umd-alumni .ff-error-msg { display: block; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--umd-red); }

.umd-alumni .umd-alert {
  border-radius: var(--r-md); padding: 12px 16px; margin: 0 auto 16px;
  font-size: 13px; max-width: 720px;
}
.umd-alumni .umd-alert-error {
  background: #FDECEE; border: 1px solid #F8C7CE; color: #9A0F1F;
}
.umd-alumni .umd-alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- CTA button ---------- */
.umd-alumni .btn-cta {
  width: 100%; height: 52px;
  background: linear-gradient(135deg, var(--umd-red), var(--umd-red-press));
  color: #fff; border: none; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: var(--font-sans); letter-spacing: .01em;
  transition: opacity .15s;
}
.umd-alumni .btn-cta:hover { opacity: .9; }

/* ---------- Section divider (Layout A) ---------- */
.umd-alumni .sec-head { display: flex; align-items: center; gap: 10px; margin: 16px 0 14px; }
.umd-alumni .sec-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--umd-red); color: #fff;
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center; flex-shrink: 0;
}
.umd-alumni .sec-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.umd-alumni .sec-line { flex: 1; height: 1px; background: var(--hairline-lilac); }

/* =============================================================================
   LAYOUT A — Classic centered
   ============================================================================= */
.umd-alumni .va-wrap { max-width: 720px; margin: 0 auto; }
.umd-alumni .va-card {
  background: #fff; box-shadow: var(--shadow-md); overflow: hidden; border-radius: 0;
}
.umd-alumni .va-nav {
  background: var(--umd-red); height: 60px;
  display: flex; align-items: center; padding: 0 28px; justify-content: space-between;
}
.umd-alumni .va-nav .umd-logo-white { height: 46px; width: auto; }
.umd-alumni .va-signin { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); text-decoration: none; }
.umd-alumni .va-hero {
  background: var(--umd-dark); padding: 32px 28px;
  display: flex; gap: 20px; align-items: center;
}
.umd-alumni .va-hero-text { flex: 1; }
.umd-alumni .va-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--umd-gold);
  text-transform: uppercase; margin-bottom: 8px;
}
.umd-alumni .va-title {
  font-size: 24px; font-weight: 800; color: #fff; margin: 0 0 10px;
  line-height: 1.25; letter-spacing: -.01em;
}
.umd-alumni .va-sub { font-size: 13px; color: rgba(255,255,255,.65); margin: 0; line-height: 1.65; }
.umd-alumni .va-stats { display: flex; gap: 10px; flex-shrink: 0; }
.umd-alumni .va-stat {
  text-align: center; background: rgba(255,210,0,.12);
  border: 1px solid rgba(255,210,0,.25); border-radius: var(--r-lg); padding: 14px 16px;
}
.umd-alumni .va-stat-num { font-size: 22px; font-weight: 800; color: var(--umd-gold); line-height: 1; }
.umd-alumni .va-stat-lbl { font-size: 10px; color: rgba(255,255,255,.5); font-weight: 600; margin-top: 4px; }
.umd-alumni .va-body { padding: 28px; background: var(--surface-0); }
.umd-alumni .va-legal { text-align: center; font-size: 11px; color: var(--muted); margin: 12px 0 0; }
.umd-alumni .va-foot {
  background: #17181C; padding: 15px 28px;
  display: flex; justify-content: space-between; align-items: center;
}
.umd-alumni .va-foot span { font-size: 11px; color: rgba(255,255,255,.4); }
.umd-alumni .va-foot a { font-size: 11px; color: rgba(255,255,255,.55); text-decoration: none; }

/* =============================================================================
   LAYOUT B — Split panel
   ============================================================================= */
.umd-alumni .vb-wrap { display: flex; min-height: 640px; box-shadow: var(--shadow-md); }
.umd-alumni .vb-side {
  width: 320px; flex-shrink: 0;
  background: var(--umd-red); padding: 40px 32px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.umd-alumni .vb-orb1 {
  position: absolute; top: -60px; right: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: var(--umd-gold); opacity: .08; pointer-events: none;
}
.umd-alumni .vb-orb2 {
  position: absolute; bottom: -80px; left: -50px;
  width: 260px; height: 260px; border-radius: 50%;
  background: var(--umd-gold); opacity: .06; pointer-events: none;
}
.umd-alumni .vb-logo { width: 200px; margin-bottom: 36px; position: relative; }
.umd-alumni .vb-title {
  font-size: 20px; font-weight: 800; color: #fff; margin: 0 0 12px;
  line-height: 1.3; position: relative;
}
.umd-alumni .vb-sub {
  font-size: 13px; color: rgba(255,255,255,.75); margin: 0 0 28px;
  line-height: 1.65; position: relative;
}
.umd-alumni .vb-checks { position: relative; }
.umd-alumni .vb-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.umd-alumni .vb-check svg { flex-shrink: 0; }
.umd-alumni .vb-check span { font-size: 13px; color: rgba(255,255,255,.85); line-height: 1.5; }
.umd-alumni .vb-stats { margin-top: auto; padding-top: 32px; display: flex; gap: 28px; position: relative; }
.umd-alumni .vb-stat { text-align: center; }
.umd-alumni .vb-stat-num { font-size: 26px; font-weight: 800; color: var(--umd-gold); line-height: 1; }
.umd-alumni .vb-stat-lbl { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 3px; }
.umd-alumni .vb-form {
  flex: 1; padding: 40px 36px; background: #F7F5FE;
  display: flex; flex-direction: column;
}
.umd-alumni .vb-form-title {
  font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 4px; letter-spacing: -.01em;
}
.umd-alumni .vb-form-sub { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.umd-alumni .btn-cta-b { margin-top: auto; }
.umd-alumni .vb-foot {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline-lilac);
  display: flex; justify-content: space-between;
}
.umd-alumni .vb-foot span { font-size: 11px; color: var(--hairline); }
.umd-alumni .vb-foot a { font-size: 11px; color: var(--muted); text-decoration: none; }

/* =============================================================================
   Success view
   ============================================================================= */
.umd-alumni .umd-success {
  max-width: 520px; margin: 40px auto; text-align: center;
  background: #fff; border: 1px solid var(--hairline-lilac);
  border-radius: var(--r-lg); padding: 44px 32px; box-shadow: var(--shadow-md);
}
.umd-alumni .umd-success-icon { margin-bottom: 16px; }
.umd-alumni .umd-success h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 10px; }
.umd-alumni .umd-success p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }

/* =============================================================================
   Responsive — matches the reference 700px breakpoint
   ============================================================================= */
@media (max-width: 700px) {
  .umd-alumni .g2 { grid-template-columns: 1fr; }
  .umd-alumni .vb-wrap { flex-direction: column; min-height: 0; }
  .umd-alumni .vb-side { width: 100%; min-height: auto; padding: 28px 20px; }
  .umd-alumni .va-hero { flex-direction: column; align-items: flex-start; gap: 14px; }
  .umd-alumni .vb-form { padding: 24px 20px; }
  .umd-alumni .va-body { padding: 20px; }
}
.umd-alumni .btn-cta {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-sizing:border-box;
}