:root {
  --indigo: #5b4fe0;
  --blue: #2ba9e8;
  --green: #23b17a;
  --orange: #f6a521;
  --pink: #ef5875;
  --navy: #1a2244;
  --muted: #6b7280;
  --page-bg: #fdf7ea;
  --card-bg: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, 'Segoe UI', system-ui, sans-serif;
  background: var(--page-bg);
  color: var(--navy);
  min-height: 100vh;
  line-height: 1.5;
}

.hero {
  position: relative;
  background: var(--indigo);
  color: white;
  padding: 40px 24px 56px;
  text-align: center;
  overflow: hidden;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.hero p {
  margin: 0;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* decorative dots, same idea as the payment-rhythm reference */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.hero::before {
  width: 70px;
  height: 70px;
  background: var(--blue);
  top: -20px;
  right: 60px;
}

.hero::after {
  width: 34px;
  height: 34px;
  background: var(--orange);
  top: 46px;
  right: 130px;
}

.dot-green {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  top: 70px;
  right: 30px;
}

.dot-pink {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pink);
  bottom: -10px;
  left: 24px;
}

.wrap {
  position: relative;
  max-width: 640px;
  margin: -28px auto 0;
  padding: 0 20px 20px;
}

.card {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(26, 34, 68, 0.08);
  padding: 22px 22px 22px 26px;
  margin-bottom: 20px;
  border-left: 6px solid var(--indigo);
}

.card.accent-a {
  border-left-color: var(--blue);
}

.card.accent-b {
  border-left-color: var(--green);
}

.countdown-card {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--indigo);
  border-left-color: var(--orange);
}

.countdown-card.upcoming {
  color: var(--navy);
}

.countdown-card.closed {
  color: var(--pink);
  border-left-color: var(--pink);
}

.pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  color: white;
  margin-bottom: 10px;
}

.pill.a {
  background: var(--blue);
}

.pill.b {
  background: var(--green);
}

.question-title {
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 4px 0 4px;
  color: var(--navy);
}

.q-sub {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: white;
  font-weight: 800;
  margin-right: 10px;
  flex-shrink: 0;
}

.badge.a {
  background: var(--blue);
}

.badge.b {
  background: var(--green);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 2px solid #f0ece0;
  border-radius: 10px;
  margin-bottom: 8px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.15s;
}

.options[data-accent='a'] label:hover {
  border-color: var(--blue);
}

.options[data-accent='b'] label:hover {
  border-color: var(--green);
}

input[type='text'] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #f0ece0;
  font-size: 1.05rem;
  background: white;
  color: var(--navy);
  margin-bottom: 12px;
}

input[type='text']:focus {
  outline: none;
  border-color: var(--indigo);
}

button {
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: var(--indigo);
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.warning {
  color: var(--pink);
  font-weight: 700;
  font-size: 0.9rem;
  background: #fdeef1;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.error {
  color: var(--pink);
  font-weight: 700;
}

.hidden {
  display: none;
}

#confirmation {
  text-align: center;
  border-left-color: var(--green);
}

#confirmation p {
  font-weight: 700;
  color: var(--green);
  font-size: 1.1rem;
  margin-top: 0;
}

button.secondary {
  background: white;
  color: var(--indigo);
  border: 2px solid #f0ece0;
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 12px 0 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 28px;
}

th,
td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid #f0ece0;
}

.footer-stripe {
  height: 8px;
  display: flex;
}

.footer-stripe span {
  flex: 1;
}

.footer-stripe .s1 { background: var(--blue); }
.footer-stripe .s2 { background: var(--green); }
.footer-stripe .s3 { background: var(--orange); }
.footer-stripe .s4 { background: var(--indigo); }
