/* WMU brandy modern UI — tuned colors */
:root{
  /* Approx WMU brand */
  --gold:#FFB700;       /* WMU Gold */
  --gold-700:#D9A200;   /* darker gold for hover/focus */
  --brown:#5E3A00;      /* WMU Brown (deep) */
  --brown-800:#4A2E00;

  /* UI neutrals */
  --bg:#F7F8FA;
  --fg:#111827;
  --muted:#6B7280;
  --card:#FFFFFF;
  --border:#E5E7EB;

  /* Layout + effects */
  --radius:16px;
  --shadow:0 18px 50px rgba(0,0,0,.08);

  /* feedback */
  --ok:#16A34A;
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background:var(--bg); color:var(--fg);
  font-family:Inter, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}

/* Subtle branded background (gold glow + warm neutral) */
.bg-grad{
  position:fixed; inset:0; z-index:-2;
  background:
    radial-gradient(1100px 760px at 12% -8%, rgba(255,183,0,.18), transparent 60%),
    radial-gradient(1100px 760px at 110% 18%, rgba(94,58,0,.10), transparent 55%),
    linear-gradient(#fbfbfd, #f6f7f9);
}
.bg-shapes::before,
.bg-shapes::after{
  content:""; position:fixed; z-index:-1; filter:blur(48px); border-radius:50%; opacity:.32;
}
.bg-shapes::before{ width:360px; height:360px; left:-80px; top:-80px; background:rgba(255,183,0,.55) }
.bg-shapes::after { width:320px; height:320px; right:-70px; top:80px;   background:rgba(94,58,0,.35) }

/* Header */
.site-header{ position:sticky; top:0; z-index:10; backdrop-filter:saturate(120%) blur(8px) }
.header-inner{
  background:rgba(255,255,255,.92);
  border-bottom:6px solid var(--gold);   /* stronger gold bar */
  box-shadow:0 2px 0 rgba(94,58,0,.05);
}
.brand-wrap{
  display:flex; align-items:center; gap:14px; padding:14px 18px; max-width:1100px; margin:0 auto;
}
.logo{
  width:60px; height:60px; object-fit:contain; border-radius:12px;
  background:rgba(255,183,0,.15);
  border:1px solid rgba(94,58,0,.15);
  padding:6px;
}
.brand-text{ line-height:1.1 }
.brand-title{ font-size:22px; margin:0; font-weight:800; letter-spacing:.2px; color:var(--brown) }
.brand-sub{ margin:2px 0 0; color:var(--muted); font-size:13px }

/* Layout */
.container{ max-width:820px; margin:28px auto; padding:0 16px }
.card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  padding:22px; box-shadow:var(--shadow);
}
.signup{ padding:26px 26px 22px }
.card-head h2{ margin:0 0 4px 0; font-size:28px; color:var(--brown) }
.card-head .muted{ color:var(--muted) }

/* Form */
form{ margin-top:14px }
.req{ color:#B91C1C; font-weight:700 }
.grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px }
.field{ display:flex; flex-direction:column; gap:6px; font-size:14px }
.field input, .field select, .field textarea{
  padding:12px 14px; border:1px solid var(--border); border-radius:12px; background:#fff; color:var(--fg);
  font-size:15px;
}
.field input::placeholder, .field textarea::placeholder{ color:#9CA3AF }
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 4px rgba(255,183,0,.25);   /* gold focus ring */
}
.span-2{ grid-column:1 / span 2 }

/* Actions / Buttons */
.actions{ display:flex; align-items:center; gap:12px; margin-top:12px }
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:12px 18px; border-radius:12px; cursor:pointer; font-weight:800; letter-spacing:.2px;
  transition:transform .04s ease, filter .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active{ transform:translateY(1px) }

.btn.primary{
  background:var(--gold);
  border:1px solid var(--gold-700);
  color:var(--brown-800);
  text-shadow:0 1px 0 rgba(255,255,255,.35);
}
.btn.primary:hover{ background:var(--gold-700); border-color:var(--gold-700) }

