:root {
  --ink: #132846;
  --muted: #5e6b7b;
  --line: rgba(15, 39, 71, 0.09);
  --paper: #fff8f1;
  --paper-soft: #fff1e4;
  --card: #ffffff;
  --brand: #ff7a00;
  --brand-dark: #102847;
  --brand-soft: #fff1de;
  --gold: #ff9d2f;
  --green: #119a73;
  --red: #df4c2b;
  --shadow: 0 22px 60px rgba(16, 40, 71, 0.12);
  --shadow-soft: 0 14px 34px rgba(16, 40, 71, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--paper) 0%, #ffffff 46%, var(--paper-soft) 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 110px;
}

.feast-hero {
  min-height: 250px;
  display: grid;
  grid-template-columns: 160px 1fr 140px;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 157, 47, 0.38), transparent 34%),
    linear-gradient(135deg, rgba(255, 122, 0, 0.98), rgba(223, 76, 43, 0.92) 46%, rgba(16, 40, 71, 0.96));
  box-shadow: var(--shadow);
}

.brand-link,
.secondary-link {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.secondary-link {
  justify-self: end;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

.eyebrow,
.step-label {
  margin: 0 0 7px;
  color: inherit;
  opacity: 0.78;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.1rem, 5vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

#moduleSubtitle {
  margin-bottom: 0;
  max-width: 620px;
  font-size: 1.04rem;
  line-height: 1.6;
}

.hero-helper {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 900;
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.builder-main {
  display: grid;
  gap: 18px;
}

.section-card,
.summary-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.section-card {
  padding: 22px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.section-heading h2,
.summary-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

.soft-pill {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.people-option,
.qty-btn,
.submit-btn,
.sheet-close {
  border: 0;
  cursor: pointer;
}

.people-option {
  min-height: 46px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--ink);
  font-weight: 900;
  padding: 9px 10px;
}

.people-option.active {
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 122, 0, 0.28);
}

.custom-people {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-weight: 800;
}

.custom-people-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.apply-people-btn {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-dark);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.people-message {
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.custom-people input,
.feast-form input,
.feast-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 39, 71, 0.13);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feast-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.item-image {
  min-height: 118px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.16), rgba(16, 40, 71, 0.08)),
    var(--img, none) center/cover;
}

.item-image span {
  display: none;
}

.item-image.is-placeholder span,
.tray-image.is-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.item-copy h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.item-copy p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.42;
}

.price-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 1.3rem;
  font-weight: 900;
}

.qty-value {
  min-width: 76px;
  text-align: center;
  font-weight: 900;
}

.compact-option-group {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fffaf4 100%);
}

.compact-option-group:last-child {
  margin-bottom: 0;
}

.compact-option-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.compact-option-heading strong {
  font-size: 1.05rem;
}

.compact-option-heading span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: right;
}

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

.compact-option-group.sauce .compact-option-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.compact-item h3 {
  margin: 0 0 4px;
  font-size: 0.96rem;
}

.compact-item p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.compact-item span {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.qty-row.compact {
  justify-content: space-between;
  gap: 6px;
}

.qty-row.compact .qty-btn {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.qty-row.compact .qty-value {
  min-width: 58px;
  font-size: 0.82rem;
}

.compact-heading {
  margin-bottom: 12px;
}

.cutlery-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 140px)) minmax(150px, 220px);
  gap: 10px;
  align-items: stretch;
}

.choice-chip,
.cutlery-quantity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  font-weight: 900;
}

.choice-chip input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.cutlery-quantity {
  justify-content: space-between;
}

.cutlery-quantity input {
  width: 78px;
  min-height: 34px;
  border: 1px solid rgba(15, 39, 71, 0.13);
  border-radius: 10px;
  padding: 6px 8px;
  text-align: center;
  font-weight: 900;
}

.cutlery-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.feast-back-btn {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.summary-panel {
  position: sticky;
  top: 18px;
}

.summary-card {
  padding: 18px;
}

.summary-header {
  margin-bottom: 12px;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-line,
.total-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-line span:first-child {
  color: var(--muted);
}

.total-line {
  align-items: center;
  border-bottom: 0;
  font-size: 1.18rem;
  font-weight: 900;
}

.mini-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.5;
}

.tray-card-list {
  display: grid;
  gap: 9px;
  margin-top: 8px;
}

.tray-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.tray-image {
  min-height: 58px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 122, 0, 0.16), rgba(16, 40, 71, 0.08)),
    var(--img, none) center/cover;
}

.tray-card strong,
.tray-card span {
  display: block;
}

.tray-card span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 800;
}

.promo-pill {
  display: inline-flex;
  margin: 4px 4px 0 0;
  padding: 7px 9px;
  border-radius: 999px;
  background: #ecfff5;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.feast-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

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

.sms-consent {
  display: flex !important;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px !important;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--brand-soft);
}

.sms-consent input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.submit-btn {
  min-height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  color: #fff;
  font-weight: 900;
}

.form-message {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.form-message.success {
  color: var(--green);
}

.mobile-summary-button,
.mobile-sheet {
  display: none;
}

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 20px, 720px);
    padding-bottom: 96px;
  }

  .feast-hero {
    grid-template-columns: 1fr;
    min-height: 220px;
    padding: 22px;
  }

  .secondary-link {
    justify-self: start;
  }

  .builder-layout {
    display: block;
  }

  .summary-panel {
    display: none;
  }

  .section-card {
    padding: 14px;
    margin-top: 12px;
    border-radius: 18px;
  }

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

  .people-option {
    min-height: 42px;
    border-radius: 14px;
  }

  .item-grid {
    grid-template-columns: 1fr;
  }

  .feast-item {
    grid-template-columns: 92px 1fr;
    padding: 9px;
  }

  .item-image {
    min-height: 104px;
  }

  .feast-form {
    grid-template-columns: 1fr;
  }

  .compact-option-grid,
  .compact-option-group.sauce .compact-option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-option-heading {
    display: grid;
    gap: 3px;
    align-items: start;
  }

  .compact-option-heading span {
    text-align: left;
  }

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

  .cutlery-quantity {
    grid-column: 1 / -1;
  }

  .feast-back-btn {
    width: 100%;
  }

  .mobile-summary-button {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    box-shadow: 0 14px 34px rgba(16, 40, 71, 0.22);
    font-weight: 900;
  }

  .mobile-sheet.open {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: flex-end;
    background: rgba(16, 40, 71, 0.42);
  }

  .sheet-card {
    width: 100%;
    max-height: 82vh;
    overflow: auto;
    padding: 18px;
    border-radius: 24px 24px 0 0;
    background: #fff;
  }

  .sheet-close {
    float: right;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--ink);
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.45rem;
  }

  .section-heading {
    display: grid;
  }

  .soft-pill {
    justify-self: start;
  }

  .feast-item {
    grid-template-columns: 78px 1fr;
  }

  .custom-people-row {
    grid-template-columns: 1fr;
  }

  .apply-people-btn {
    width: 100%;
  }

  .compact-option-grid,
  .compact-option-group.sauce .compact-option-grid {
    gap: 8px;
  }

  .compact-item {
    padding: 10px;
  }

  .item-image {
    min-height: 92px;
  }

  .qty-btn {
    width: 36px;
    height: 36px;
  }

  .qty-value {
    min-width: 62px;
  }
}
