/* =========================
  STEP 3 – PROFIEL & GLAS
  (visual tile pickers + radios + checkboxes)
  ========================= */

/* Dark active step row (same pattern as Step 1/2) */
.stepRow--dark-3{
  background: var(--soft);
  border: 1px solid var(--stroke);
}

.stepRow--dark-3 .stepNum{
  border-color: var(--stroke-strong);
  color: var(--heading);
  background: transparent;
}

.stepRow--dark-3 .stepText{
  color: var(--heading);
}

.stepRow--dark-3 .stepArrow{
  width:48px;
  height:28px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--stroke);
  display:grid;
  place-items:center;
}

.stepRow--dark-3 .stepArrow svg{
  width:14px;
  height:14px;
  fill: var(--heading);
  opacity:0.90;
  transition: transform 180ms ease;
}

/* =========================
   SLIDING PANEL
   ========================= */

.step3Panel{
  overflow:hidden;
  max-height:0;
  transition:max-height 250ms ease;
  background: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid var(--stroke);
  border-top: 0;
  margin-top: 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.step3Inner{
  padding: 10px 10px 14px;
}

@media (max-width: 480px){
  .step3Inner{
    padding: 8px 8px 10px;
  }
}

/* =========================
   SECTION TITLES
   ========================= */

.step3Title{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 8px 0 8px;
}

@media (max-width: 480px){
  .step3Title{ font-size: 11px; margin: 6px 0 6px; }
}

@media (max-width: 480px){
  .step3Title{ font-size: 10px; margin: 5px 0 5px; }
}

.step3Title--spaced{
  margin-top: 12px;
}

/* =========================
   TILE GRID (3 columns like screenshot)
   ========================= */

.tileGrid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px 5px;
}

/* Mobile: 5 columns for more compact color swatches */
@media (max-width: 480px){
  .tileGrid{
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
  }
}

@media (max-width: 480px){
  .tileGrid{
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
  }
}

/* 2 column grids (wood section) */
.tileGrid--2{
  grid-template-columns: repeat(3, 1fr);
}

/* single row helpers if needed later */
.tileGrid--3{
  grid-template-columns: repeat(4, 1fr);
}

.tile{
  display:flex;
  flex-direction:column;
  gap: 3px;
}

/* square tile preview */
.tileBox{
  width:100%;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: var(--soft);
  border: 1px solid rgba(15,23,22,0.06);
  position: relative;
  overflow:hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
  transition: transform 120ms var(--ease-out), box-shadow 120ms var(--ease-out), border-color 120ms var(--ease-out);
}

@media (max-width: 480px){
  .tileBox{ border-radius: 3px; }
}

@media (max-width: 480px){
  .tileBox{ border-radius: 2px; }
}

@media (hover:hover){
  .tileBox:hover{
    transform: scale(1.03);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  }
}

.tile:active .tileBox{
  transform: scale(0.98);
}

.tile:focus-within .tileBox{
  border-color: var(--accent);
}

/* selected highlight border */
.tile.is-selected .tileBox{
  border-color: var(--accent);
  border-width: 2px;
}

