/* ==========================================================
   Package Configurator — Wessel Werlemann
   Full-screen modal, dark theme, matches site design
   ========================================================== */

.pkg-configurator {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  font-family: var(--f-body);
  color: var(--fg);
}
.pkg-configurator.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Top bar ── */
.pcfg-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  height: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}
.pcfg-brand {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.02em;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pcfg-brand .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
}
.pcfg-step-indicator {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.pcfg-close {
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
}
.pcfg-close:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ── Progress bar ── */
.pcfg-progress {
  height: 2px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}
.pcfg-progress-fill {
  height: 100%;
  background: #fff;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}

/* ── Body: left + right ── */
.pcfg-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 360px;
  overflow: hidden;
}
.pcfg-left {
  padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 72px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.pcfg-right {
  border-left: 1px solid rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}
.pcfg-right-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .12;
  transition: opacity .5s;
}
.pcfg-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.2) 0%, rgba(0,0,0,.92) 100%);
}
.pcfg-live-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.pcfg-live-pkg {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  line-height: 1.1;
}
.pcfg-summary {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pcfg-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pcfg-summary-row:last-child { border-bottom: 0; }
.pcfg-summary-row .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  flex-shrink: 0;
  padding-top: 2px;
}
.pcfg-summary-row .v {
  color: #fff;
  font-weight: 500;
  text-align: right;
  font-size: 13px;
}

/* ── Step content ── */
.pcfg-step-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.pcfg-h {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
  margin: 0 0 16px;
  color: #fff;
}
.pcfg-sub {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,.5);
  max-width: 48ch;
  margin: 0 0 36px;
}

/* ── Option grid ── */
.pcfg-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.pcfg-options.cols-1 { grid-template-columns: 1fr; }
.pcfg-options.cols-3 { grid-template-columns: repeat(3, 1fr); }

.pcfg-opt {
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 20px 20px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  position: relative;
  border-radius: 0;
}
.pcfg-opt:hover {
  border-color: rgba(255,255,255,.5);
  transform: translateY(-2px);
}
.pcfg-opt.active {
  border-color: #fff;
  background: rgba(255,255,255,.06);
}
.pcfg-opt .opt-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 6px;
}
.pcfg-opt .opt-name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.pcfg-opt .opt-desc {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.5);
}
.pcfg-opt .opt-price {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(255,255,255,.6);
  margin-top: 12px;
  text-transform: uppercase;
}
.pcfg-opt .opt-check {
  position: absolute;
  top: 14px; right: 14px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s, transform .2s;
  font-weight: 700;
}
.pcfg-opt.active .opt-check { opacity: 1; transform: scale(1); }

/* ── Fields ── */
.pcfg-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pcfg-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pcfg-field.full { grid-column: 1 / -1; }
.pcfg-field-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.pcfg-input {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff;
  padding: 12px 16px;
  font-family: var(--f-body);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}
.pcfg-input:focus { border-color: rgba(255,255,255,.6); }
.pcfg-input::placeholder { color: rgba(255,255,255,.25); }
select.pcfg-input { appearance: none; cursor: pointer; }
textarea.pcfg-input { resize: vertical; min-height: 100px; }

/* ── Summary final ── */
.pcfg-summary-final {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.12);
  margin-top: 8px;
}
.pcfg-summary-final .row {
  display: flex;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
}
.pcfg-summary-final .row:last-child { border-bottom: 0; }
.pcfg-summary-final .k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  width: 120px;
  flex-shrink: 0;
  padding-top: 2px;
}
.pcfg-summary-final .v { color: #fff; font-weight: 500; }

/* ── Thanks ── */
.pcfg-thanks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 560px;
}
.pcfg-thanks .big {
  font-family: var(--f-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1;
  color: #fff;
}
.pcfg-thanks .big em {
  font-style: italic;
  color: rgba(255,255,255,.6);
}

/* ── Footer nav ── */
.pcfg-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  height: 72px;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-shrink: 0;
}
.pcfg-step-counter {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}
.pcfg-step-counter b { color: #fff; font-weight: 500; }
.pcfg-nav { display: flex; gap: 10px; }

/* ── Configurator trigger button (below packages) ── */
.pkg-configurator-trigger {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ── Per-card configure button ── */
.pkg-cfg-btn {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
  font-size: 13px !important;
  padding: 10px 16px !important;
  opacity: 0;
  transition: opacity .2s;
}
.pkg:hover .pkg-cfg-btn,
.pkg.featured .pkg-cfg-btn {
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .pcfg-body { grid-template-columns: 1fr; }
  .pcfg-right { display: none; }
  .pcfg-options { grid-template-columns: 1fr; }
  .pcfg-options.cols-3 { grid-template-columns: 1fr 1fr; }
  .pcfg-fields { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pcfg-options.cols-3 { grid-template-columns: 1fr; }
}
