:root {
  --ink: #241812;
  --paper: #fffaf2;
  --cream: #f2eadc;
  --soft: #766457;
  --wine: #742132;
  --wine-dark: #43131d;
  --gold: #c89d5a;
  --moss: #26372d;
  --shadow: 0 30px 90px rgba(35, 21, 14, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 18%, rgba(200, 157, 90, 0.18), transparent 28%),
    linear-gradient(135deg, #20130f, #3a251c 42%, #110d0b);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.configurator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(460px, 0.97fr);
  min-height: 100vh;
}

.configurator-panel {
  padding: clamp(22px, 4vw, 54px);
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.98), rgba(255, 250, 242, 0.94)),
    url("assets/zestawy-prezentowe.jpg") center/cover;
}

.configurator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: clamp(54px, 9vw, 96px);
}

.configurator-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.configurator-logo {
  display: block;
  width: 40px;
  height: 43px;
  flex: 0 0 auto;
  object-fit: contain;
}

.configurator-brand-copy {
  font: 30px/1 "Cormorant Garamond", Georgia, serif;
  white-space: nowrap;
}

.configurator-brand-copy small {
  display: block;
  margin-top: 9px;
  font: 8px/1.4 Inter, sans-serif;
  letter-spacing: .16em;
}

@media (max-width: 700px) {
  .configurator-logo { width: 30px; height: 34px; }
  .configurator-brand-copy { font-size: 25px; }
  .configurator-brand-copy small { margin-top: 7px; font-size: 6px; letter-spacing: .12em; }
  .configurator-header { flex-wrap: wrap; }
}

.quiet-link {
  color: var(--soft);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.quiet-link:hover {
  color: var(--wine);
}

.configurator-intro {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(58px, 9vw, 118px);
  line-height: 0.86;
  letter-spacing: 0;
}

.configurator-intro p:not(.eyebrow) {
  max-width: 680px;
  color: var(--soft);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.5;
}

.configuration-form {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin-top: clamp(36px, 6vw, 68px);
}

.honeypot {
  display: none;
}

.step-block {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(36, 24, 18, 0.12);
  background: rgba(255, 250, 242, 0.72);
  box-shadow: 0 16px 50px rgba(36, 24, 18, 0.08);
}

.step-heading {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 20px;
}

.step-heading > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(116, 33, 50, 0.24);
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
}

.step-heading h2 {
  margin-bottom: 4px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.95;
}

.step-heading p {
  margin: 0;
  color: var(--soft);
  line-height: 1.5;
}

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

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

