/* ==========================================================================
 * Hardeman Motorsport B.V. — Sper Differentieel Vinder (Maatvoering Matcher)
 * Strikte Hardeman & Motorsportparts.nl Huisstijl:
 * - Uitsluitend Roboto + tabular-nums (geen monospace, geen emoji's, geen pills)
 * - Max 2px border-radius, 1px solid #D1D5DB kaders, #1F3140 Navy, #EC6921 Oranje
 * ========================================================================== */

.hm-lsd-finder,
.hm-lsd-finder *,
.hm-lsd-finder *::before,
.hm-lsd-finder *::after {
  box-sizing: border-box;
}

.hm-lsd-finder {
  width: 100%;
  margin: 24px 0 36px 0;
  background: #F3F4F6;
  color: #111827;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  line-height: 1.45;
  border: 1px solid #D1D5DB;
  border-top: 3px solid #1F3140;
  border-radius: 2px;
  overflow: hidden;
  text-align: left;
}

.hm-lsd-finder h2,
.hm-lsd-finder h3,
.hm-lsd-finder h4,
.hm-lsd-finder p,
.hm-lsd-finder label,
.hm-lsd-finder input,
.hm-lsd-finder textarea,
.hm-lsd-finder button {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */
.hm-lsd-finder .hm-lf-head {
  background: #FFFFFF;
  border-bottom: 2px solid #1F3140;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hm-lsd-finder .hm-lf-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #355670;
  margin-bottom: 2px;
}

.hm-lsd-finder .hm-lf-title {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.25 !important;
}

.hm-lsd-finder .hm-lf-subtitle {
  margin: 3px 0 0 0 !important;
  font-size: 12.5px !important;
  color: #6B7280 !important;
}

.hm-lsd-finder .hm-lf-lang-group {
  display: inline-flex;
  border: 1px solid #D1D5DB;
  border-radius: 2px;
  overflow: hidden;
  background: #F9FAFB;
}

.hm-lsd-finder button.hm-lf-lang-btn {
  appearance: none;
  -webkit-appearance: none;
  border: none !important;
  border-right: 1px solid #D1D5DB !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #374151 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 6px 9px !important;
  margin: 0 !important;
  cursor: pointer;
  line-height: 1 !important;
  text-transform: uppercase;
  box-shadow: none !important;
}

.hm-lsd-finder button.hm-lf-lang-btn:last-child {
  border-right: none !important;
}

.hm-lsd-finder button.hm-lf-lang-btn.is-active {
  background: #1F3140 !important;
  color: #FFFFFF !important;
}

/* ---------- Interactive Measurement Blueprint ---------- */
.hm-lsd-finder .hm-lf-diagram-bar {
  background: #14202B;
  border-bottom: 1px solid #D1D5DB;
  padding: 14px 20px;
}

.hm-lsd-finder .hm-lf-diagram-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.hm-lsd-finder .hm-lf-diagram-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #CBD5E1;
}

.hm-lsd-finder .hm-lf-diagram-active {
  font-size: 12px;
  font-weight: 700;
  color: #EC6921;
}

.hm-lsd-finder canvas.hm-lf-canvas {
  display: block;
  width: 100%;
  height: 235px;
  background: #0F1722;
  border: 1px solid #2A3B4C;
  border-radius: 2px;
}

/* ---------- Measurement Field Groups ---------- */
.hm-lsd-finder .hm-lf-form-wrap {
  background: #FFFFFF;
  padding: 18px 20px;
  border-bottom: 1px solid #D1D5DB;
}

.hm-lsd-finder .hm-lf-info-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 12px;
  background: #F9FAFB;
  border: 1px solid #D1D5DB;
  border-radius: 2px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: #374151;
}

.hm-lsd-finder .hm-lf-counter {
  font-weight: 700;
  color: #1F3140;
}

.hm-lsd-finder .hm-lf-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.hm-lsd-finder .hm-lf-group {
  background: #F9FAFB;
  border: 1px solid #D1D5DB;
  border-top: 2px solid #355670;
  border-radius: 2px;
  padding: 12px 14px;
}

.hm-lsd-finder .hm-lf-group-title {
  margin: 0 0 10px 0 !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1F3140 !important;
}

.hm-lsd-finder .hm-lf-field {
  margin-bottom: 9px;
}

.hm-lsd-finder .hm-lf-field:last-child {
  margin-bottom: 0;
}

.hm-lsd-finder .hm-lf-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1F3140;
  margin-bottom: 3px;
}

.hm-lsd-finder .hm-lf-code {
  font-size: 11px;
  font-weight: 700;
  color: #355670;
  background: #E5E7EB;
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
}

.hm-lsd-finder .hm-lf-field.is-focused .hm-lf-code {
  background: #EC6921;
  color: #FFFFFF;
}