.status{ min-height:1.1em; color:var(--muted); font-size:14px }

/* Footer */
.footer{ padding:18px; text-align:center; color:var(--muted) }

/* ---------- Thank-you overlay + animation ---------- */
.thanks{
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  background:rgba(0,0,0,.35);
  opacity:0; pointer-events:none; transition:opacity .28s ease;
}
.thanks.show{ opacity:1; pointer-events:auto }
.thanks-card{
  background:#fff; color:var(--fg); border-radius:18px; padding:28px 26px; width:min(460px, 92vw);
  text-align:center; box-shadow:var(--shadow); border:2px solid var(--gold);
  transform:translateY(8px) scale(.98); opacity:0; animation:pop .34s cubic-bezier(.2,.9,.25,1) forwards;
}
.thanks-title{ margin:8px 0 4px; font-size:30px; letter-spacing:.2px; color:var(--brown) }
.thanks-sub{ margin:0; color:var(--muted) }

/* Animated check */
.check{ display:flex; justify-content:center; margin-bottom:6px }
.check svg{ width:72px; height:72px }
.check .ring{ fill:none; stroke:var(--gold); stroke-width:3; opacity:.95; transform-origin:center; transform:scale(.9) }
.check .mark{
  fill:none; stroke:var(--ok); stroke-width:3.2; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:26; stroke-dashoffset:26; animation:draw .5s .1s ease forwards;
}

/* Confetti in WMU colors */
#confetti{ position:absolute; inset:0; overflow:hidden; pointer-events:none }
.confetti{
  position:absolute; width:10px; height:14px; border-radius:2px; opacity:0; animation:fall 900ms ease-in forwards;
}

/* Animations */
@keyframes pop{ to{ transform:translateY(0) scale(1); opacity:1 } }
@keyframes draw{ to{ stroke-dashoffset:0 } }
@keyframes fall{
  0%{ transform:translateY(-20vh) rotate(0deg); opacity:0 }
  10%{ opacity:1 }
  100%{ transform:translateY(100vh) rotate(360deg); opacity:0 }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .thanks{ transition:none }
  .thanks-card{ animation:none; transform:none; opacity:1 }
  .confetti{ animation:none; display:none }
}

/* Utils */
.hidden{ display:none }

/* ===== Mobile tweaks ===== */
body { font-size: 16px; } /* prevent iOS zoom-on-focus */
.header-inner { padding-top: calc(8px + env(safe-area-inset-top)); }
.footer      { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

@media (max-width: 640px) {
  .brand-wrap { padding: 10px 14px; gap: 10px; }
  .logo { width: 44px; height: 44px; border-radius: 10px; padding: 4px; }
  .brand-title { font-size: 18px; }
  .brand-sub   { font-size: 12px; }

  .container { margin: 18px auto; padding: 0 12px; }
  .card      { padding: 16px; border-radius: 14px; }
  .signup    { padding: 18px; }
  .card-head h2 { font-size: 22px; margin-bottom: 4px; }

  .grid { grid-template-columns: 1fr; gap: 12px; }
  .span-2 { grid-column: auto; }

  .field input, .field select, .field textarea {
    padding: 14px 14px;
    min-height: 44px;
    font-size: 16px;
  }

  .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .btn { width: 100%; padding: 14px 16px; border-radius: 12px; }
  .status { text-align: center; }

  .thanks-card { width: 92vw; padding: 22px 18px; }
  .thanks-title { font-size: 24px; }
  .check svg { width: 60px; height: 60px; }

  .bg-grad { background:
    radial-gradient(800px 520px at 12% -8%, rgba(255,183,0,.14), transparent 60%),
    radial-gradient(800px 520px at 110% 18%, rgba(94,58,0,.08), transparent 55%),
    linear-gradient(#fbfbfd, #f6f7f9);
  }
  .bg-shapes::before { width: 260px; height: 260px; }
  .bg-shapes::after  { width: 220px; height: 220px; }
}
