/* Wizard mobile responsive fixes */
@media (max-width: 576px) {
  .offcanvas.offcanvas-end {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    overflow: hidden; /* outer container hidden; body will scroll */
    box-shadow: none;
  }
  .offcanvas-body {
    padding: 0 !important;
    overflow-y: auto !important; /* make body scrollable */
    overflow-x: hidden !important; /* prevent horizontal scroll */
    -webkit-overflow-scrolling: touch; /* iOS smooth */
    max-height: 100dvh !important;
  }
  .qw-progress {
    position: sticky;
    top: 0; /* sits below mobile indication since it's placed after it */
    z-index: 10;
    background: #fff;
    box-shadow: 0 2px 8px rgba(21,93,71,0.07);
  }
  .qw-total-chip {
    display: none !important;
  }
  .qw-mobile-indication {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    background: #f6faf8;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid #e2e2e2;
    box-shadow: 0 2px 8px rgba(21,93,71,0.07);
    z-index: 11;
    position: sticky;
    top: 0;
  }
  .qw-mobile-indication .row {
    margin: 0;
  }
  .qw-mobile-indication .content { display: grid; grid-template-columns: 1fr; row-gap: 4px; }
  .qw-step .row, .qw-step .col-12 {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .qw-step .form-control, .qw-step .form-select, .qw-step .form-check-input {
    width: 100% !important;
    min-width: 100% !important;
    font-size: 1.1rem;
    min-height: 48px;
  }
  .qw-step .form-check-label {
    font-size: 1.05rem;
    padding-left: 0.5rem;
  }
  .qw-step .form-check {
    margin-bottom: 1rem;
  }
  .qw-step .btn, .qw-step .btn-qw {
    width: 100%;
    font-size: 1.1rem;
    padding: 0.75rem 0;
  }
  .qw-bottom-bar {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -2px 8px rgba(21,93,71,0.07);
    padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom)) 1rem;
    z-index: 20;
    display: flex;
    gap: 1rem;
    flex-direction: column;
  }
  /* ensure content not hidden behind bottom bar */
  .offcanvas-body { padding-bottom: 5rem !important; }
}
/* quote-wizard.css
   Matodev Offerte Wizard styles
   - BEM-achtige structuur
   - Subtiele animaties (fade-slide-up, scale-in)
   - A11y en responsive
   - Print stylesheet voor PDF
*/

:root {
  --qw-bg: #ffffff;
  --qw-surface: #f8f9fb;
  --qw-text: #212529;
  --qw-muted: #6c757d;
  --qw-primary: #111213; /* donker (Matodev stijl) */
  --qw-accent: #155D47; /* donkergroen accenten */
  --qw-accent-2: #1c7b5d; /* gradient mix */
  --qw-card-shadow: 0 6px 18px rgba(22, 28, 45, 0.08);
  --qw-radius-lg: 16px;
  --qw-radius-sm: 10px;
}

/* Offcanvas max width on lg+ */
@media (min-width: 992px) {
  #quoteWizard.offcanvas-end { width: 720px; }
}

/* Progress segments */
.qw-progress { padding: 10px 16px; background: var(--qw-surface); }
.qw-progress__bar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.qw-progress__segment { height: 6px; background: #e9ecef; border-radius: 999px; overflow: hidden; position: relative; }
.qw-progress__segment.is-active::after,
.qw-progress__segment.is-complete::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--qw-accent), var(--qw-accent-2)); transform: scaleX(0); transform-origin: left; animation: qw-progress-fill .6s ease forwards; }

@keyframes qw-progress-fill { to { transform: scaleX(1); } }

