/* Root */
#herstellingen-finder{
  /*max-width: 1180px;*/
  /*margin: 0 auto;*/
}

/* Headings */
#herstellingen-finder h3{
  margin: 0 0 14px 0;
  line-height: 1.2;
  font-size: 20px;
  font-weight: 600;
}

/* Stepbar */
.hf-stepbar{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap:12px;
  margin: 0 0 14px 0;
}
.hf-stepbar h3{ margin:0; }

/* Back button */
.hf-back{
  border:1px solid #e5e7eb;
  background:#fff;
  padding:10px 12px;
  border-radius: 10px;
  cursor:pointer;
  transition: 0.15s;
}
.hf-back:hover{
  transform: translateY(-1px);
  border-color:#111827;
}

/* Grid */
.hf-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 1024px){
  .hf-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px){
  .hf-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px){
  .hf-grid{ grid-template-columns: 1fr; }
}

/* Cards */
.hf-card{
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 18px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);

  display:flex;
  flex-direction: column;
  gap: 10px;

  /* CONSISTENCY */
  min-height: 340px; /* increased because image height is 260px */
}
.hf-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  border-color: #111827;
}

/* Label always aligned bottom */
.hf-card span{
  font-weight: 600;
  color:#111827;
  line-height: 1.25;

  margin-top: auto;   /* push label to bottom for consistent alignment */
  padding-top: 6px;
}

/* Consistent image box for ALL tiles (groups + models + repair types) */
.hf-card img,
.hf-card--small img.hf-icon{
  width: 100% !important;
  height: 260px !important; /* same height for consistency */
  object-fit: contain;
  object-position: center;
  display:block;
  margin: 0 auto;

  background: #f6f7f9;
  border-radius: 14px;
  padding: 10px;
}

/* Selected state */
.hf-card.active{
  border-color:#111827;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}
.hf-card.active span{
  color:#000;
}

/* Smaller variant (repair types) */
.hf-card--small{
  min-height: 340px; /* match regular tiles for consistent grid */
  padding: 12px;
}

/* Result card - upgraded */
.hf-service{
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;

  box-shadow: 0 18px 45px rgba(0,0,0,0.10);
  margin-top: 22px;

  display:grid;
  grid-template-columns: 320px 1fr;
}

/* If you later add a "no image" class in JS, this makes it single-column */
.hf-service.hf-service--noimg{
  grid-template-columns: 1fr;
}

@media (max-width: 900px){
  .hf-service{ grid-template-columns: 1fr; }
}

.hf-service-img{
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  background: #f6f7f9;
}

/* Body spacing + header look */
.hf-service-body{
  padding: 22px 24px;
}

.hf-service-body h4{
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Meta badges row */
.hf-meta-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 16px 0;
}

.hf-badge{
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  color:#111827;
}
.hf-badge strong{
  font-weight: 700;
}

/* Included + content */
.hf-included{
  margin-top: 14px;
  padding: 14px 14px;

  border: 1px solid #e5e7eb;     /* changed from dashed to solid */
  border-radius: 16px;
  background: #fafafa;
}
.hf-included strong{
  display:block;
  margin-bottom: 8px;
}

.hf-content{
  margin-top: 12px;
  color:#111827;
}
.hf-content p{
  margin: 0 0 10px 0;
}

/* Actions */
.hf-actions{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  align-items:center;
}

.hf-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid #111827;
  text-decoration:none;
  font-weight: 800;
  transition: 0.15s;

  background: #111827;
  color: #fff;
}
.hf-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Hidden */
.hf-hidden{ display:none; }


/* Progress */
.hf-progress{
  margin: 0 0 18px 0;
  padding: 14px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
}
.hf-progress-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.hf-progress-title{
  font-weight: 800;
  color:#111827;
}
.hf-progress-step{
  font-weight: 700;
  color:#374151;
  font-size: 14px;
}
.hf-progress-bar{
  height: 10px;
  background: #f3f4f6;
  border-radius: 999px;
  overflow:hidden;
}
.hf-progress-fill{
  height: 100%;
  background: #111827;
  border-radius: 999px;
  transition: width .2s ease;
}

.hf-progress-actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.hf-reset{
  border: 1px solid #e5e7eb;
  background:#fff;
  padding: 8px 10px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 700;
}
.hf-reset:hover{
  border-color:#111827;
  transform: translateY(-1px);
}
