:root {
  --ink: #24201d;
  --muted: #6d625b;
  --paper: #f8f4ee;
  --panel: #fffdf8;
  --line: #dfd5c8;
  --sage: #b00819;
  --sage-dark: #7d0712;
  --rose: #d10b1d;
  --champagne: #b59b45;
  --graphite: #1f2425;
  --shadow: 0 18px 50px rgba(36, 32, 29, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
}

.embed-page {
  background: #fffdf8;
}

.embed-shell {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 24px 0;
}

.embed-header {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.94), rgba(255, 245, 243, 0.9)),
    url("assets/wedding-tablescape.png") center / cover;
}

.embed-logo {
  display: block;
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
}

.embed-header h1 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.embed-header .brand-line {
  color: var(--muted);
}

.embed-page .workspace {
  width: 100%;
  margin: 18px 0 0;
}

.embed-page .quote-form,
.embed-page .quote-summary {
  box-shadow: 0 12px 34px rgba(36, 32, 29, 0.08);
}

.brand-band {
  position: relative;
  display: grid;
  min-height: 300px;
  overflow: hidden;
  background: var(--graphite);
}

.brand-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 36, 37, 0.92), rgba(77, 6, 12, 0.42) 58%, rgba(31, 36, 37, 0.68)),
    url("assets/wedding-tablescape.png") center / cover;
}

.brand-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 38px;
  color: #fffaf2;
}

.brand-logo {
  display: block;
  width: min(520px, 72vw);
  max-height: 210px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.18);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--champagne);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 10px;
  font-size: clamp(2.15rem, 5.8vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.brand-slogan {
  margin-bottom: 8px;
  color: var(--champagne);
  font-size: clamp(1.15rem, 2.5vw, 1.7rem);
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-line {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 250, 242, 0.82);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.45;
}

.brand-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.brand-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: #fffaf2;
  font-weight: 900;
  text-decoration: none;
}

.whatsapp-link {
  background: var(--rose);
}

.phone-link {
  border: 1px solid rgba(255, 250, 242, 0.62);
  background: rgba(255, 250, 242, 0.12);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  width: min(1180px, calc(100% - 32px));
  margin: -30px auto 48px;
  position: relative;
  z-index: 2;
  align-items: start;
}

.quote-form,
.quote-summary {
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(223, 213, 200, 0.92);
  box-shadow: var(--shadow);
}

.quote-form {
  padding: 24px;
}

.form-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.form-header h2,
.summary-top h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.guest-pill {
  min-width: 138px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #fff5f3;
  color: var(--sage-dark);
  font-weight: 800;
  text-align: center;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.field,
.range-field {
  display: grid;
  gap: 8px;
}

.field span,
.range-field label span,
legend {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.field input,
.range-field input[type="range"] {
  width: 100%;
}

.field input {
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fffaf4;
  color: var(--ink);
  padding: 0 12px;
  outline: 0;
}

.field input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(101, 117, 103, 0.18);
}

.range-field {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff9f4;
}

.range-field label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.range-field strong {
  color: var(--sage-dark);
  font-size: 1.1rem;
}

input[type="range"] {
  accent-color: var(--sage);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group {
  margin-bottom: 20px;
}

.choice-group legend,
.extras-panel legend {
  margin-bottom: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  background: #f1e7dd;
  border: 1px solid var(--line);
}

.segmented label,
.select-panel label,
.extras-grid label,
.toggle {
  cursor: pointer;
}

.segmented input,
.select-panel input,
.extras-grid input,
.toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 850;
}

.segmented input:checked + span {
  background: var(--panel);
  border-color: var(--champagne);
  color: var(--sage-dark);
  box-shadow: 0 8px 22px rgba(36, 32, 29, 0.08);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.select-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff9f4;
}

.select-panel legend {
  padding-bottom: 12px;
  color: var(--ink);
  font-size: 0.98rem;
}

.select-panel label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 10px;
  border: 1px solid transparent;
  background: rgba(248, 244, 238, 0.72);
}

.select-panel label::before,
.extras-grid label::before,
.toggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #b7aa9c;
  background: #fffdf8;
}

.select-panel label::before {
  border-radius: 999px;
}

