/* ============================================================
   Schadeverzekeringen vergelijker — Goudse vs. OOM
   Hergebruikt de design tokens en componenten uit main.css /
   components.css (.formfield, .date-inputs, .autocomplete-list,
   .toggle, .counter, .form__submit, .card, .form-section__title).
   ============================================================ */

[x-cloak] {
  display: none !important;
}

.schade {
  --schade-oom: 96, 125, 139;
  --schade-green: 0, 140, 53;
  --schade-ink: 33, 37, 41;
}

/* ----- Titelbalk (formulier + resultaten) ----- */
.schade-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(var(--color-blue-primary), 0.08);
  padding: 14px 20px;
  border-radius: 8px;
}
.schade-titlebar__title {
  font-family: Poppins, sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: rgb(var(--color-blue-primary));
  margin: 0;
  line-height: 1.2;
}
.schade-titlebar__sub {
  margin: 6px 0 0;
  font-size: 15px;
  color: #555;
}
.schade-titlebar__img {
  height: 92px;
  width: auto;
  flex-shrink: 0;
}
/* ----- Resultaten-wrapper ----- */
.schade-results-outer {
  background: #fff;
  border: 1px solid rgb(var(--color-grey));
  border-radius: 24px;
  padding: 30px;
  margin-bottom: 40px;
}

/* ----- Formulier ----- */
.schade-formwrap {
  max-width: 720px;
  margin: 0 auto;
}

/* ============================ RESULTATEN ============================ */

.schade-notice {
  margin-bottom: 16px;
}

/* ----- Module-kaart ----- */
.schade-module {
  background: #fff;
  border: 1px solid rgb(var(--color-grey));
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 22px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.schade-module:hover {
  border-color: rgba(var(--color-blue-primary), 0.5);
  box-shadow: 0 6px 20px rgba(var(--color-blue-primary), 0.1);
}
.schade-module--off {
  opacity: 0.9;
}
.schade-module__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(135deg, rgb(var(--color-blue-primary)) 0%, rgb(0, 91, 181) 100%);
}
.schade-module--off .schade-module__header {
  background: linear-gradient(135deg, #9aa0a6 0%, #7c8186 100%);
}
.schade-module__title {
  font-family: Poppins, sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.schade-module__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgb(var(--color-grey-light));
}

/* ----- Kolom ----- */
.schade-column {
  background: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.schade-column--goudse {
  border-right: 1px solid rgb(var(--color-grey));
}
.schade-column__insurer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgb(var(--color-grey-light));
}
.schade-column__logo {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgb(var(--color-grey));
  border-radius: 12px;
  padding: 7px;
}
.schade-column__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.schade-column__name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: rgb(var(--schade-ink));
}
.schade-column__pkg {
  display: block;
  font-size: 13px;
  color: #888;
}
.schade-column__body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.schade-column__links {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.schade-unavailable {
  margin: 8px 0;
  padding: 22px;
  text-align: center;
  font-size: 14px;
  font-style: italic;
  color: #999;
  background: rgb(var(--color-grey-light));
  border: 1px dashed rgb(var(--color-grey));
  border-radius: 10px;
}

/* ----- Velden in de resultaten ----- */
.schade-field {
  margin-bottom: 16px;
}
.schade-field__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: rgb(var(--schade-ink));
}
.schade-select {
  width: 100%;
  padding: 10px 13px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  color: rgb(var(--schade-ink));
  background: #fff;
  border: 1px solid rgb(var(--color-grey));
  border-radius: 10px;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.schade-select:focus {
  outline: none;
  border-color: rgb(var(--color-blue-primary));
  box-shadow: 0 0 0 3px rgba(var(--color-blue-primary), 0.15);
}
.schade-select--nested {
  margin-top: 8px;
}

/* ----- Slider ----- */
.schade-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgb(var(--color-grey-medium));
  border-radius: 999px;
  outline: none;
}
.schade-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: rgb(var(--color-blue-primary));
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.schade-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: rgb(var(--color-blue-primary));
  border: 3px solid #fff;
  border-radius: 50%;
  cursor: pointer;
}
.schade-slider__scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
  margin-top: 5px;
}

