/* ============================================================
   SloepYes – Configurator Styles
   ============================================================ */

.cfg-hero {
  padding: 3rem 0 1.5rem;
  text-align: center;
}
.cfg-hero h1 { margin-bottom: .5rem; }

/* Layout */
.cfg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 4rem;
}

/* ── STEPS ─────────────────────────────────────────────── */
.cfg-step {
  background: #fff;
  border: 1px solid var(--border, #e8edf2);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.cfg-step-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
.cfg-step-nr {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary, #0099cc);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cfg-step-header h2 {
  font-size: 1.15rem;
  margin: 0;
}
.cfg-step-sub {
  font-size: .82rem;
  color: var(--muted, #6b7b8d);
  margin-bottom: 1.25rem;
  background: #f4f7fa;
  border-radius: 8px;
  padding: .6rem .9rem;
}

/* ── MODEL CARDS ────────────────────────────────────────── */
.cfg-model-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cfg-model-card {
  position: relative;
  border: 2px solid var(--border, #e8edf2);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  display: block;
}
.cfg-model-card input[type=radio] { display: none; }
.cfg-model-card:hover { border-color: var(--primary, #0099cc); }
.cfg-model-card.selected {
  border-color: var(--primary, #0099cc);
  box-shadow: 0 0 0 3px rgba(0,153,204,.15);
}
.cfg-model-card img {
  width: 100%; height: 160px; object-fit: cover; display: block;
}
.cfg-model-info {
  padding: .85rem 1rem;
  display: flex; flex-direction: column; gap: .2rem;
}
.cfg-model-info strong { font-size: 1rem; }
.cfg-model-info span { font-size: .8rem; color: var(--muted, #6b7b8d); }
.cfg-model-price {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: var(--primary, #0099cc) !important;
  margin-top: .25rem;
}
.cfg-model-badge {
  position: absolute;
  top: .75rem; left: .75rem;
  background: var(--primary, #0099cc);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .25rem .6rem;
  border-radius: 20px;
}
.cfg-check {
  position: absolute;
  top: .6rem; right: .6rem;
  width: 22px; height: 22px;
  background: var(--primary, #0099cc);
  border-radius: 50%;
  padding: 3px;
  color: #fff;
  opacity: 0;
  transition: opacity .2s;
}
.cfg-model-card.selected .cfg-check { opacity: 1; }

/* ── OPTION CHECKBOXES ──────────────────────────────────── */
.cfg-options-grid {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.cfg-option {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1.5px solid var(--border, #e8edf2);
  border-radius: 10px;
  padding: .75rem 1rem;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.cfg-option:hover { border-color: var(--primary, #0099cc); background: #f7fbfe; }
.cfg-option input[type=checkbox] {
  width: 18px; height: 18px;
  accent-color: var(--primary, #0099cc);
  flex-shrink: 0;
  cursor: pointer;
}
.cfg-option:has(input:checked) {
  border-color: var(--primary, #0099cc);
  background: #eef8fd;
}
.cfg-option-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: .5rem;
}
.cfg-option-name {
  font-size: .88rem;
  font-weight: 500;
}
.cfg-option-name em {
  font-style: normal;
  font-weight: 400;
  color: var(--muted, #6b7b8d);
  font-size: .8rem;
}
.cfg-option-price {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary, #0099cc);
  white-space: nowrap;
  flex-shrink: 0;
}
.cfg-option-aanvraag { opacity: .75; }
.cfg-aanvraag {
  color: var(--muted, #6b7b8d) !important;
  font-weight: 500 !important;
}

/* ── CONTACT FORM ───────────────────────────────────────── */
.cfg-contact-form { margin-bottom: 1.5rem; }
.cfg-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cfg-form-field {
  display: flex; flex-direction: column; gap: .4rem;
}
.cfg-form-field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--dark, #1a2535);
}
.cfg-form-field input,
.cfg-form-field textarea {
  border: 1.5px solid var(--border, #e8edf2);
  border-radius: 8px;
  padding: .65rem .85rem;
  font-family: inherit;
  font-size: .9rem;
  transition: border-color .15s;
  outline: none;
}
.cfg-form-field input:focus,
.cfg-form-field textarea:focus { border-color: var(--primary, #0099cc); }
.cfg-form-field textarea { resize: vertical; }

/* ── SUMMARY BOX ────────────────────────────────────────── */
.cfg-summary-box {
  background: #f4f7fa;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.cfg-summary-box h3 {
  font-size: .95rem;
  margin-bottom: .75rem;
}
.cfg-summary-model {
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .5rem;
}
.cfg-summary-list {
  list-style: none;
  padding: 0; margin: 0 0 .75rem;
  font-size: .82rem;
  color: var(--muted, #6b7b8d);
  max-height: 180px;
  overflow-y: auto;
}
.cfg-summary-list li { padding: .2rem 0; border-bottom: 1px solid #e8edf2; }
.cfg-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .9rem;
  font-weight: 600;
  padding-top: .75rem;
  border-top: 2px solid #dde3ea;
}
.cfg-summary-total strong { color: var(--primary, #0099cc); font-size: 1rem; }
.cfg-summary-note {
  font-size: .75rem;
  color: var(--muted, #6b7b8d);
  margin-top: .5rem;
}

/* ── STICKY PRICE SIDEBAR ───────────────────────────────── */
.cfg-price-sidebar {
  position: sticky;
  top: 80px;
}
.cfg-price-card {
  background: #fff;
  border: 1.5px solid var(--border, #e8edf2);
  border-radius: 16px;
  padding: 1.5rem;
}
.cfg-price-model {
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border, #e8edf2);
}
.cfg-price-breakdown { margin-bottom: 1rem; }
.cfg-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  font-size: .82rem;
  padding: .3rem 0;
  color: var(--muted, #6b7b8d);
}
.cfg-price-row span:last-child {
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
}
.cfg-price-base {
  font-weight: 600;
  color: var(--dark, #1a2535) !important;
}
.cfg-price-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .85rem 0 0;
  border-top: 2px solid var(--border, #e8edf2);
  font-size: .9rem;
}
.cfg-price-total strong {
  font-size: 1.3rem;
  color: var(--primary, #0099cc);
}
.cfg-price-aanvraag {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  color: var(--muted, #6b7b8d);
  background: #fff8e6;
  border-radius: 8px;
  padding: .5rem .75rem;
  margin-top: .75rem;
}

/* ── CONFIRMATION ───────────────────────────────────────── */
.cfg-confirmation {
  text-align: center;
  padding: 4rem 2rem;
}
.cfg-confirm-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #e8f8e8;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  color: #27ae60;
}
.cfg-confirm-icon svg { width: 32px; height: 32px; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .cfg-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .cfg-price-sidebar {
    position: static;
    order: -1;
  }
}
@media (max-width: 600px) {
  .cfg-model-cards { grid-template-columns: 1fr; }
  .cfg-form-row { grid-template-columns: 1fr; }
  .cfg-step { padding: 1.25rem; }
}
