/* ============================================================
   SOFTWASH CONFIGURATOR — CSS
   Alle kleuren via CSS custom properties zodat het WordPress
   admin-panel ze runtime kan overschrijven.
   ============================================================ */

/* ====== SCOPE ====== */
.swc-wrap, .swc-wrap * {
  box-sizing: border-box;
  font-family: var(--swc-font, 'Fredoka', sans-serif);
}
.swc-wrap {
  /* Afgeleide kleuren */
  --_p: var(--swc-primary, #3B5436);
  --_a: var(--swc-accent, #E16601);
  --_t: var(--swc-text, #2a3327);
  --_m: var(--swc-muted, #6b7668);
  --_border: color-mix(in srgb, var(--_p) 12%, #e8e8e8);
  --_soft: color-mix(in srgb, var(--_p) 8%, #fff);
  --_softer: color-mix(in srgb, var(--_p) 4%, #fff);
  --_a-soft: color-mix(in srgb, var(--_a) 10%, #fff);
  --_a-dark: color-mix(in srgb, var(--_a) 80%, #000);
  --_p-dark: color-mix(in srgb, var(--_p) 80%, #000);
  --_shadow: 0 8px 32px color-mix(in srgb, var(--_p) 7%, transparent);
  --_shadow-lg: 0 16px 48px color-mix(in srgb, var(--_p) 12%, transparent);
  --_radius: 18px;
  --_ph: color-mix(in srgb, var(--_m) 40%, #e0e0e0);

  max-width: 1060px;
  margin: 0 auto;
  padding: 0 12px 40px;
  color: var(--_t);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ====== HEADER ====== */
.swc-header { text-align: center; padding: 32px 16px 8px; }
.swc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--_soft); color: var(--_p);
  font-weight: 500; font-size: 13px; letter-spacing: .3px;
  padding: 7px 16px; border-radius: 999px; margin-bottom: 14px;
}
.swc-badge svg { flex-shrink: 0; }
.swc-header h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  font-weight: 700; color: var(--_p);
  line-height: 1.18; margin: 0 0 10px;
}
.swc-header p {
  color: var(--_m); max-width: 640px;
  margin: 0 auto; font-size: 16px; font-weight: 400;
}

/* ====== PROGRESS ====== */
.swc-progress {
  display: flex; align-items: center; justify-content: center;
  margin: 28px auto 30px; max-width: 520px; padding: 0 8px;
}
.swc-dot {
  display: flex; flex-direction: column; align-items: center;
  flex: 0 0 auto; z-index: 2;
}
.swc-dot .num {
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--_border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; color: var(--_m);
  transition: all .3s cubic-bezier(.4,0,.2,1);
}
.swc-dot .lbl {
  font-size: 12px; font-weight: 500; margin-top: 6px;
  color: var(--_m); transition: all .25s ease;
}
.swc-dot.active .num {
  background: var(--_p); border-color: var(--_p); color: #fff;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--_p) 10%, transparent);
  transform: scale(1.08);
}
.swc-dot.active .lbl { color: var(--_p); font-weight: 600; }
.swc-dot.done .num { background: var(--_a); border-color: var(--_a); color: #fff; }
.swc-dot.done .lbl { color: var(--_p); font-weight: 600; }
.swc-line {
  flex: 1; height: 3px; background: var(--_border);
  border-radius: 3px; position: relative;
  margin: 0 -2px; margin-top: -20px; z-index: 1; overflow: hidden;
}
.swc-line .fill {
  position: absolute; inset: 0 auto 0 0;
  width: 0%; background: var(--_a);
  border-radius: 3px; transition: width .45s cubic-bezier(.4,0,.2,1);
}

/* ====== CARD ====== */
.swc-card {
  background: #fff; border: 1px solid var(--_border);
  border-radius: 24px; padding: clamp(22px, 3.5vw, 40px);
  box-shadow: var(--_shadow); position: relative; overflow: hidden;
}
.swc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--_p), var(--_a));
  border-radius: 24px 24px 0 0;
}

/* ====== STEPS ====== */
.swc-step { display: none; animation: swcSlide .4s cubic-bezier(.4,0,.2,1); }
.swc-step.is-active { display: block; }
@keyframes swcSlide {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.swc-title {
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 600; color: var(--_p); margin: 0 0 6px;
}
.swc-intro { color: var(--_m); font-size: 15.5px; margin: 0 0 24px; max-width: 680px; }

/* ====== TILES ====== */
.swc-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px;
}
@media (max-width: 560px) { .swc-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (max-width: 380px) { .swc-tiles { grid-template-columns: 1fr; } }
.swc-tile {
  position: relative; background: #fff; border: 2px solid var(--_border);
  border-radius: var(--_radius); padding: 20px 16px 16px;
  cursor: pointer; transition: all .22s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; gap: 4px;
}
.swc-tile:hover {
  border-color: var(--_p); transform: translateY(-3px); box-shadow: var(--_shadow-lg);
}
.swc-tile.selected {
  border-color: var(--_p); background: var(--_softer);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--_p) 8%, transparent);
}
.swc-tile .ico {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--_soft); color: var(--_p);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px; transition: all .22s ease; flex-shrink: 0;
}
.swc-tile.selected .ico { background: var(--_a); color: #fff; }
.swc-tile .t-title { font-weight: 600; font-size: 15.5px; color: var(--_p); }
.swc-tile .t-copy { font-size: 13px; color: var(--_m); line-height: 1.4; }
.swc-tile .ck {
  position: absolute; top: 12px; right: 12px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--_border); background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s ease;
}
.swc-tile.selected .ck { background: var(--_a); border-color: var(--_a); }
.swc-tile .ck svg { opacity: 0; transition: opacity .15s; }
.swc-tile.selected .ck svg { opacity: 1; }

/* ====== CHIPS ====== */
.swc-fg { margin-bottom: 22px; }
.swc-label {
  display: block; font-weight: 600; color: var(--_p);
  margin-bottom: 10px; font-size: 15px;
}
.swc-sub { font-size: 13px; color: var(--_m); font-weight: 400; margin-left: 4px; }
.swc-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.swc-chip {
  padding: 10px 16px; border: 2px solid var(--_border);
  background: #fff; border-radius: 999px; cursor: pointer;
  font-size: 14px; color: var(--_t); transition: all .18s ease;
  font-weight: 500; user-select: none;
}
.swc-chip:hover { border-color: var(--_p); color: var(--_p); }
.swc-chip.sel { background: var(--_p); border-color: var(--_p); color: #fff; }

/* ====== m² TOGGLE ====== */
.swc-m2-toggle {
  display: inline-flex; gap: 0; margin-bottom: 12px;
  border: 2px solid var(--_border); border-radius: 999px;
  overflow: hidden;
}
.swc-m2-tab {
  padding: 8px 18px; border: none; background: #fff;
  cursor: pointer; font-size: 13.5px; font-weight: 500;
  color: var(--_m); transition: all .18s ease;
  font-family: inherit;
}
.swc-m2-tab.active { background: var(--_p); color: #fff; }
.swc-m2-tab:first-child { border-right: 1px solid var(--_border); }

/* ====== OPPERVLAKTE ====== */
.swc-opp {
  display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end;
}
.swc-opp .m2, .swc-m2-manual .m2-display {
  background: var(--_a-soft); color: var(--_a-dark);
  border-radius: 14px; padding: 13px 18px;
  font-weight: 600; text-align: center;
  min-height: 50px; display: flex; align-items: center; justify-content: center;
  white-space: nowrap; font-size: 15px;
}
.swc-m2-manual {
  display: flex; gap: 10px; align-items: end;
}
.swc-m2-manual .swc-input { max-width: 200px; }
@media (max-width: 560px) {
  .swc-opp { grid-template-columns: 1fr 1fr; }
  .swc-opp .m2 { grid-column: 1 / -1; }
  .swc-m2-manual { flex-direction: column; }
  .swc-m2-manual .swc-input { max-width: 100%; }
}

/* ====== INPUTS ====== */
.swc-input, .swc-textarea {
  width: 100%; padding: 13px 16px;
  border: 2px solid var(--_border); border-radius: 14px;
  background: #fff; font-size: 15px;
  color: var(--_t); font-family: inherit;
  transition: border .18s, box-shadow .18s;
}

/* PLACEHOLDER — zachtere kleur, geen verwarring met ingevulde waarde */
.swc-input::placeholder, .swc-textarea::placeholder {
  color: var(--_ph, #c3c9c0);
  opacity: 1;
  font-weight: 400;
  font-style: italic;
}
.swc-input::-webkit-input-placeholder, .swc-textarea::-webkit-input-placeholder {
  color: var(--_ph, #c3c9c0);
  font-style: italic;
}

.swc-input:focus, .swc-textarea:focus {
  outline: none; border-color: var(--_p);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--_p) 7%, transparent);
}
.swc-textarea { resize: vertical; min-height: 110px; }
.swc-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.swc-g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .swc-g2, .swc-g3 { grid-template-columns: 1fr; } }

/* ====== TRUST ====== */
.swc-trust {
  background: var(--_softer); border: 1px solid var(--_soft);
  border-left: 4px solid var(--_a);
  padding: 16px 18px; border-radius: 14px;
  display: flex; gap: 14px; align-items: flex-start;
  margin-top: 8px; font-size: 14px; color: var(--_p-dark); line-height: 1.5;
}
.swc-trust svg { flex-shrink: 0; margin-top: 1px; color: var(--_a); }
.swc-trust strong { color: var(--_p); }

/* ====== DUO BLOCK ====== */
.swc-duo {
  display: flex; gap: 16px; align-items: center;
  background: linear-gradient(135deg, var(--_p) 0%, var(--_p-dark) 100%);
  color: #fff; border-radius: 20px;
  padding: 18px 20px; margin-bottom: 22px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--_p) 20%, transparent);
}
.swc-duo .avs { display: flex; flex-shrink: 0; }
.swc-duo .av {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--_a); border: 3px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.swc-duo .av + .av { margin-left: -14px; border-color: var(--_p); }
.swc-duo .dtxt { font-size: 14.5px; line-height: 1.5; }
.swc-duo .dtxt strong { color: color-mix(in srgb, var(--_a) 50%, #fff); }

/* ====== SAMENVATTING ====== */
.swc-sum {
  background: var(--_softer); border: 1px solid var(--_soft);
  border-radius: 18px; padding: 20px 22px; margin-bottom: 24px;
}
.swc-sum h4 { margin: 0 0 12px; color: var(--_p); font-size: 16px; font-weight: 600; }
.swc-sum ul { list-style: none; display: grid; gap: 8px; padding: 0; margin: 0; }
.swc-sum li { display: flex; gap: 10px; font-size: 14.5px; color: var(--_t); flex-wrap: wrap; }
.swc-sum li strong { color: var(--_p); min-width: 140px; font-weight: 600; }
.swc-sum .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.swc-sum .tag {
  background: var(--_a); color: #fff;
  padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
}

/* ====== BUTTONS ====== */
.swc-actions {
  display: flex; justify-content: space-between;
  gap: 12px; margin-top: 28px; flex-wrap: wrap;
}
.swc-btn {
  font-family: inherit; font-weight: 600; font-size: 15px;
  padding: 14px 28px; border-radius: 999px;
  border: none; cursor: pointer;
  transition: all .22s cubic-bezier(.4,0,.2,1);
  display: inline-flex; align-items: center; gap: 8px;
}
.swc-btn-go {
  background: linear-gradient(135deg, var(--_a) 0%, color-mix(in srgb, var(--_a) 85%, #ffa500) 100%);
  color: #fff; box-shadow: 0 6px 20px color-mix(in srgb, var(--_a) 30%, transparent);
}
.swc-btn-go:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--_a) 38%, transparent);
}
.swc-btn-go:disabled {
  background: #c5ccc1; color: #fff;
  cursor: not-allowed; box-shadow: none; transform: none;
}
.swc-btn-back {
  background: transparent; color: var(--_p);
  border: 2px solid var(--_border);
}
.swc-btn-back:hover { border-color: var(--_p); background: var(--_soft); }

/* ====== CONSENT ====== */
.swc-consent {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 16px; font-size: 13.5px; color: var(--_m); line-height: 1.45;
  cursor: pointer;
}
.swc-consent input[type="checkbox"] {
  margin-top: 3px; accent-color: var(--_p);
  width: 18px; height: 18px; flex-shrink: 0;
}

/* ====== ERROR ====== */
.swc-err {
  color: var(--_a-dark); font-size: 13px;
  margin-top: 8px; display: none;
  padding: 8px 14px; background: var(--_a-soft);
  border-radius: 10px; font-weight: 500;
}
.swc-err.show { display: block; }

/* ====== SUCCESS ====== */
.swc-ok { display: none; text-align: center; padding: 24px 8px 10px; }
.swc-ok.is-active { display: block; animation: swcSlide .5s ease; }
.swc-ok .ok-icon {
  width: 76px; height: 76px; background: var(--_a); color: #fff;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--_a) 30%, transparent);
}
.swc-ok h3 { color: var(--_p); font-size: 26px; margin: 0 0 10px; font-weight: 600; }
.swc-ok p { color: var(--_m); max-width: 500px; margin: 0 auto 10px; }
.swc-ok .sign {
  margin-top: 20px; font-size: 15px;
  color: var(--_p); font-weight: 500; font-style: italic;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 520px) {
  .swc-duo { flex-direction: column; text-align: center; }
  .swc-duo .avs { justify-content: center; }
  .swc-actions { flex-direction: column-reverse; }
  .swc-actions .swc-btn { width: 100%; justify-content: center; }
}
