/* ========== */
/* Container */
/* ========== */
.bhv-offerte-form {
  width: 100%;
  max-width: 960px;
  margin: 16px auto;
  background: #fff;
  font-family: 'Inter', sans-serif;
  position: relative;
}

/* ========== */
/* Inner container - vaste breedte */
/* ========== */
.bhv-inner {
  width: 100%;
  box-sizing: border-box;
}

/* ========== */
/* Stappen */
/* ========== */
.bhv-step {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}
.bhv-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ========== */
/* Progress bar */
/* ========== */
.bhv-progress {
  width: 100%;
  height: 6px;
  background: #edf2f7;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}
.bhv-progress-bar {
  height: 100%;
  width: 0%;
  background: #3182ce;
  transition: width 0.25s ease;
}

/* ========== */
/* Inputs */
/* ========== */
input, select, button, label {
  font-size: 1rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 16px;
  transition: border-color 0.25s;
  box-sizing: border-box;
}
input:focus, select:focus {
  border-color: #3182ce;
  outline: none;
}

/* ========== */
/* Knoppen */
/* ========== */
button {
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.25s, opacity 0.25s;
}
button.primary {
  background: #3182ce;
  color: #fff;
}
button.primary:hover { background: #2563eb; }
button.secondary {
  background: #f7f7f7!important;
  color: #333!important;
  border-color: #f7f7f7!important;
}
button.secondary:hover { 
    background: #f1f1f1!important; 
    border-color: #f1f1f1!important;  
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== */
/* Navigatie */
/* ========== */
.nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.bhv-step[data-step="1"] .nav {
  justify-content: flex-end;
}
.nav button {
  min-height: 44px;
}

/* ========== */
/* Cards */
/* ========== */
.bhv-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.bhv-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 18px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  color: #2d3748;
  background: #f8fafc;
}
.bhv-card:hover {
  border-color: #3182ce;
  background: #ebf8ff;
}
.bhv-card.selected {
  border-color: #3182ce;
  background: #e6f0ff;
}
.bhv-badge {
  display: inline-block;
  background: #25D366;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
}

/* ========== */
/* Tooltip */
/* ========== */
.tooltip {
  position: relative;
  color: #3182ce;
  font-weight: 600;
  cursor: pointer;
}
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 0;
  background: #2d3748;
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
  padding: 8px 10px;
  border-radius: 6px;
  width: min(90vw, 280px);
  opacity: 0;
  transition: opacity 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  pointer-events: none;
  z-index: 5;
}
.tooltip:hover::after { opacity: 1; }

/* ========== */
/* Foutmelding + Loader */
/* ========== */
.bhv-error {
  color: #d22;
  font-size: 16px;
  margin-top: 4px;
  display: none;
}
input.invalid { border-color: #d22; }
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: #3182ce;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 24px auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Loading stap - vaste breedte, geen shift */
.bhv-step[data-step="6"] {
  text-align: center;
}
.bhv-step[data-step="6"] .bhv-inner {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.bhv-step[data-step="6"] .loading-text {
  width: 100%;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0;
}

/* ========== */
/* Responsive */
/* ========== */
@media (max-width: 767px) {
  .bhv-offerte-form {
    padding: 16px;
  }
  .nav {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .nav button {
    width: 100%;
  }
  .tooltip::after {
    width: 88vw;
    max-width: 320px;
  }
}