:root {
  --ink: #172036;
  --navy: #243150;
  --cream: #fbf7ee;
  --paper: #ffffff;
  --gold: #b9974b;
  --gold-soft: #efe3c3;
  --red: #b9362b;
  --red-dark: #96291f;
  --text: #1e2636;
  --muted: #667085;
  --line: #e7ddc7;
  --shadow: 0 18px 45px rgba(30, 38, 54, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  background:
    linear-gradient(120deg, rgba(185, 151, 75, 0.14), transparent 34rem),
    var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Oswald", Impact, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: uppercase;
}

p {
  margin: 0;
  color: var(--muted);
}

.simple-registration-page {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(22px, 5vw, 64px) 0 34px;
  overflow: hidden;
}

.hero-form-section {
  display: grid;
  gap: 24px;
  min-height: calc(100vh - 120px);
  align-items: center;
}

.hero-form-section > * {
  min-width: 0;
}

.intro-panel {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.onest-logo {
  display: block;
  width: min(260px, 72vw);
  height: auto;
  margin-bottom: 4px;
}

.eyebrow,
.brand-kicker,
.panel-label,
.card-label,
.option-number {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-panel h1 {
  font-size: clamp(3rem, 11vw, 6.8rem);
  overflow-wrap: break-word;
}

.intro-panel h1 span {
  display: block;
}

.intro-copy {
  max-width: 620px;
  color: var(--navy);
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 700;
  overflow-wrap: break-word;
}

.simple-details {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 28px;
  padding: 18px;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.simple-details p {
  color: var(--navy);
}

.simple-details strong {
  color: var(--ink);
}

.form-panel,
.raffle-form,
.thank-you-card,
.admin-card,
.stat-card,
.table-wrap,
.event-panel,
.grand-prize-card,
.prize-card,
.option-card {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-panel {
  width: 100%;
  padding: clamp(18px, 4vw, 34px);
}

.form-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  overflow-wrap: break-word;
}

.form-heading h2 {
  font-size: clamp(2rem, 6vw, 3.4rem);
}

.flash-error {
  margin-bottom: 16px;
  padding: 13px 15px;
  color: #7d1c15;
  font-weight: 800;
  background: #fff0ed;
  border: 1px solid #f1aaa2;
}

.raffle-form,
.admin-card {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.form-grid,
.stats-row,
.dashboard-filters {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  color: var(--text);
  font: inherit;
  background: #fffdf8;
  border: 1px solid #d8ccb2;
  border-radius: 0;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 151, 75, 0.18);
}

.field-error,
.consent-error {
  min-height: 1.2em;
  color: var(--red);
  font-weight: 800;
}

.has-error {
  border-color: var(--red);
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted);
}

.consent-row input {
  width: 20px;
  min-width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  padding: 13px 22px;
  color: #fffaf2;
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  border: 0;
  box-shadow: 0 12px 24px rgba(185, 54, 43, 0.2);
  cursor: pointer;
}

.primary-button:hover,
.primary-button:focus-visible {
  filter: brightness(1.05);
}

.simple-footer,
.site-footer {
  padding: 24px 0 0;
}

.site-footer {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.simple-page,
.admin-page {
  min-height: 100vh;
}

.simple-page {
  background:
    linear-gradient(120deg, rgba(185, 151, 75, 0.14), transparent 34rem),
    var(--cream);
}

.thank-you-wrap,
.admin-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.thank-you-card,
.admin-card {
  width: min(700px, 100%);
  padding: clamp(24px, 5vw, 42px);
}

.thank-you-card h1,
.admin-card h1,
.admin-header h1 {
  margin: 10px 0 18px;
  font-size: clamp(2.2rem, 8vw, 4rem);
}

.entry-code-card {
  display: grid;
  gap: 4px;
  margin: 24px 0 14px;
  padding: 18px;
  color: var(--ink);
  border: 1px solid var(--gold);
  background: var(--gold-soft);
}

.entry-code-card span {
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
}

.entry-code-card strong {
  font-size: clamp(1.55rem, 6vw, 2.4rem);
  letter-spacing: 0.04em;
}

.admin-header,
.admin-main {
  width: min(1260px, 100%);
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
  padding-bottom: 22px;
}

.admin-main {
  padding-bottom: 48px;
}

.admin-link {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
}

.stat-card {
  padding: 20px;
}

.stat-card span {
  color: var(--gold);
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-family: "Oswald", Impact, sans-serif;
  font-size: 3rem;
  line-height: 1;
}

.dashboard-filters {
  align-items: end;
  margin: 20px 0;
}

.filter-button {
  width: 100%;
}

.table-note {
  margin-bottom: 12px;
  color: var(--gold);
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

@media (min-width: 768px) {
  .simple-registration-page {
    padding-top: clamp(42px, 7vw, 82px);
  }

  .dashboard-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .full-span {
    grid-column: 1 / -1;
  }

  .primary-button {
    width: fit-content;
  }
}

@media (min-width: 1200px) {
  .hero-form-section {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: 46px;
    align-items: start;
  }

  .intro-panel {
    position: sticky;
    top: 34px;
  }

  .onest-logo {
    width: min(300px, 100%);
    margin-bottom: 8px;
  }

  .intro-panel h1 {
    font-size: clamp(3.2rem, 4.4vw, 4rem);
  }

  .simple-footer {
    text-align: center;
  }

  .dashboard-filters {
    grid-template-columns: 1fr 150px auto;
  }
}
