/* ── Employee of the Month — refined corporate award theme ──────────
   Forest green + champagne gold on warm white, transitional serif,
   certificate-style ballot. Hand-coded. */

:root {
  --white: #fbfaf7;
  --card: #ffffff;
  --forest: #1e3d2f;
  --forest-2: #2a523f;
  --forest-soft: #6c8479;
  --gold: #c3a15c;
  --gold-soft: #e6d7b4;
  --ink: #26332c;
  --line: #e4e0d5;
  --err: #b8503f;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
}

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

.hidden { display: none !important; }

body {
  font-family: var(--font-body);
  background-color: var(--white);
  background-image: radial-gradient(60% 30% at 50% 0%, rgba(195, 161, 92, 0.12), transparent 70%);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.page { display: flex; flex-direction: column; min-height: 100vh; }

.wrap { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 20px; }

main { flex: 1 0 auto; padding-bottom: 70px; }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { text-align: center; padding: 66px 0 36px; }

.laurel { font-size: 1.5rem; letter-spacing: 0.5em; margin-bottom: 16px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 8vw, 3.9rem);
  line-height: 1.06;
  color: var(--forest);
}

.hero .sub {
  max-width: 500px;
  margin: 14px auto 0;
  color: var(--forest-soft);
  font-size: 1.05rem;
}

/* ── Notes ────────────────────────────────────────────────────────── */
.note {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 10px;
  background: rgba(195, 161, 92, 0.1);
  border: 1px solid var(--gold-soft);
  text-align: center;
  font-size: 0.96rem;
}

/* ── Ballot card ──────────────────────────────────────────────────── */
.ballot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 38px 34px;
  box-shadow: 0 22px 54px rgba(30, 61, 47, 0.1);
  position: relative;
  margin-top: 8px;
}

.ballot::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px solid var(--gold-soft);
  border-radius: 8px;
  pointer-events: none;
}

.ballot-head {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.ballot h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.9rem;
  text-align: center;
  color: var(--forest);
  margin-bottom: 24px;
}

.results-sub { text-align: center; color: var(--forest-soft); font-size: 0.95rem; margin: -14px 0 24px; }

/* ── Choices ──────────────────────────────────────────────────────── */
.choices { display: flex; flex-direction: column; gap: 10px; position: relative; }

.choice-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 15px 18px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.choice-btn .mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  position: relative;
}

.choice-btn img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.choice-btn:hover { transform: translateY(-1px); border-color: var(--gold); }

.choice-btn.is-selected {
  border-color: var(--forest);
  background: rgba(30, 61, 47, 0.05);
}

.choice-btn.is-selected .mark { border-color: var(--forest); }
.choice-btn.is-selected .mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--forest);
}

/* ── Form ─────────────────────────────────────────────────────────── */
.vote-form { margin-top: 26px; position: relative; }

label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; }

.email-row { display: flex; gap: 10px; flex-wrap: wrap; }

.email-row input {
  flex: 1 1 220px;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.email-row input:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 4px rgba(30, 61, 47, 0.1);
}

.email-row input.error { border-color: var(--err); }

.form-error { color: var(--err); font-weight: 500; font-size: 0.9rem; margin-top: 12px; text-align: center; }

/* ── Results ──────────────────────────────────────────────────────── */
.results { display: flex; flex-direction: column; gap: 12px; position: relative; }

.result-row { position: relative; }

.result-bar {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: rgba(195, 161, 92, 0.22);
  width: 0%;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.result-row.is-pick .result-bar { background: rgba(30, 61, 47, 0.14); }

.result-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
}

.result-row.is-pick .result-inner { border-color: var(--forest); }

.result-name { font-weight: 500; }

.your-pick {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.result-pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
}

.result-count { color: var(--forest-soft); font-size: 0.8rem; margin-left: 6px; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
  line-height: 1.2;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 12px 26px rgba(30, 61, 47, 0.28);
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--err);
  color: #fff;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  z-index: 120;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  max-width: 92vw;
  text-align: center;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  flex-shrink: 0;
  text-align: center;
  padding: 26px 20px;
  color: var(--forest-soft);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

#wbx-powered-by-slot { margin-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