.choice-card,
.packaging-swatch,
.add-on {
  border: 1px solid rgba(36, 24, 18, 0.14);
  background: rgba(255, 255, 255, 0.54);
  color: var(--ink);
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.choice-card {
  min-width: 0;
  overflow-wrap: anywhere;
  min-height: 118px;
  padding: 16px;
  text-align: left;
}

.choice-price {
  display: block;
  margin-top: 14px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
}

.budget-hint {
  margin: 16px 0 0;
  color: var(--wine);
  font-size: 14px;
  line-height: 1.6;
}

.choice-card:focus-visible,
.packaging-swatch:focus-visible,
.add-on:focus-within {
  outline: 2px solid var(--wine);
  outline-offset: 3px;
}

.choice-card strong,
.choice-card small {
  display: block;
}

.choice-card strong {
  margin-bottom: 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 27px;
  line-height: 1;
}

.choice-card small {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.choice-card:hover,
.packaging-swatch:hover,
.add-on:hover {
  transform: translateY(-2px);
  border-color: rgba(116, 33, 50, 0.34);
}

.choice-card.is-selected,
.packaging-swatch.is-selected,
.add-on.is-selected {
  border-color: var(--wine);
  background: #fff7ea;
  box-shadow: inset 0 0 0 1px var(--wine), 0 18px 42px rgba(116, 33, 50, 0.13);
}

.budget-control {
  padding: clamp(18px, 3vw, 28px);
  background: linear-gradient(135deg, #fffdf8, #f1e4cf);
}

.budget-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.budget-topline span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.budget-topline strong {
  color: var(--wine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 0.85;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--wine);
}

.budget-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

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

.add-on {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 10px;
  font-size: 13px;
  font-weight: 900;
}

.add-on input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

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

.packaging-swatch {
  display: grid;
  gap: 12px;
  padding: 14px;
  text-align: left;
}

.swatch {
  display: block;
  height: 58px;
  border: 1px solid rgba(36, 24, 18, 0.12);
}

.swatch.kraft {
  background: linear-gradient(135deg, #c59b63, #e2c694);
}

.swatch.dark {
  background: linear-gradient(135deg, #1b1513, #633040);
}

.swatch.holiday {
  background: linear-gradient(135deg, #183629, #8d2432 55%, #c99a55);
}

.swatch.bright {
  background: linear-gradient(135deg, #fbf5ea, #d9c6a6);
}

.packaging-swatch strong {
  font-size: 13px;
}

.detail-fields {
  display: grid;
  gap: 12px;
}

.detail-fields label,
.detail-fields span {
  display: grid;
  gap: 8px;
}

.detail-fields span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-fields input,
.detail-fields textarea {
  width: 100%;
  border: 1px solid rgba(36, 24, 18, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  padding: 14px;
}

.detail-fields input:focus,
.detail-fields textarea:focus {
  outline: 0;
  border-color: var(--wine);
  box-shadow: 0 0 0 4px rgba(116, 33, 50, 0.1);
}

.submit-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 26px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--ink);
  color: var(--paper);
}

.submit-panel p {
  max-width: 760px;
  margin-bottom: 4px;
  color: rgba(255, 250, 242, 0.76);
  line-height: 1.6;
}

.submit-button {
  min-height: 58px;
  width: min(100%, 360px);
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, filter 180ms ease;
}

.submit-button:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
}

.form-status {
  color: rgba(255, 250, 242, 0.82);
  font-weight: 800;
}

.preview-panel {
  min-height: 100vh;
  padding: clamp(20px, 4vw, 54px);
  background:
    linear-gradient(180deg, rgba(18, 12, 10, 0.42), rgba(18, 12, 10, 0.92)),
    url("assets/wejscie-o-miejscu.png") center/cover;
  color: var(--paper);
}

.preview-sticky {
  position: sticky;
  top: 28px;
  display: grid;
  gap: 22px;
}

.preview-top h2 {
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.9;
}

.preview-top p:not(.eyebrow) {
  color: rgba(255, 250, 242, 0.72);
  line-height: 1.5;
}

.preview-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 250, 242, 0.14);
  background: rgba(255, 250, 242, 0.14);
}

.preview-summary div {
  min-height: 92px;
  padding: 16px;
  background: rgba(20, 12, 9, 0.54);
}

.preview-summary span,
.preview-summary strong {
  display: block;
}

.preview-summary span {
  margin-bottom: 8px;
  color: rgba(255, 250, 242, 0.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-summary strong {
  color: var(--paper);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 1180px) {
  .configurator-shell {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    order: -1;
    min-height: auto;
  }

  .preview-sticky {
    position: static;
  }

  .gift-stage {
    min-height: 560px;
  }
}

@media (max-width: 760px) {
  .configurator-panel,
  .preview-panel {
    padding: 18px;
  }

  .configurator-header {
    align-items: flex-start;
    margin-bottom: 44px;
  }

  .quiet-link {
    font-size: 11px;
  }

  h1 {
    font-size: clamp(50px, 16vw, 78px);
  }

  .choice-grid,
  .choice-grid.compact,
  .add-on-grid,
  .packaging-row,
  .preview-summary {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 96px;
  }

  .gift-stage {
    min-height: 480px;
  }

  .gift-box {
    width: 92%;
    height: 390px;
  }

  .bottle {
    left: 38%;
    width: 68px;
    height: 218px;
  }

  .bottle::before {
    left: 19px;
    width: 30px;
    height: 74px;
  }

  .bottle-neck {
    left: 17px;
    width: 34px;
  }

  .coffee {
    left: 8%;
  }

  .tea {
    right: 8%;
  }
}

/* A real product presentation in place of the schematic gift preview. */
.preview-panel{background:radial-gradient(ellipse at 20% 10%,#3a2a20,#191511 75%)}
.preview-top .eyebrow{color:#d8ad7f}
.gift-photo{margin:0;overflow:hidden;border:1px solid #d8ad7f30;background:#211b17;box-shadow:var(--shadow)}
.gift-photo img{display:block;width:100%;height:auto;object-fit:contain}
.gift-photo figcaption{padding:17px 20px;color:#d4c5b1;font-size:12px;line-height:1.7}
.swatch.decorative{background:linear-gradient(45deg,transparent 44%,#d8ad7f 45% 49%,transparent 50%),linear-gradient(135deg,#4b2430,#8e5560)}
.swatch.crate{background:repeating-linear-gradient(0deg,#9c6e3d 0 2px,#d2ae7b 2px 17px,#b7874e 17px 18px)}
.swatch.bag{background:linear-gradient(90deg,#be9870 0 15%,#e6cba6 15% 85%,#be9870 85%)}
.packaging-swatch strong{overflow-wrap:anywhere;line-height:1.4}
.preview-summary strong{overflow-wrap:anywhere}
@media(max-width:760px){.packaging-row,.preview-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.gift-photo figcaption{padding:14px 16px}.preview-summary div{padding:14px;min-height:80px}.preview-top h2{font-size:42px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important}}