/* Total chip */
.qw-total-chip { background: #fff; border: 1px solid #e9ecef; border-radius: 12px; padding: 6px 10px; box-shadow: var(--qw-card-shadow); }

/* Steps */
.qw-steps { overflow: hidden; }
.qw-step { min-height: 60vh; }
.qw-step[hidden] { display: none !important; }
.qw-step.is-enter {
  animation: fade-slide-up .4s ease both;
}

@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Radio cards */
.qw-card { display: block; background: var(--qw-bg); border: 1px solid #e9ecef; border-radius: var(--qw-radius-lg); box-shadow: var(--qw-card-shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; cursor: pointer; }
.qw-card:focus-within { outline: none; border-color: var(--qw-accent); box-shadow: 0 0 0 3px rgba(21,93,71,.25), var(--qw-card-shadow); }
.qw-card:hover { transform: translateY(-2px); }
.qw-card__body { padding: 14px 14px; }
.qw-card__icon { font-size: 1.4rem; color: var(--qw-primary); }
.qw-card__title { font-weight: 600; margin-top: 6px; margin-bottom: 4px; }
.qw-card__desc { color: var(--qw-muted); }
.qw-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.qw-card.qw-card--radio input[type="radio"]:checked + .qw-card__body,
.qw-card.qw-card--radio input[type="radio"]:focus + .qw-card__body { border-color: transparent; }
.qw-card.qw-card--radio input[type="radio"]:checked ~ .qw-card__body .qw-card__title::after { content: " \2713"; color: var(--qw-accent); }

/* Toggles */
.qw-toggle { background: var(--qw-bg); border: 1px solid #e9ecef; border-radius: var(--qw-radius-sm); padding: 10px 12px; box-shadow: var(--qw-card-shadow); transition: background .2s ease, transform .15s ease; }
.qw-toggle:hover { transform: translateY(-1px); }
.qw-toggle .form-check-input:focus { box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25); }

/* Breakdown list */
.qw-breakdown { background: var(--qw-surface); border: 1px solid #e9ecef; border-radius: var(--qw-radius-lg); padding: 12px; max-height: 50vh; overflow: auto; }
.qw-breakdown__item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #e5e7eb; }
.qw-breakdown__item:last-child { border-bottom: 0; }
.qw-breakdown__section { font-weight: 600; margin-top: 8px; margin-bottom: 4px; }

/* Buttons micro-interactions */
.btn-dark { transition: transform .1s ease, box-shadow .1s ease; }
.btn-dark:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.12); }
.btn-qw { background: var(--qw-accent); color: #fff; border: 1px solid var(--qw-accent); transition: transform .1s ease, box-shadow .1s ease, background .2s ease; }
.btn-qw:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(21,93,71,.2); background: var(--qw-accent-2); color: #fff; }
.btn-outline-secondary:hover { transform: translateY(-1px); }

/* Scale-in utility */
.qw-scale-in { animation: scale-in .18s ease both; }
@keyframes scale-in { from { transform: scale(.98); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Confetti (light) */
.qw-confetti { position: relative; height: 120px; }
.qw-confetti::before, .qw-confetti::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 10% 10%, #ff6b6b 2px, transparent 3px),
  radial-gradient(circle at 30% 70%, #ffd93d 2px, transparent 3px),
  radial-gradient(circle at 80% 30%, #6bcB77 2px, transparent 3px),
  radial-gradient(circle at 60% 60%, #4D96FF 2px, transparent 3px);
  background-size: 140px 140px; opacity: .8; animation: confetti-fall 1.8s ease-in-out infinite;
}
.qw-confetti::after { animation-delay: .9s; opacity: .6; }
@keyframes confetti-fall { 0% { transform: translateY(-10px); } 50% { transform: translateY(4px); } 100% { transform: translateY(-10px); } }

/* Focus visible */
:focus-visible { outline: 2px solid var(--qw-accent); outline-offset: 2px; }

/* Tooltips ensure pointer */
[data-bs-toggle="tooltip"] { cursor: help; }

/* Print styles for PDF */
@media print { /* voorlopig geen print/PDF weergave */
  body { display: none; }
}

/* Aura background */
.aura-bg { position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(600px 300px at 10% 20%, rgba(21,93,71,0.08), transparent 60%), radial-gradient(500px 260px at 90% 30%, rgba(28,123,93,0.06), transparent 60%), radial-gradient(400px 220px at 50% 90%, rgba(21,93,71,0.05), transparent 60%); }



a.product-card .stretched-link:focus {
  outline: 3px solid #155D47;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #b7e2d1;
  z-index: 3;
}
/* Extra styling voor producten-sectie (Bootstrap 5) */

.section-accent {
  background: linear-gradient(90deg, #f6faf8 0%, #f2f7f4 100%);
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
  margin-bottom: 2rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #155D47 60%, #b7e2d1 100%);
  border-radius: 2px;
  margin: 0.5rem auto 0 auto;
}


.product-card {
  border-radius: 1.25rem;
  box-shadow: 0 2px 12px rgba(21,93,71,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
  min-height: 100%;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: default;
  outline: none;
}
.product-card:hover {
  box-shadow: 0 8px 32px rgba(21,93,71,0.18);
  transform: translateY(-4px) scale(1.02);
  z-index: 2;
}

/* Klikbare card als <a> */
a.product-card {
  cursor: pointer;
  outline: none;
  color: inherit;
}
a.product-card:focus {
  outline: 3px solid #155D47;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px #b7e2d1;
}
a.product-card:hover {
  text-decoration: none;
}

.product-card .card-title {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-card .card-icon {
  font-size: 2rem;
  color: #155D47;
  margin-bottom: 0.25rem;
}

.badge-accent {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: linear-gradient(90deg, #155D47 80%, #1e7c5c 100%);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 1rem;
  padding: 0.35em 1em;
  box-shadow: 0 2px 8px rgba(21,93,71,0.12);
  letter-spacing: 0.5px;
  z-index: 3;
  border: none;
}

.btn-product {
  background: #155D47;
  color: #fff;
  border-radius: 2rem;
  box-shadow: 0 2px 8px rgba(21,93,71,0.10);
  font-weight: 500;
  padding: 0.5em 2em;
  transition: background 0.18s, box-shadow 0.18s;
  border: none;
}
.btn-product:hover, .btn-product:focus {
  background: #1e7c5c;
  box-shadow: 0 4px 16px rgba(21,93,71,0.18);
  color: #fff;
}

/* Grid spacing */
.product-row {
  row-gap: 2rem;
  column-gap: 2rem;
}

@media (min-width: 768px) {
  .product-row {
    row-gap: 2.5rem;
    column-gap: 2.5rem;
  }
}

/* Zorg dat kaarten beter afsteken tegen de achtergrond */
.section-accent .product-card {
  background: #fff;
  box-shadow: 0 2px 16px rgba(21,93,71,0.09);
}

/* Accordion en overige secties subtieler */
.accordion-item {
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(21,93,71,0.06);
}

/* Responsive icon boven titel */
@media (max-width: 575px) {
  .product-card .card-icon {
    font-size: 1.5rem;
  }
}

/* ===== PRICING INDICATOR STYLES ===== */

/* Stepper */
.price-stepper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  margin-bottom: 2rem;
  overflow-x: auto;
}

.price-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 80px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.price-step.active {
  opacity: 1;
}

.price-step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e9ecef;
  color: var(--qw-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.price-step.active .price-step-number {
  background: var(--qw-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(21,93,71,0.3);
  transform: scale(1.1);
}

.price-step-label {
  font-size: 0.85rem;
  text-align: center;
  color: var(--qw-muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

.price-step.active .price-step-label {
  color: var(--qw-accent);
  font-weight: 600;
}

/* Categories */
.price-categories {
  position: relative;
}

.price-category {
  display: none;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(21,93,71,0.07);
  transition: box-shadow 0.2s ease;
  animation: fade-slide-up .4s ease both;
}

.price-category.active {
  display: block;
}

.pricing-category {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(21,93,71,0.07);
  transition: box-shadow 0.2s ease;
}

.pricing-category:hover,
.price-category:hover {
  box-shadow: 0 4px 16px rgba(21,93,71,0.12);
}

.pricing-category h3 {
  color: var(--qw-accent);
  font-weight: 600;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.pricing-category .card {
  border: 1px solid #e9ecef;
  border-radius: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.pricing-category .card:hover {
  border-color: var(--qw-accent);
  box-shadow: 0 4px 12px rgba(21,93,71,0.12);
  transform: translateY(-2px);
}

.pricing-category .card:focus-within {
  border-color: var(--qw-accent);
  box-shadow: 0 0 0 3px rgba(21,93,71,0.15);
}

.pricing-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-input:focus {
  border-color: var(--qw-accent);
  box-shadow: 0 0 0 0.25rem rgba(21,93,71,0.15);
}

.form-check-input.pricing-input:checked {
  background-color: var(--qw-accent);
  border-color: var(--qw-accent);
}

.form-range.pricing-input::-webkit-slider-thumb {
  background: var(--qw-accent);
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(21,93,71,0.3);
  transition: transform 0.1s ease;
}

.form-range.pricing-input::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.form-range.pricing-input::-moz-range-thumb {
  background: var(--qw-accent);
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(21,93,71,0.3);
  transition: transform 0.1s ease;
}

.form-range.pricing-input::-moz-range-thumb:hover {
  transform: scale(1.1);
}

.form-range.pricing-input::-webkit-slider-runnable-track {
  background: linear-gradient(to right, var(--qw-accent) 0%, var(--qw-accent) var(--value, 0%), #e9ecef var(--value, 0%), #e9ecef 100%);
}

#pricing-totals {
  border: 2px solid var(--qw-accent);
  border-radius: 1rem;
  background: linear-gradient(135deg, #f6faf8 0%, #fff 100%);
}

#pricing-totals .card-body {
  padding: 1.5rem;
}

#pricing-totals .text-primary {
  color: var(--qw-accent) !important;
}

#pricing-totals .text-success {
  color: #1e7c5c !important;
}

/* Responsive adjustments for pricing indicator */
@media (max-width: 768px) {
  .pricing-category {
    padding: 1rem;
  }
  
  .pricing-category h3 {
    font-size: 1.1rem;
  }
  
  #pricing-totals .card-body {
    padding: 1rem;
  }
  
  #pricing-totals .fs-4 {
    font-size: 1.25rem !important;
  }
}

/* Loading spinner styling */
.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3em;
}

/* Accessibility: Focus states */
.pricing-category .card:focus-within,
.pricing-input:focus {
  outline: 2px solid var(--qw-accent);
  outline-offset: 2px;
}

/* Touch-friendly on mobile */
@media (max-width: 576px) {
  .pricing-input,
  .form-select.pricing-input,
  .form-check-input.pricing-input {
    min-height: 48px;
    font-size: 1rem;
  }
  
  .form-check-label {
    padding-left: 0.5rem;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  #btn-calc-start {
    width: 100%;
  }
}

/* Hide any accidental "Offerte Aanvragen" buttons that might appear */
#prijsindicatie .btn-primary:not(#btn-calc-start):not(#btn-retry),
#price-wizard ~ .btn-primary,
#price-skeleton ~ .btn-primary,
#price-totals ~ .btn-primary {
  display: none !important;
}

/* Ensure only our designated button shows */
#prijsindicatie button:not(#btn-calc-start):not(#btn-retry):not(.accordion-button):not(.btn-outline-danger) {
  display: none !important;
}

/* Calculator start button */
#btn-calc-start {
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(21,93,71,0.15);
}

#btn-calc-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(21,93,71,0.25);
}

#btn-calc-start:active {
  transform: translateY(0);
}

/* Price totals sticky on desktop */
@media (min-width: 768px) {
  #price-totals {
    position: sticky;
    top: 20px;
  }
}

/* Skeleton loading animation */
.placeholder {
  background-color: #e9ecef;
  animation: placeholder-glow 2s ease-in-out infinite;
}

@keyframes placeholder-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.placeholder-glow .placeholder {
  animation: placeholder-glow 2s ease-in-out infinite;
}
