/*
 * Metech Reinigingsmiddelen — wizard styling
 * Hergebruikt CSS-variabelen en bezel-patronen uit de Keuzehulp-plugin.
 * Mobile-first. Class-prefix: .metech-rm-*
 */

:root {
  --mk-blue: #0D93D2;
  --mk-blue-dark: #0a76a8;
  --mk-green: #61CE70;
  --mk-green-dark: #4aa85a;
  --mk-orange: #FFA500;
  --mk-red: #d93025;
  --mk-text: #1f2a37;
  --mk-text-muted: #5b6675;
  --mk-border: #e2e6ea;
  --mk-bg: #ffffff;
  --mk-bg-soft: #f6f8fa;
  --mk-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --mk-shadow-lg: 0 6px 24px rgba(0, 0, 0, 0.12);
  --mk-bezel: 0 0 0 1px rgba(13, 147, 210, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -6px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --mk-bezel-hover: 0 0 0 1px rgba(13, 147, 210, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04), 0 18px 40px -8px rgba(13, 147, 210, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  --mk-radius: 14px;
  --mk-radius-sm: 8px;
  --mk-focus: 0 0 0 3px rgba(13, 147, 210, 0.35);
  --mk-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mk-ease-fast: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Root & container ---------- */

#metech-rm-root {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 20px 64px;
  font-family: "Open Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--mk-text);
  line-height: 1.6;
}

#metech-rm-root *,
#metech-rm-root *::before,
#metech-rm-root *::after {
  box-sizing: border-box;
}

#metech-rm-root h1,
#metech-rm-root h2,
#metech-rm-root h3 {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-weight: 700;
  color: var(--mk-text);
  line-height: 1.25;
  margin: 0 0 12px;
}

/* ---------- Header / progress ---------- */

.metech-rm-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.metech-rm-payoff {
  font-family: "Fira Sans", "Open Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mk-blue);
  margin: 0;
  padding: 0;
}

.metech-rm-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--mk-text-muted);
  letter-spacing: 0.01em;
  list-style: none;
  padding: 0;
  margin: 0;
}

.metech-rm-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.metech-rm-trust li::before {
  content: "✓";
  color: var(--mk-green);
  font-weight: 700;
  font-size: 12px;
}

.metech-rm-trust .metech-rm-trust-rating {
  font-weight: 700;
  color: var(--mk-text);
}

.metech-rm-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.metech-rm-progress {
  position: relative;
  flex: 1;
  height: 8px;
  background: var(--mk-bg-soft);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.metech-rm-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: linear-gradient(90deg, var(--mk-blue) 0%, var(--mk-green) 100%);
  border-radius: 999px;
  transition: width 420ms var(--mk-ease);
}

.metech-rm-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mk-text-muted);
  white-space: nowrap;
}

/* ---------- Card ---------- */

.metech-rm-card {
  background: var(--mk-bg);
  border-radius: var(--mk-radius);
  box-shadow: var(--mk-bezel);
  padding: 32px 28px;
}

.metech-rm-card h2 { font-size: 24px; }
.metech-rm-card p.metech-rm-subhead {
  margin: 0 0 24px;
  color: var(--mk-text-muted);
  font-size: 15px;
}

/* ---------- Form grid ---------- */

.metech-rm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .metech-rm-grid { grid-template-columns: 1fr 1fr; }
  .metech-rm-grid .metech-rm-field-full { grid-column: 1 / -1; }
}

.metech-rm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metech-rm-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--mk-text);
}

.metech-rm-field .required-mark { color: var(--mk-blue); margin-left: 2px; }

.metech-rm-field input[type="text"],
.metech-rm-field input[type="tel"],
.metech-rm-field input[type="email"],
.metech-rm-field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: var(--mk-text);
  background: var(--mk-bg);
  border: 1px solid var(--mk-border);
  border-radius: var(--mk-radius-sm);
  transition: border-color 200ms var(--mk-ease-fast), box-shadow 200ms var(--mk-ease-fast);
}

.metech-rm-field textarea {
  min-height: 96px;
  resize: vertical;
}

.metech-rm-field input:focus,
.metech-rm-field textarea:focus {
  outline: none;
  border-color: var(--mk-blue);
  box-shadow: var(--mk-focus);
}

.metech-rm-field.metech-rm-has-error input,
.metech-rm-field.metech-rm-has-error textarea {
  border-color: var(--mk-red);
}

.metech-rm-error {
  font-size: 13px;
  color: var(--mk-red);
  min-height: 18px;
}

.metech-rm-helper {
  font-size: 12px;
  color: var(--mk-text-muted);
  line-height: 1.4;
  margin-top: -2px;
}

/* Honeypot — blijf voor bots zichtbaar op de DOM, maar onzichtbaar voor mensen. */
.metech-rm-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

/* ---------- Buttons ---------- */

.metech-rm-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.metech-rm-actions .metech-rm-spacer { flex: 1; }

.metech-rm-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.metech-rm-cta-sub {
  font-size: 12px;
  color: var(--mk-text-muted);
  letter-spacing: 0.01em;
}

@media (max-width: 480px) {
  .metech-rm-cta-wrap { width: 100%; align-items: stretch; }
  .metech-rm-cta-sub { text-align: center; }
}

.metech-rm-callback {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--mk-bg-soft);
  border-radius: var(--mk-radius-sm);
  font-size: 14px;
  color: var(--mk-text-muted);
  text-align: center;
}
.metech-rm-callback strong { color: var(--mk-text); font-weight: 600; }
.metech-rm-callback a {
  color: var(--mk-blue);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.metech-rm-callback a:hover { text-decoration: underline; }

.metech-rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms var(--mk-ease-fast), box-shadow 200ms var(--mk-ease), background 160ms var(--mk-ease-fast);
  text-decoration: none;
}