/* color swatches */
.swatch--zwart{ background:#2a2b2c; }
.swatch--brons{ background:#5a4f2b; }
.swatch--zwartgrijs{ background:#6b6c6f; }
.swatch--lichtgrijs{ background:#d9d8d3; }
.swatch--goud{ background:#b59a5b; }

/* RAL (striped placeholder like screenshot vibe) */
.swatch--ral{
  background:
    repeating-linear-gradient(
      90deg,
      #c15c5c 0 10px,
      #7aa35c 10px 20px,
      #5c86c1 20px 30px,
      #d1b65b 30px 40px,
      #7a7a7a 40px 50px
    );
}

/* image tiles (for wood/handles etc.) */
.tileBox img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* below tile: radio + label row */
.tileMeta{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap: 4px;
}

/* left: radio + text */
.tilePick{
  display:flex;
  align-items:center;
  gap: 4px;
  flex:1;
}

/* hide native radio */
.tilePick input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.tilePick:focus-within .radioBubble{
  box-shadow: var(--focus-ring);
}

/* custom radio */
.radioBubble{
  width:10px;
  height:10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,22,0.18);
  display:grid;
  place-items:center;
  flex: 0 0 auto;
}

@media (max-width: 480px){
  .radioBubble{ width: 8px; height: 8px; }
}

@media (max-width: 480px){
  .radioBubble{ width: 7px; height: 7px; }
}

.tilePick input:checked + .radioBubble{
  border-color: var(--accent);
  background: var(--accent);
}

.tilePick input:checked + .radioBubble::after{
  content:"";
  width:4px;
  height:4px;
  border-radius: 999px;
  background: #fff;
}

.tileLabel{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.2;
}

@media (max-width: 480px){
  .tileLabel{ font-size: 9px; }
}

@media (max-width: 480px){
  .tileLabel{ font-size: 8px; line-height: 1.1; }
}

/* info icon under label (visual only) */
.tileInfo{
  margin-top: 2px;
  width:12px;
  height:12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,22,0.15);
  display:grid;
  place-items:center;
  font-size: 9px;
  font-weight: 800;
  color: var(--text-secondary);
  opacity: 0.70;
}

/* right side info icon in meta (if used) */
.tileInfoRight{
  width:12px;
  height:12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,22,0.15);
  display:grid;
  place-items:center;
  font-size: 9px;
  font-weight: 800;
  color: var(--text-secondary);
  opacity: 0.70;
  flex: 0 0 auto;
}

/* =========================
   CHECKBOX BLOCKS (10mm glas etc.)
   ========================= */

.step3CheckRow{
  display:flex;
  align-items:center;
  gap: var(--space-sm);
  padding: 4px 0;
}

.step3CheckRow{ 
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  transition: background 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.step3CheckRow:focus-within{
  box-shadow: var(--focus-ring);
  background: rgba(0, 212, 164, 0.05);
}

@media (hover:hover){
  .step3CheckRow:hover{
    background: rgba(10, 15, 14, 0.02);
  }
}

.step3CheckRow input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.step3CheckBox{
  width:15px;
  height:15px;
  border-radius: 3px;
  border: 1.5px solid rgba(15,23,22,0.25);
  background:#fff;
  position: relative;
  flex: 0 0 auto;
}

.step3CheckRow input:checked + .step3CheckBox{
  background: var(--accent);
  border-color: var(--accent);
}

.step3CheckRow input:checked + .step3CheckBox::after{
  content:"";
  position:absolute;
  left:3px;
  top:0.5px;
  width:4px;
  height:8px;
  border: 1.5px solid #fff;
  border-top:0;
  border-left:0;
  transform: rotate(45deg);
}

.step3CheckText{
  font-size: var(--text-sm);
  font-weight: 620;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

@media (max-width: 480px){
  .step3CheckText{ font-size: 12px; }
}

@media (max-width: 480px){
  .step3CheckText{ font-size: 11px; }
}

/* subtle divider before final CTA */
.step3Divider{
  height:1px;
  background: rgba(15,23,22,0.06);
  margin: 12px 0 10px;
}

/* =========================
   CTA – OFFERT(E) ONTVANGEN
   ========================= */

.step3Cta{
  display:flex;
  justify-content:center;
  padding: var(--space-md) 0 var(--space-sm);
}

.step3Btn{
  border:0;
  background: var(--green);
  color: var(--cta-text);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  display:flex;
  align-items:center;
  justify-content:center;
  gap: var(--space-sm);
  min-width: 180px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.step3Btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.step3Btn:active{
  transform: translateY(0);
}

@media (max-width: 480px){
  .step3Btn{ font-size: 12px; padding: 8px 12px; min-width: 160px; }
}

@media (max-width: 480px){
  .step3Btn{ font-size: 11px; padding: 7px 10px; min-width: 140px; }
}

.step3Btn svg{
  width:14px;
  height:14px;
  fill:#ffffff;
  opacity:1;
}

/* =========================
   DESKTOP ENHANCEMENTS
   ========================= */

@media (min-width: 1025px){
  .step3Inner{
    padding: 20px 24px 24px;
  }

  .step3Title{
    font-size: 14px;
    margin: 14px 0 14px;
    letter-spacing: 0.04em;
  }

  .step3Title--spaced{
    margin-top: 24px;
  }

  .tileGrid{
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
  }

  .tileBox{
    border-radius: 10px;
    transition: transform var(--t-fast) var(--ease-out),
                box-shadow var(--t-fast) var(--ease-out),
                border-color var(--t-fast) var(--ease-out);
  }

  .tileBox:hover{
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  }

  .tile.is-selected .tileBox{
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent), 0 4px 12px color-mix(in srgb, var(--accent) 20%, transparent);
  }

  .tileLabel{
    font-size: 13px;
    padding: 8px 4px;
  }

  .step3CheckRow{
    padding: 12px 0;
  }

  .step3CheckText{
    font-size: 15px;
  }

  .step3CheckBox{
    width: 18px;
    height: 18px;
    border-radius: 4px;
  }

  .step3Cta{
    padding: 28px 0 12px;
    margin-top: 20px;
  }

  .step3Btn{
    padding: 14px 24px;
    font-size: 16px;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 25%, transparent);
    transition: transform var(--t-med) var(--ease-out), 
                box-shadow var(--t-med) var(--ease-out);
  }

  .step3Btn:hover{
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 35%, transparent);
  }

  .step3Btn svg{
    width: 18px;
    height: 18px;
  }
}

/* Large desktop (1440px+) */
@media (min-width: 1400px){
  .step3Inner{
    padding: 28px 32px 32px;
  }

  .step3Title{
    font-size: 15px;
    margin: 16px 0 16px;
  }

  .tileGrid{
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }

  .tileLabel{
    font-size: 14px;
  }

  .step3CheckText{
    font-size: 16px;
  }

  .step3Btn{
    padding: 16px 28px;
    font-size: 17px;
    min-width: 240px;
  }
}

/* =========================
   Mobile fine tuning
   ========================= */

@media (max-width: 480px){
  .step3Inner{ padding: 8px 8px 10px; }

  /* keep 4 columns on mobile too */
  .tileGrid{
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }

  .step3CheckRow{ padding: 5px 0; }
  .step3CheckBox{ width:14px; height:14px; }

  .step3CheckRow input:checked + .step3CheckBox::after{
    left:3px;
    top:0.5px;
    width:3px;
    height:7px;
  }
}

@media (max-width: 480px){
  .tileGrid{ gap: 3px; }
  .tileLabel{ font-size: 10px; }
}
/* Icon tiles (Actieve deur) */
.tileBox--icon{
  background: var(--soft);
  display:grid;
  place-items:center;
}

.tileBox--icon svg{
  width: 70%;
  height: 70%;
  opacity: 0.85;
}

/* =========================
   COMPACT COLOR SWATCH GRID (Step 4)
   ========================= */

.colorSwatchGrid{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 6px 0;
}

.colorSwatch{
  display:flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform var(--t-fast);
}

.colorSwatch:active{
  transform: scale(0.95);
}

.colorSwatch input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.swatchCircle{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.colorSwatch input:checked + .swatchCircle{
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 2px 6px rgba(0,0,0,0.1);
  transform: scale(1.08);
}

.colorSwatch:focus-within .swatchCircle{
  box-shadow: var(--focus-ring);
}

@media (hover:hover){
  .colorSwatch:hover .swatchCircle{
    transform: scale(1.06);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  }
}

.swatchLabel{
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
  max-width: 56px;
}

@media (max-width: 480px){
  .colorSwatchGrid{
    gap: 10px;
  }
  .swatchCircle{
    width: 40px;
    height: 40px;
  }
  .swatchLabel{
    font-size: 10px;
    max-width: 48px;
  }
}

@media (max-width: 480px){
  .colorSwatchGrid{
    gap: 8px;
  }
  .swatchCircle{
    width: 36px;
    height: 36px;
  }
  .swatchLabel{
    font-size: 9px;
    max-width: 44px;
  }
}

@media (min-width: 1025px){
  .colorSwatchGrid{
    gap: 16px;
    padding: 8px 0;
  }
  .swatchCircle{
    width: 56px;
    height: 56px;
  }
  .swatchLabel{
    font-size: 12px;
    max-width: 64px;
  }
}

/* =========================
   FIELD HINT TEXT
   ========================= */
.fieldHint{
  font-size: 12px;
  color: var(--text-secondary, #6b8a94);
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 480px){
  .fieldHint{
    font-size: 11px;
  }
}