/* ----- Extra opties ----- */
.schade-extra {
  margin-bottom: 16px;
}
.schade-extra__heading {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--color-blue-primary));
  margin-bottom: 8px;
}
.schade-extra__item {
  margin-bottom: 8px;
}
.schade-extra__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgb(var(--color-grey-light));
  border: 1px solid rgb(var(--color-grey));
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.schade-extra__row--on {
  background: rgba(var(--color-blue-primary), 0.07);
  border-color: rgba(var(--color-blue-primary), 0.4);
}
.schade-extra__row input {
  width: 17px;
  height: 17px;
  accent-color: rgb(var(--color-blue-primary));
  cursor: pointer;
}
.schade-extra__name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
}
.schade-extra__price {
  font-size: 13px;
  font-weight: 600;
  color: rgb(var(--color-blue-primary));
  background: rgba(var(--color-blue-primary), 0.1);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ----- Module aan/uit-schakelaar (in de kop) ----- */
.schade-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.schade-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.schade-toggle__track {
  position: relative;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  transition: background 0.18s ease;
}
.schade-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.18s ease;
}
.schade-toggle input:checked + .schade-toggle__track {
  background: rgba(255, 255, 255, 0.55);
}
.schade-toggle input:checked + .schade-toggle__track .schade-toggle__thumb {
  transform: translateX(20px);
}
.schade-toggle input:focus-visible + .schade-toggle__track {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* ============================ TOTAALBALK ============================ */
.schade-total {
  background: #fff;
  border: 1px solid rgb(var(--color-grey));
  border-radius: 20px;
  padding: 32px;
  margin-top: 28px;
}
.schade-total__head {
  text-align: center;
  margin-bottom: 26px;
}
.schade-total__title {
  font-family: Poppins, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: rgb(var(--color-blue-primary));
  margin: 0;
}
.schade-total__sub {
  margin: 4px 0 0;
  font-size: 14px;
  color: #888;
}
.schade-total__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
}
.schade-total__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 20px 22px;
  border-radius: 16px;
  background: rgb(var(--color-grey-light));
  border: 2px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.schade-total__card--winner {
  background: rgba(var(--schade-green), 0.07);
  border-color: rgb(var(--schade-green));
}
.schade-total__tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: rgb(var(--schade-green));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.schade-total__logo {
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  margin-bottom: 14px;
}
.schade-total__insurer {
  font-size: 16px;
  font-weight: 600;
  color: rgb(var(--schade-ink));
}
.schade-total__pkg {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}
.schade-total__amount {
  font-family: "Zilla Slab", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.05;
  color: rgb(var(--schade-ink));
}
.schade-total__card--winner .schade-total__amount {
  color: rgb(var(--schade-green));
}
.schade-total__per {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}
.schade-total__vs {
  align-self: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid rgb(var(--color-grey));
  font-weight: 700;
  font-size: 13px;
  color: #aaa;
  text-transform: uppercase;
}
.schade-total__saving {
  text-align: center;
  margin: 22px 0 0;
  font-size: 15px;
  color: rgb(var(--schade-ink));
}

/* ============================ KNOPPEN ============================ */
.schade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.schade-btn:active {
  transform: translateY(1px);
}
.schade-btn--primary {
  background: rgb(var(--color-blue-primary));
  color: #fff;
  border-color: rgb(var(--color-blue-primary));
  box-shadow:
    0 4px 8px rgba(var(--color-blue-primary), 0.3),
    0 0 4px rgba(var(--color-blue-primary), 0.2);
}
.schade-btn--primary:hover {
  box-shadow:
    0 1px 2px rgba(var(--color-blue-primary), 0.3),
    0 0 4px rgba(var(--color-blue-primary), 0.2);
}
.schade-btn--outline {
  background: #fff;
  color: rgb(var(--color-blue-primary));
  border-color: rgb(var(--color-blue-primary));
}
.schade-btn--outline:hover {
  background: rgba(var(--color-blue-primary), 0.07);
}
.schade-btn--ghost {
  background: #fff;
  color: #555;
  border-color: rgb(var(--color-grey));
}
.schade-btn--ghost:hover {
  border-color: rgb(var(--color-blue-primary));
  color: rgb(var(--color-blue-primary));
}
.schade-btn--sm {
  flex: 1;
  padding: 8px 12px;
  font-size: 12.5px;
  border-radius: 10px;
}
.schade-btn--lg {
  padding: 13px 26px;
  font-size: 15px;
}

.schade-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 720px) {
  .schade-results-outer {
    padding: 16px;
    border-radius: 16px;
  }
  .schade-titlebar__title {
    font-size: 22px;
  }
  .schade-titlebar__img {
    height: 60px;
  }
  .schade-module__body {
    grid-template-columns: 1fr;
  }
  .schade-column--goudse {
    border-right: none;
    border-bottom: 1px solid rgb(var(--color-grey));
  }
  .schade-total {
    padding: 24px 18px;
  }
  .schade-total__grid {
    grid-template-columns: 1fr;
  }
  .schade-total__vs {
    margin: 0 auto;
  }
  .schade-total__amount {
    font-size: 2.1rem;
  }
  .schade-btn--lg {
    width: 100%;
  }
}