.metech-rm-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.metech-rm-btn-primary {
  background: linear-gradient(180deg, var(--mk-green) 0%, var(--mk-green-dark) 100%);
  color: #fff;
  box-shadow: var(--mk-bezel);
}
.metech-rm-btn-primary:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: var(--mk-bezel-hover);
}
.metech-rm-btn-primary:focus-visible {
  outline: none;
  box-shadow: var(--mk-focus), var(--mk-bezel);
}

.metech-rm-btn-ghost {
  background: transparent;
  color: var(--mk-text);
  border: 1px solid var(--mk-border);
}
.metech-rm-btn-ghost:hover { background: var(--mk-bg-soft); }

/* ---------- Product cards (stap 3) ---------- */

.metech-rm-products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.metech-rm-product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 16px;
  background: var(--mk-bg);
  border: 1px solid var(--mk-border);
  border-radius: var(--mk-radius);
  box-shadow: var(--mk-bezel);
  transition: box-shadow 200ms var(--mk-ease), border-color 200ms var(--mk-ease-fast);
}

.metech-rm-product.is-selected {
  border-color: var(--mk-blue);
  box-shadow: var(--mk-bezel-hover);
}

.metech-rm-product h3 {
  font-size: 16px;
  margin: 0;
}

.metech-rm-product .metech-rm-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -4px 0 2px;
  flex-wrap: wrap;
}

.metech-rm-product .metech-rm-product-variant {
  font-size: 13px;
  color: var(--mk-text-muted);
  font-weight: 600;
}

.metech-rm-product .metech-rm-product-stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--mk-green-dark);
  background: rgba(97, 206, 112, 0.12);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.metech-rm-product .metech-rm-product-stock::before {
  content: "●";
  color: var(--mk-green);
  font-size: 9px;
  line-height: 1;
}

.metech-rm-product p {
  margin: 0;
  font-size: 14px;
  color: var(--mk-text-muted);
}

.metech-rm-product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
}

.metech-rm-product-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--mk-text);
}
.metech-rm-product-price small {
  display: block;
  font-size: 11px;
  color: var(--mk-text-muted);
  font-weight: 500;
}

/* ---------- Stepper (− 0 +) ---------- */

.metech-rm-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mk-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--mk-bg);
}

.metech-rm-stepper button {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: var(--mk-blue);
  cursor: pointer;
  transition: background 160ms var(--mk-ease-fast);
}
.metech-rm-stepper button:hover:not([disabled]) { background: var(--mk-bg-soft); }
.metech-rm-stepper button[disabled] { color: var(--mk-text-muted); cursor: not-allowed; }

.metech-rm-stepper input {
  width: 44px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--mk-border);
  border-right: 1px solid var(--mk-border);
  text-align: center;
  font: inherit;
  font-weight: 600;
  background: var(--mk-bg);
  -moz-appearance: textfield;
}
.metech-rm-stepper input::-webkit-outer-spin-button,
.metech-rm-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.metech-rm-stepper input:focus { outline: none; background: var(--mk-bg-soft); }

/* ---------- Order summary ---------- */

.metech-rm-summary {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--mk-bg-soft);
  border-radius: var(--mk-radius-sm);
  border: 1px dashed var(--mk-border);
}

.metech-rm-summary h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--mk-text-muted);
  margin: 0 0 8px;
}

.metech-rm-summary ul {
  margin: 0 0 8px;
  padding: 0 0 0 18px;
  font-size: 14px;
}

.metech-rm-summary-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  border-top: 1px solid var(--mk-border);
  padding-top: 8px;
  margin-top: 8px;
}

.metech-rm-summary-total small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--mk-text-muted);
}

/* ---------- Privacy checkbox ---------- */

.metech-rm-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 14px;
}

.metech-rm-consent input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--mk-blue);
}

.metech-rm-consent a {
  color: var(--mk-blue);
  text-decoration: underline;
}

/* ---------- Reassurance (risk-reversal, stap 3) ---------- */

.metech-rm-reassurance {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: var(--mk-radius-sm);
  background: rgba(13, 147, 210, 0.06);
  border: 1px solid rgba(13, 147, 210, 0.18);
  font-size: 13px;
  color: var(--mk-text);
  text-align: center;
  font-weight: 500;
}

/* ---------- Submit-error banner ---------- */

.metech-rm-banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--mk-radius-sm);
  background: #fdeceb;
  color: #8a1f18;
  border: 1px solid #f5c0bc;
  font-size: 14px;
}

/* ---------- Success state ---------- */

.metech-rm-success {
  text-align: center;
  padding: 20px 10px;
}

.metech-rm-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--mk-green) 0%, var(--mk-green-dark) 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 18px;
  box-shadow: var(--mk-bezel);
}

.metech-rm-success h2 { font-size: 26px; }
.metech-rm-success p { color: var(--mk-text-muted); max-width: 520px; margin: 8px auto 14px; }
.metech-rm-success p strong { color: var(--mk-text); }
.metech-rm-success a.metech-rm-success-tel {
  display: inline-block;
  font-weight: 700;
  color: var(--mk-blue);
  text-decoration: none;
}
.metech-rm-success a.metech-rm-success-tel:hover { text-decoration: underline; }
.metech-rm-success-cta { margin-top: 24px; }

/* ---------- Loading state ---------- */

.metech-rm-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  color: var(--mk-text-muted);
  font-size: 14px;
}

@media (max-width: 480px) {
  .metech-rm-card { padding: 22px 18px; }
  .metech-rm-actions .metech-rm-btn { flex: 1; justify-content: center; }
}
