/* ── Business Anniversary Giveaway — art-deco gala ──────────────────
   Jet black, champagne-gold deco sunburst, thin double-rule frames,
   high-contrast serif + letterspaced small caps, gold shimmer. */

:root {
  --black: #0d0c0a;
  --black-2: #171511;
  --gold: #d4af5f;
  --gold-bright: #ecd9a8;
  --gold-dim: rgba(212, 175, 95, 0.35);
  --cream: #f6f1e5;
  --muted: #9c937e;
  --err: #e07862;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Jost', sans-serif;
}

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

.hidden { display: none !important; }

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--cream);
  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: 560px; margin: 0 auto; padding: 0 20px; }

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

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; text-align: center; padding: 74px 0 30px; overflow: hidden; }

.sunburst {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 560px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(212, 175, 95, 0.1) 0deg 6deg,
    transparent 6deg 18deg
  );
  border-radius: 50%;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 68%);
  mask-image: radial-gradient(circle, #000 0%, transparent 68%);
}

.business-line {
  position: relative;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
}

.deco-rule {
  position: relative;
  height: 8px;
  max-width: 300px;
  margin: 18px auto;
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}

.deco-rule.center { max-width: 160px; }

.milestone { position: relative; display: flex; flex-direction: column; align-items: center; }

.celebrating {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--cream);
}

.years-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(6rem, 26vw, 10rem);
  line-height: 0.95;
  background: linear-gradient(160deg, var(--gold-bright) 20%, var(--gold) 50%, #a8823c 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(212, 175, 95, 0.25));
}

.years-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 4px;
  padding-left: 0.55em;
}

.thanks-line {
  position: relative;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto;
}

/* ── Notes ────────────────────────────────────────────────────────── */
.note {
  margin: 20px 0;
  padding: 16px 20px;
  border: 1px solid var(--gold-dim);
  background: var(--black-2);
  text-align: center;
}

/* ── Card ─────────────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--black-2);
  border: 1px solid var(--gold-dim);
  padding: 34px 32px 38px;
  margin-top: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(212, 175, 95, 0.18);
  pointer-events: none;
}

.prize-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.prize-text {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 8px 0 26px;
}

/* Fields */
.field { margin-bottom: 18px; }

label {
  display: block;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--cream);
  background: var(--black);
  border: 1px solid rgba(246, 241, 229, 0.2);
  transition: border-color 0.15s ease;
}

input:focus { outline: none; border-color: var(--gold); }
input.error { border-color: var(--err); }
input::placeholder { color: var(--muted); opacity: 0.7; }

.fine { margin-top: 14px; text-align: center; color: var(--muted); font-size: 0.84rem; }

.rules-link {
  background: none;
  border: none;
  color: var(--gold);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

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

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  line-height: 1.2;
}

.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.btn-primary {
  background: linear-gradient(120deg, var(--gold), #b98f42);
  color: var(--black);
}

.btn-primary:hover:not(:disabled) {
  background: var(--black);
  color: var(--gold);
  box-shadow: 0 0 30px rgba(212, 175, 95, 0.25);
}

.btn-block { width: 100%; }

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(13, 12, 10, 0.35);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ── Done ─────────────────────────────────────────────────────────── */
.done-card { text-align: center; }

.done-card h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.1rem;
  margin: 10px 0 6px;
}

.card-sub { color: var(--muted); max-width: 380px; margin: 0 auto 10px; }

/* ── Rules modal ──────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(13, 12, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-card {
  background: var(--black-2);
  border: 1px solid var(--gold-dim);
  color: var(--cream);
  max-width: 620px;
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--gold-dim);
}

.modal-head h3 { font-family: var(--font-serif); font-weight: 700; font-size: 1.4rem; }

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  font-size: 0.92rem;
  white-space: pre-wrap;
  color: var(--cream);
}

/* ── Toast ────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--err);
  color: #fff;
  padding: 14px 26px;
  font-weight: 600;
  z-index: 400;
  max-width: 92vw;
  text-align: center;
}

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

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

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