/* Offerte-instrument — huisje, tabs, chips (uit originele site) */

.cfg,
.sm-cfg-instrument {
  flex-direction: column;
  display: flex;
  max-width: 100%;
  min-width: 0;
}

#cfg .wrap,
#cfg .cgrid,
.offerte-flow .panel,
.offerte-flow .frm_form_field,
.offerte-flow #frm_field_6_container {
  min-width: 0;
  max-width: 100%;
}

.cstage {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 6px;
}

.cstage svg {
  filter: drop-shadow(0 26px 44px #00000080);
  width: 100%;
  height: auto;
}

.cstage .f {
  stroke: #e8e4da;
  stroke-width: 1.05px;
  transition: fill 0.5s, stroke 0.5s;
}

.cstage .fh {
  stroke: none;
}

.cstage .ln line {
  transition: stroke 0.5s;
}

.cstage .part2 {
  opacity: 0;
  transform-box: fill-box;
  transition: opacity 0.55s, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translateY(-9px);
}

.cstage .part2.on {
  opacity: 1;
  transform: none;
}

.cstage .part2.flash .f {
  stroke: #d8b98c;
  fill: #d8b98c33;
}

.cstage .part2.flash .ln line {
  stroke: #d8b98c;
}

.cstage .scene {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: 50%;
  pointer-events: none;
  transition: opacity 0.6s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transform: scale(0.965);
}

.cstage .scene.on {
  opacity: 1;
  transform: none;
}

.cstage .scene.flash .f,
.cstage .scene.flash .ln line {
  stroke: #d8b98c;
}

.cstage .scene .rise {
  opacity: 0;
  transform-box: fill-box;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.25s, opacity 0.9s 0.25s;
  transform: translateY(14px);
}

.cstage .scene.on .rise {
  opacity: 1;
  transform: none;
}

.ctabs {
  margin-top: 18px;
  padding-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 4px 0;
  max-width: 100%;
}

.ctab + .ctab::before {
  content: '·';
  margin: 0 0.55em;
  color: var(--mute);
  opacity: 0.95;
  pointer-events: none;
}

.ctab {
  font-family: var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  cursor: pointer;
  background: 0 0;
  border: 0;
  border-bottom: 1px solid transparent;
  flex: none;
  margin-right: 0;
  padding: 9px 2px;
  font-size: 10px;
  white-space: nowrap;
  transition: all 0.3s;
}

.ctab.on {
  color: var(--brassL);
  border-bottom-color: var(--brassL);
}

.ctab:hover {
  color: var(--paper);
}

.cpane {
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 10px;
  min-height: 96px;
  margin-top: 16px;
  display: none;
}

.cpane.on {
  display: flex;
}

.chip {
  border: 1px solid var(--line2);
  min-height: 44px;
  color: var(--mute);
  cursor: pointer;
  font-size: 13.5px;
  font-family: var(--body);
  background: 0 0;
  border-radius: 99px;
  align-items: center;
  padding: 11px 18px;
  transition: all 0.25s;
  display: inline-flex;
}

.chip:hover {
  color: var(--paper);
  border-color: #d8b98c80;
}

.chip.on {
  border-color: var(--brassL);
  color: var(--brassL);
  box-shadow: 0 0 24px -8px var(--glow);
  background: linear-gradient(135deg, #d8b98c2e, #b58a5e1f);
}

.chip.dim {
  opacity: 0.45;
}

/* Op offerte-pagina: geen homepage-CTA's onder het instrument */
.offerte-flow .sm-cfg-instrument .acties,
.offerte-flow .sm-cfg-instrument .tot,
.offerte-flow .sm-cfg-instrument > .note {
  display: none !important;
}

/* Formidable checkboxes: visueel verbergen, blijven in DOM voor submit */
.offerte-flow #frm_field_6_container.sm-has-cfg .frm_opt_container {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.offerte-flow #frm_field_6_container.sm-has-cfg .sm-cfg-instrument {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.offerte-flow #frm_field_6_container.sm-has-cfg .frm_primary_label {
  display: none !important;
}

/* Prijsregel (homepage + offerte) */
.cpanel .tot,
.sm-cfg-instrument .tot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.cpanel .tot > span,
.sm-cfg-instrument .tot > span {
  flex: 1 1 9rem;
  min-width: 0;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.cpanel .tot b,
.sm-cfg-instrument .tot b {
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
  font-family: var(--disp);
  font-size: clamp(22px, 6vw, 34px);
  font-weight: 700;
  text-align: right;
  line-height: 1.1;
}

.cpanel .tot b small,
.sm-cfg-instrument .tot b small {
  font-size: 0.55em;
  color: var(--mute);
  font-weight: 400;
}

#totWrap.req,
#totWrap.req b {
  font-size: clamp(16px, 4.5vw, 24px);
}

@media (width <= 600px) {
  .cpanel {
    padding: 18px 16px;
    border-radius: 16px;
  }

  .cpanel .tot,
  .sm-cfg-instrument .tot {
    flex-direction: column;
    align-items: flex-start;
  }

  .cpanel .tot b,
  .sm-cfg-instrument .tot b {
    margin-left: 0;
    text-align: left;
    width: 100%;
  }

  .crow .btnP,
  .crow .btnG {
    width: 100%;
    box-sizing: border-box;
  }

  .cstage {
    max-width: 100%;
    overflow: hidden;
  }
}
