:root {
  --ink: #12252d;
  --muted: #5f7075;
  --brand: #153b46;
  --accent: #f29a3a;
  --accent-dark: #d67b1b;
  --surface: #ffffff;
  --surface-soft: #f4f6f5;
  --line: #dce3e1;
  --success: #14734b;
  --shadow: 0 16px 40px rgba(18, 37, 45, 0.08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8f9f7;
  font-family: "Manrope", Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(18px, calc((100% - 1080px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand-mark {
  align-items: center;
  background: var(--brand);
  border-radius: 13px;
  color: white;
  display: inline-flex;
  font-size: 17px;
  font-weight: 800;
  height: 46px;
  justify-content: center;
  letter-spacing: -0.04em;
  width: 46px;
}

.brand strong,
.brand span {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 17px;
}

.brand div span,
.save-indicator {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.app-shell {
  margin: 0 auto;
  max-width: 1080px;
  padding: 26px 18px 48px;
}

.hero {
  background: var(--brand);
  border-radius: 28px;
  color: white;
  padding: clamp(25px, 5vw, 42px);
}

.hero h1 {
  font-size: clamp(29px, 5vw, 47px);
  letter-spacing: -0.055em;
  line-height: 1.05;
  margin: 9px 0 16px;
  max-width: 680px;
}

.hero > p:not(.eyebrow) {
  color: #dae5e6;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 650px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.trust-row span {
  background: rgba(255, 255, 255, 0.11);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
}

.stepper {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  margin: 20px 0;
}

.step {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 16px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  padding: 10px 4px;
}

.step span {
  align-items: center;
  background: #e6ebea;
  border-radius: 50%;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.step.active {
  background: #edf2f1;
  color: var(--brand);
}

.step.active span {
  background: var(--brand);
  color: white;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none;
  padding: clamp(18px, 4vw, 30px);
}

.panel.active {
  display: block;
}

.section-head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 23px;
}

h2 {
  font-size: clamp(23px, 4vw, 29px);
  letter-spacing: -0.045em;
  margin: 6px 0 0;
}

.hint {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 8px 0 0;
}

.fields {
  display: grid;
  gap: 17px;
}

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

.fields.compact {
  margin-top: 17px;
}

label {
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 700;
}

label span {
  color: #b54a33;
}

input:not([type="checkbox"]),
select,
textarea {
  background: var(--surface);
  border: 1px solid #cfd9d6;
  border-radius: 12px;
  color: var(--ink);
  display: block;
  margin-top: 8px;
  outline: none;
  padding: 13px;
  transition: border-color 0.18s, box-shadow 0.18s;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(21, 59, 70, 0.14);
}

.running-total {
  background: #e9f0ef;
  border-radius: 15px;
  min-width: 78px;
  padding: 10px 13px;
  text-align: center;
}

.running-total strong {
  color: var(--brand);
  display: block;
  font-size: 27px;
  line-height: 1;
}

.running-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.rooms {
  display: grid;
  gap: 12px;
}

.room {
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
}

.room-toggle {
  align-items: center;
  background: var(--surface-soft);
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  padding: 15px 16px;
  text-align: left;
  width: 100%;
}

.room-toggle .room-total {
  background: white;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
  padding: 5px 10px;
}

.room-toggle .chevron {
  font-size: 16px;
  transition: transform 0.18s;
}

.room.open .chevron {
  transform: rotate(180deg);
}

.room-items {
  display: none;
  padding: 5px 12px 12px;
}

.room.open .room-items {
  display: block;
}

.counter-row {
  align-items: center;
  border-bottom: 1px solid #eef2f0;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-height: 59px;
  padding: 9px 3px;
}

.counter-row:last-child {
  border-bottom: 0;
}

.item-copy strong {
  display: block;
  font-size: 14px;
}

.item-copy small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 2px;
}

.other-item-row {
  align-items: flex-start;
  padding-bottom: 14px;
  padding-top: 14px;
}

.other-item-row .item-copy {
  flex: 1;
  min-width: 0;
}

.other-item-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-top: 9px;
}

.other-item-input:not([type="checkbox"]) {
  font-size: 14px;
  height: 42px;
  margin-top: 5px;
  max-width: 220px;
  padding: 8px 10px;
}

.counter {
  align-items: center;
  background: #f2f5f4;
  border-radius: 12px;
  display: flex;
  flex-shrink: 0;
  gap: 3px;
  padding: 3px;
}

.counter button {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--brand);
  cursor: pointer;
  display: inline-flex;
  font-size: 23px;
  font-weight: 600;
  height: 40px;
  justify-content: center;
  line-height: 1;
  width: 40px;
}

.counter button.plus {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.counter output {
  font-size: 16px;
  font-weight: 800;
  min-width: 30px;
  text-align: center;
}

.box-grid {
  display: grid;
  gap: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.box-grid .counter-row {
  background: var(--surface-soft);
  border: 0;
  border-radius: 15px;
  padding: 11px;
}

.notes-label {
  margin-top: 10px;
}

.actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
}

.actions button {
  border-radius: 13px;
  cursor: pointer;
  font-weight: 800;
  padding: 14px 20px;
}

.primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--ink);
}

.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.review-section {
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.review-section:last-child {
  border-bottom: 0;
}

.review-section h3 {
  font-size: 15px;
  margin: 0 0 9px;
}

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

.summary-grid div,
.review-list li {
  color: var(--muted);
  font-size: 13px;
}

.review-list {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.review-list strong {
  color: var(--ink);
}

.consent {
  background: #f5f7f6;
  border-radius: 12px;
  margin-top: 16px;
  padding: 14px;
}

.consent label {
  align-items: flex-start;
  display: flex;
  font-weight: 600;
  gap: 10px;
}

.consent input {
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

.submission-status {
  color: var(--success);
  font-size: 14px;
  font-weight: 700;
  margin: 18px 0 0;
}

.privacy-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 18px 0 0;
}

@media (max-width: 680px) {
  .topbar {
    min-height: 63px;
  }

  .save-indicator {
    display: none;
  }

  .app-shell {
    padding: 14px 10px 28px;
  }

  .hero {
    border-radius: 21px;
    padding: 23px 19px;
  }

  .step {
    flex-direction: column;
    font-size: 11px;
    gap: 4px;
  }

  .panel {
    border-radius: 18px;
    padding: 17px 13px;
  }

  .fields.two-col,
  .box-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .room-toggle {
    padding: 14px 12px;
  }

  .counter-row {
    gap: 6px;
  }

  .counter button {
    height: 43px;
    width: 43px;
  }
}