.hm-lsd-finder .hm-lf-input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hm-lsd-finder input[type="text"],
.hm-lsd-finder input[type="number"],
.hm-lsd-finder input[type="email"],
.hm-lsd-finder input[type="tel"],
.hm-lsd-finder textarea {
  width: 100%;
  background: #FFFFFF !important;
  color: #111827 !important;
  border: 1px solid #D1D5DB !important;
  border-radius: 2px !important;
  padding: 7px 9px !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.hm-lsd-finder input:focus,
.hm-lsd-finder textarea:focus {
  outline: none !important;
  border-color: #EC6921 !important;
}

.hm-lsd-finder .hm-lf-unit {
  font-size: 11.5px;
  color: #6B7280;
  white-space: nowrap;
  flex: 0 0 auto;
}

.hm-lsd-finder .hm-lf-weld-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 5px 8px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
}

.hm-lsd-finder .hm-lf-weld-check input {
  width: auto !important;
  margin: 0 !important;
  accent-color: #EC6921;
}

/* ---------- Action Bar ---------- */
.hm-lsd-finder .hm-lf-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.hm-lsd-finder button.hm-lf-btn-primary {
  appearance: none;
  -webkit-appearance: none;
  background: #EC6921 !important;
  border: 1px solid #EC6921 !important;
  border-radius: 2px !important;
  color: #FFFFFF !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 10px 20px !important;
  margin: 0 !important;
  cursor: pointer;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

.hm-lsd-finder button.hm-lf-btn-primary:hover {
  background: #D65A16 !important;
  border-color: #D65A16 !important;
}

.hm-lsd-finder button.hm-lf-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hm-lsd-finder button.hm-lf-btn-secondary {
  appearance: none;
  -webkit-appearance: none;
  background: #FFFFFF !important;
  border: 1px solid #1F3140 !important;
  border-radius: 2px !important;
  color: #1F3140 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 9px 16px !important;
  margin: 0 !important;
  cursor: pointer;
  line-height: 1.2 !important;
  box-shadow: none !important;
}

.hm-lsd-finder button.hm-lf-btn-secondary:hover {
  background: #1F3140 !important;
  color: #FFFFFF !important;
}

.hm-lsd-finder .hm-lf-msg {
  font-size: 12.5px;
  font-weight: 600;
  color: #B45309;
}

.hm-lsd-finder .hm-lf-msg.is-err {
  color: #DC2626;
}

/* ---------- Results Panel ---------- */
.hm-lsd-finder .hm-lf-results {
  background: #F9FAFB;
  padding: 18px 20px;
  border-bottom: 1px solid #D1D5DB;
  display: none;
}

.hm-lsd-finder .hm-lf-results.is-visible {
  display: block;
}

.hm-lsd-finder .hm-lf-res-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hm-lsd-finder .hm-lf-res-title {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1F3140 !important;
}

.hm-lsd-finder .hm-lf-res-total {
  font-size: 12.5px;
  font-weight: 700;
  color: #15803D;
}

.hm-lsd-finder .hm-lf-res-total.is-zero {
  color: #B45309;
}

.hm-lsd-finder .hm-lf-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.hm-lsd-finder .hm-lf-brand-card {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-top: 2px solid #1F3140;
  border-radius: 2px;
  padding: 10px 12px;
}

.hm-lsd-finder .hm-lf-brand-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
}

.hm-lsd-finder .hm-lf-brand-hits {
  font-size: 12px;
  font-weight: 600;
  color: #355670;
  margin-top: 2px;
}

.hm-lsd-finder .hm-lf-res-note {
  margin: 0 !important;
  font-size: 12.5px;
  color: #4B5563;
}

/* ---------- Inquiry Form ---------- */
.hm-lsd-finder .hm-lf-inquiry {
  background: #FFFFFF;
  padding: 18px 20px;
  display: none;
}

.hm-lsd-finder .hm-lf-inquiry.is-visible {
  display: block;
}

.hm-lsd-finder .hm-lf-inq-title {
  margin: 0 0 4px 0 !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: #1F3140 !important;
}

.hm-lsd-finder .hm-lf-inq-sub {
  margin: 0 0 14px 0 !important;
  font-size: 12.5px;
  color: #4B5563;
}

.hm-lsd-finder .hm-lf-inq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.hm-lsd-finder .hm-lf-inq-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1F3140;
  margin-bottom: 3px;
}

.hm-lsd-finder .hm-lf-opt {
  font-weight: 400;
  color: #6B7280;
}

.hm-lsd-finder .hm-lf-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hm-lsd-finder .hm-lf-success {
  padding: 12px 14px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-left: 3px solid #15803D;
  border-radius: 2px;
  color: #166534;
  font-size: 13px;
  font-weight: 500;
  margin-top: 12px;
  display: none;
}

.hm-lsd-finder .hm-lf-success.is-visible {
  display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hm-lsd-finder .hm-lf-groups,
  .hm-lsd-finder .hm-lf-inq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hm-lsd-finder .hm-lf-groups,
  .hm-lsd-finder .hm-lf-inq-grid {
    grid-template-columns: 1fr;
  }
  .hm-lsd-finder canvas.hm-lf-canvas {
    height: 205px;
  }
}
