:root {
  color-scheme: light;
  --ink: #241b20;
  --muted: #6f5f67;
  --paper: #fffaf7;
  --panel: #ffffff;
  --line: #eadbd4;
  --rhubarb: #b93158;
  --rhubarb-dark: #7f1737;
  --leaf: #3f7b4f;
  --gold: #e3a83c;
  --sky: #e7f4f1;
  --cream: #fff3e8;
  --mint: #eef7f1;
  --plum-bg: #33232d;
  --shadow: 0 18px 50px rgba(88, 47, 47, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--rhubarb);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 700;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover {
  color: var(--rhubarb-dark);
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: stretch;
  background: #f9eee8;
  overflow: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 780px;
  padding: 60px clamp(20px, 5vw, 72px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rhubarb-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.2rem);
  line-height: 0.97;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  line-height: 1.05;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.hero p {
  max-width: 640px;
  color: #4d3f45;
  font-size: 1.08rem;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  background: var(--rhubarb);
  color: #fff;
}

.button.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--rhubarb-dark);
}

.hero-media {
  position: relative;
  min-height: 420px;
  background:
    linear-gradient(180deg, var(--sky), #f7dfd7 65%, #7fb16f 65.5%, #6a9d60);
}

.sun {
  position: absolute;
  top: 72px;
  right: 90px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 18px rgba(227, 168, 60, 0.2);
}

.stalk {
  position: absolute;
  bottom: 90px;
  width: 36px;
  height: 310px;
  border-radius: 30px;
  background: linear-gradient(90deg, #a3264c, #df6b83);
  transform-origin: bottom;
}

.stalk::before {
  content: "";
  position: absolute;
  top: -56px;
  left: -56px;
  width: 140px;
  height: 100px;
  border-radius: 80px 80px 80px 8px;
  background: var(--leaf);
  transform: rotate(-18deg);
}

.stalk-one {
  left: 22%;
  transform: rotate(-9deg);
}

.stalk-two {
  left: 48%;
  height: 360px;
}

.stalk-three {
  left: 70%;
  height: 285px;
  transform: rotate(11deg);
}

.market-row {
  position: absolute;
  right: 6%;
  bottom: 42px;
  left: 6%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.market-row span {
  display: block;
  height: 86px;
  border: 3px solid #fff;
  border-bottom-width: 16px;
  background: repeating-linear-gradient(90deg, #fff 0 18px, #c52f5e 18px 36px);
  box-shadow: var(--shadow);
}

.notice,
.section,
.site-footer {
  padding: clamp(24px, 4vw, 56px) clamp(16px, 5vw, 72px);
}

.notice {
  background: #2f2529;
  color: #fff;
}

.event-grid,
.registration-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
}

.event-grid {
  align-items: start;
}

.event-grid p,
.sidebar p {
  color: var(--muted);
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list div,
.summary-panel,
.guideline-list article,
fieldset {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.info-list div {
  padding: 18px;
}

.info-list span,
.summary-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.summary-panel {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 18px;
}

.registration-form {
  display: grid;
  gap: 18px;
}

.vendor-form {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: clamp(16px, 3vw, 24px);
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7f2;
}

.wizard-step {
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.88rem;
}

.wizard-step.is-active {
  background: var(--rhubarb);
  color: #fff;
  border-color: var(--rhubarb);
}

.wizard-step.is-complete {
  background: var(--mint);
  color: #2f8f76;
  border-color: #9fd4c3;
}

fieldset {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 22px;
}

legend {
  padding: 0;
  font-weight: 800;
  font-size: 1.15rem;
}

.form-section {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: #fff;
}

.wizard-panel {
  display: none;
}

.wizard-panel.is-active {
  display: grid;
}

.form-section::before {
  display: none;
}

.form-section-primary {
  background: #fff;
}

.form-section-primary::before {
  background: var(--rhubarb);
}

.form-section-accent {
  background: #fff;
}

.form-section-accent::before {
  background: #2f8f76;
}

.section-note {
  margin: -8px 0 2px;
  color: var(--muted);
  font-size: 0.92rem;
}

.option-grid-single {
  grid-template-columns: 1fr;
}

.price-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f3;
  padding: 14px;
}

.price-panel h3,
.price-panel p,
.price-panel ul {
  margin: 0 0 12px;
}

.price-panel ul {
  padding-left: 18px;
}

.wizard-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

[hidden] {
  display: none !important;
}

label {
  display: grid;
  gap: 7px;
  color: #34282d;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d9c5bd;
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(185, 49, 88, 0.22);
  border-color: var(--rhubarb);
}

.two-column,
.option-grid,
.guideline-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.option-grid label,
.agreement {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8f3;
  font-weight: 700;
}

.option-grid input,
.agreement input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--rhubarb);
}

.field-help,
.status {
  margin: 0;
  color: var(--muted);
}

.status {
  min-height: 24px;
  padding: 0 2px;
  font-weight: 700;
}

.status.success {
  color: var(--leaf);
}

.status.error {
  color: var(--rhubarb-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.guidelines {
  background: #eef5ed;
}

.guideline-list {
  margin-top: 22px;
}

.guideline-list article {
  padding: 20px;
}

.application-details {
  display: grid;
  gap: 18px;
}

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

.detail-card {
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf7;
  font-weight: 700;
}

.compact-guidelines {
  margin-top: 0;
}

.summary-panel a {
  color: var(--rhubarb-dark);
}

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

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #231a1e;
  color: #fff;
}

.site-footer h2 {
  margin-bottom: 0;
}

address {
  font-style: normal;
  color: #f7e8e1;
}

address a {
  display: block;
  color: #fff;
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .event-grid,
  .registration-layout {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    min-height: 250px;
  }

  .hero-content {
    padding-top: 32px;
    padding-bottom: 36px;
  }

  .two-column,
  .option-grid,
  .guideline-list {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.35rem;
    line-height: 1;
  }

  h2 {
    font-size: 2rem;
  }

  .hero p,
  .event-grid p,
  .sidebar p,
  .field-help,
  .section-note,
  .guideline-list p {
    font-size: 0.96rem;
  }

  .button {
    width: 100%;
  }

  .wizard-actions {
    grid-template-columns: 1fr 1fr;
  }

  .print-action {
    display: none;
  }

  #previousButton[hidden] + .print-action + #nextButton {
    grid-column: 1 / -1;
  }

  .wizard-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vendor-form {
    padding: 14px;
    gap: 14px;
  }

  .wizard-step {
    min-height: 30px;
    font-size: 0.82rem;
  }

  fieldset {
    padding: 0;
    gap: 13px;
  }

  legend {
    font-size: 1.08rem;
  }

  .summary-panel,
  .info-list div,
  .guideline-list article {
    padding: 16px;
  }

  input,
  select,
  textarea {
    padding: 10px 11px;
    min-height: 42px;
  }

  textarea {
    min-height: 120px;
  }

  .registration-layout {
    gap: 20px;
  }

  .application-details {
    gap: 0;
  }

  .option-grid label,
  .agreement {
    min-height: 42px;
    padding: 10px 11px;
  }

  .price-panel {
    padding: 12px;
  }
}

@media print {
  .site-header,
  .hero,
  .notice,
  .sidebar,
  .guidelines,
  .site-footer,
  .form-actions {
    display: none;
  }

  body {
    background: #fff;
  }

  .section {
    padding: 0;
  }

  fieldset {
    box-shadow: none;
    break-inside: avoid;
  }
}
