/* ==========================================================================
   NEXORA DIGITAL — configurator.css
   Six steps on the left, a live quote sheet on the right that fills in as
   the visitor chooses.
   ========================================================================== */

.cfg { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }

.cfg__rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; margin-bottom: 2rem; }
.cfg__rail button {
  display: grid; gap: .5rem; text-align: left; padding-top: .8rem;
  border-top: 2px solid var(--line-2); font-size: .78rem; color: var(--ivory-3);
  transition: color .4s, border-color .4s;
}
.cfg__rail button b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1rem; color: inherit; line-height: 1; }
.cfg__rail button.is-done { border-color: var(--gold-lo); color: var(--ivory-2); }
.cfg__rail button[aria-current="step"] { border-color: var(--gold); color: var(--ivory); }
.cfg__rail button:disabled { cursor: default; }

.cfg__panel {
  position: relative; min-height: 470px;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  border: 1px solid var(--glass-line); border-radius: var(--r-l);
  background: var(--glass);
}
.cfg__step { display: grid; gap: 1.5rem; animation: stepIn .6s var(--ease); }
.cfg__step[hidden] { display: none; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } }
.cfg__q { font-family: var(--display); font-weight: 300; text-transform: uppercase; font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem); line-height: 1.15; }
.cfg__help { color: var(--ivory-3); font-size: .92rem; max-width: 60ch; margin-top: -.6rem; }

/* choice tiles */
.choices { display: grid; gap: .7rem; }
.choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices--pages { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
.choices--chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
  display: grid; gap: .3rem; height: 100%;
  padding: 1rem 1.1rem; border: 1px solid var(--line-2); border-radius: var(--r-m);
  background: rgba(255, 255, 255, .015);
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.choice__box strong { font-weight: 500; }
.choice__box small { color: var(--ivory-3); font-size: .82rem; }
.choice__box .price { color: var(--gold); font-size: 1.05rem; }
.choice:hover .choice__box { border-color: rgba(244, 240, 232, .32); }
.choice input:checked + .choice__box { border-color: var(--gold); background: rgba(198, 161, 91, .08); box-shadow: inset 0 0 0 1px var(--gold); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.choices--pages .choice__box { place-items: center; padding: .9rem .4rem; font-family: var(--display); font-size: 1.15rem; }
.choices--chips .choice__box { border-radius: var(--r-pill); padding: .6rem 1rem; font-size: .9rem; }
.choice--ai input:checked + .choice__box { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.choice--ai .choice__box .price { color: #B9CEFF; }
.choice__check { position: absolute; top: .9rem; right: .9rem; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line-2); display: grid; place-items: center; }
.choice__check svg { width: 12px; height: 12px; opacity: 0; color: var(--obsidian); }
.choice input:checked + .choice__box .choice__check { background: var(--gold); border-color: var(--gold); }
.choice--ai input:checked + .choice__box .choice__check { background: var(--blue); border-color: var(--blue); }
.choice input:checked + .choice__box .choice__check svg { opacity: 1; }
.choice--addon .choice__box { padding-right: 2.8rem; }
.sub-choice { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.sub-choice[hidden] { display: none; }

.range-hint { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; font-size: .88rem; color: var(--ivory-3); }
.range-hint button { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.2rem; }

.cfg__nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; }
.cfg__error { font-size: .88rem; color: var(--danger); min-height: 1.3em; margin-top: .8rem; }

/* summary step */
.summary { display: grid; gap: 0; border-top: 1px solid var(--line); }
.summary > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.summary dt { color: var(--ivory-3); }
.summary dd { overflow-wrap: anywhere; }
.summary .total dd { font-family: var(--display); font-size: 1.5rem; font-weight: 300; color: var(--gold-hi); }
.summary .total small { display: block; font-family: var(--body); font-size: .78rem; color: var(--ivory-3); }

.wa-result { display: grid; gap: .9rem; margin-top: 1rem; }
.wa-result pre {
  margin: 0; max-height: 220px; overflow: auto; padding: 1rem; border-radius: var(--r-s);
  background: rgba(0, 0, 0, .35); border: 1px solid var(--line);
  font-family: var(--body); font-size: .82rem; line-height: 1.55; color: var(--ivory-2); white-space: pre-wrap;
}

/* live quote sheet */
.sheet {
  position: sticky; top: calc(var(--nav-h) + 1.5rem);
  padding: 1.6rem; border-radius: var(--r-l);
  border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, #141310, #0E0E10);
  box-shadow: 0 40px 80px -60px rgba(198, 161, 91, .5);
}
.sheet h3 { font-size: .82rem; font-weight: 500; letter-spacing: .08em; color: var(--gold); margin-bottom: 1rem; }
.sheet__rows { display: grid; gap: .6rem; font-size: .9rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.sheet__rows div { display: flex; justify-content: space-between; gap: 1rem; }
.sheet__rows dt { color: var(--ivory-3); }
.sheet__rows dd { text-align: right; }
.sheet__rows dd.empty { color: rgba(244, 240, 232, .3); }
.sheet__addons { display: grid; gap: .35rem; padding-block: .9rem; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--ivory-2); }
.sheet__addons li { display: flex; justify-content: space-between; gap: 1rem; }
.sheet__total { padding-top: 1rem; display: grid; gap: .3rem; }
.sheet__total span { font-size: .82rem; color: var(--ivory-3); }
.sheet__total .price { font-size: clamp(1.9rem, 1.5rem + 1vw, 2.5rem); color: var(--ivory); line-height: 1.1; }
.sheet__total small { font-size: .8rem; color: var(--ivory-3); }

@media (max-width: 1020px) {
  .cfg { grid-template-columns: minmax(0, 1fr); }
  .sheet { position: static; order: -1; padding: 1.2rem; }
  .sheet__addons { display: none; }
}
@media (max-width: 640px) {
  .cfg__rail button span { display: none; }
  .choices--2, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .summary > div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .cfg__nav .btn { flex: 1; }
  .cfg__panel { min-height: 0; }
}
.choice-wrap { display: grid; gap: .4rem; align-content: start; }