.select-panel input:checked + span {
  color: var(--sage-dark);
}

.select-panel label:has(input:checked) {
  border-color: rgba(176, 8, 25, 0.42);
  background: rgba(176, 8, 25, 0.08);
}

.select-panel label:has(input:checked)::before {
  border: 5px solid var(--sage);
}

.select-panel strong,
.select-panel small {
  display: block;
}

.select-panel small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.3;
}

.extras-panel {
  padding: 16px;
  border: 1px solid var(--line);
  background: #fff9f4;
}

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

.extras-grid label,
.toggle {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-weight: 750;
}

.extras-grid label:has(input:checked),
.toggle:has(input:checked) {
  border-color: rgba(181, 155, 69, 0.68);
  background: rgba(181, 155, 69, 0.12);
  color: var(--ink);
}

.extras-grid label:has(input:checked)::before,
.toggle:has(input:checked)::before {
  border-color: var(--champagne);
  background:
    linear-gradient(135deg, transparent 40%, #fffdf8 42% 56%, transparent 58%),
    var(--champagne);
}

.toggle-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.toggle {
  min-height: 54px;
  background: #fff9f4;
  border-color: var(--line);
}

.quote-summary {
  position: sticky;
  top: 20px;
  padding: 22px;
}

.summary-top {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.summary-top h2 {
  margin-bottom: 6px;
  color: var(--sage-dark);
  font-size: clamp(2rem, 4vw, 3rem);
}

.range-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 750;
}

.meter {
  margin: 18px 0;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.meter-head strong {
  color: var(--ink);
}

.meter-track {
  height: 10px;
  overflow: hidden;
  background: #eadfd3;
}

.meter-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--champagne), var(--rose));
  transition: width 180ms ease;
}

.breakdown {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

.breakdown dt,
.breakdown dd {
  margin: 0;
}

.breakdown dd {
  color: var(--ink);
  font-weight: 850;
  text-align: right;
}

.recommendation {
  margin: 18px 0;
  padding: 14px;
  background: #fff5f3;
  border-left: 4px solid var(--champagne);
}

.recommendation strong {
  display: block;
  margin-bottom: 6px;
}

.recommendation p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.contact-card {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(181, 155, 69, 0.46);
  background: #fffaf4;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.contact-card a {
  color: var(--sage-dark);
  font-size: 1.08rem;
  font-weight: 950;
  text-decoration: none;
}

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

.action-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  background: var(--graphite);
  color: #fffaf2;
  font-weight: 850;
  cursor: pointer;
}

.action-button.secondary {
  background: var(--champagne);
  color: var(--graphite);
}

.action-button.whatsapp-action {
  background: var(--rose);
}

.action-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  transform: translateY(18px);
  opacity: 0;
  padding: 12px 16px;
  background: var(--graphite);
  color: #fffaf2;
  box-shadow: var(--shadow);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  pointer-events: none;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .embed-header {
    grid-template-columns: 1fr;
  }

  .embed-logo {
    width: min(100%, 360px);
  }

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

  .quote-summary {
    position: static;
  }

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

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

@media (max-width: 640px) {
  .brand-band {
    min-height: 260px;
  }

  .brand-copy {
    width: min(100% - 24px, 1180px);
    padding: 40px 0 34px;
  }

  .brand-logo {
    width: min(100%, 430px);
    max-height: 170px;
    padding: 10px 12px;
  }

  .brand-contact a {
    width: 100%;
    justify-content: center;
  }

  .workspace {
    width: min(100% - 24px, 1180px);
    margin-top: -22px;
  }

  .quote-form,
  .quote-summary {
    padding: 16px;
  }

  .form-header,
  .meter-head {
    display: grid;
  }

  .guest-pill {
    width: 100%;
  }

  .field-grid,
  .service-grid,
  .extras-grid,
  .toggle-row,
  .summary-actions {
    grid-template-columns: 1fr;
  }

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

@media print {
  body {
    background: #fff;
  }

  .brand-band,
  .quote-form,
  .summary-actions,
  .toast {
    display: none;
  }

  .workspace {
    display: block;
    width: 100%;
    margin: 0;
  }

  .quote-summary {
    box-shadow: none;
    border: 0;
  }
}
