/* ==========================================================================
   OFFERTE-AANVRAAG — full-page multi lead flow
   ========================================================================== */

.offerte-page {
  background: var(--color-bg);
  min-height: 100vh;
}

.offerte-hero {
  padding: var(--space-32) 0 var(--space-24);
}

.offerte-hero .breadcrumb {
  margin-top: 10px;
  margin-bottom: 16px;
}

.offerte-eyebrow {
  margin: var(--space-8) 0 var(--space-16);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
}

.offerte-hero h1,
.offerte-success-card h1 {
  margin: 0 0 17px -3px;
  font-family: var(--font-body);
  font-size: 48px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--color-text);
}

.offerte-intro,
.offerte-success-card p {
  margin: 0;
  max-width: 900px;
  padding-bottom: 20px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-text);
}

.offerte-content {
  padding: 0 0 var(--space-120);
}

.offerte-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
}

.offerte-section,
.offerte-quote-card,
.offerte-success-card {
  background: var(--color-surface);
  border: var(--border);
  border-radius: var(--radius);
  padding: var(--space-32);
}

.offerte-section--form {
  padding: var(--space-48);
}

.offerte-section--plain {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.offerte-section-head {
  margin-bottom: var(--space-24);
}

.offerte-section--form .offerte-section-head {
  margin-bottom: var(--space-32);
}

.offerte-section-head h2,
.offerte-summary-block h2,
.offerte-selected-block h2,
.offerte-success-card h2 {
  margin: 0 0 var(--space-8);
  font-family: var(--font-body);
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-text);
}

.offerte-section-head p,
.offerte-summary-block p,
.offerte-trust-notice p,
.offerte-submit-note {
  margin: 0;
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  color: var(--color-text);
}

.offerte-company-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.offerte-company-card {
  position: relative;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color 150ms ease, background 150ms ease;
}

.offerte-company-card:hover {
  border-color: var(--color-accent);
}

.offerte-company-card.is-selected {
  border-color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 4%, var(--color-surface));
}

.offerte-company-card.is-primary {
  background: color-mix(in srgb, var(--color-accent) 5%, var(--color-surface));
}

.offerte-company-label {
  display: grid;
  grid-template-columns: 20px 112px minmax(0, 1fr);
  gap: var(--space-16);
  align-items: start;
  padding: var(--space-24);
  cursor: pointer;
}

.offerte-company-check {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  margin-top: 38px;
}

.offerte-company-check input {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.offerte-company-check span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-bg-medium);
  border-radius: 3px;
  background: var(--color-surface);
  transition: border-color 150ms ease, background 150ms ease;
}

.offerte-company-check input:checked + span {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.offerte-company-check input:checked + span::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--color-surface);
  border-bottom: 2px solid var(--color-surface);
  transform: rotate(-45deg) translateY(-1px);
}

.offerte-company-photo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: var(--radius);
  border: var(--border);
  background: var(--color-bg-medium);
}

.offerte-company-body,
.offerte-company-topline,
.offerte-company-meta,
.offerte-company-score,
.offerte-company-tags,
.offerte-company-service-tags {
  display: block;
  min-width: 0;
}

.offerte-company-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-12);
  margin-bottom: var(--space-4);
}

.offerte-company-topline strong {
  font: 500 24px/28px var(--font-body);
  color: var(--color-text);
}

.offerte-company-topline em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-accent);
}

.offerte-company-meta,
.offerte-company-score {
  font: 400 16px/1.5 var(--font-body);
  color: var(--color-text);
}

.offerte-company-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-8);
}

.offerte-company-meta img {
  flex: 0 0 auto;
}

.offerte-company-distance {
  font-weight: 600;
  color: var(--color-accent);
}

.offerte-company-score {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: var(--space-4);
}

.offerte-company-score-text {
  margin-left: var(--space-8);
}

.offerte-company-tags,
.offerte-company-service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.offerte-company-service-tags {
  margin-top: var(--space-8);
}

.offerte-company-tags span,
.offerte-company-service-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: var(--radius);
  padding: 0 15px;
  border: none;
  font: 600 14px/1 var(--font-body);
  color: var(--color-text);
  background: var(--color-bg-medium);
}

.offerte-company-service-tags span {
  background: var(--color-bg);
}

.offerte-sidebar-inner {
  position: sticky;
  top: 96px;
  margin-top: calc(var(--space-80) + var(--space-32) + 2px);
}

.offerte-quote-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-bg);
  border: 1px dotted var(--color-border);
  padding: var(--space-32);
}

.offerte-quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  margin-bottom: var(--space-24);
  padding-bottom: var(--space-24);
  border-bottom: var(--border);
}

.offerte-quote-logo {
  display: inline-flex;
  color: var(--color-text);
}

.offerte-quote-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent);
}

.offerte-summary-block {
  padding: 0 0 var(--space-24);
  margin-bottom: var(--space-24);
}

.offerte-selected-block {
  padding: var(--space-24) 0;
  margin-bottom: var(--space-24);
  border-top: var(--border);
}

.offerte-summary-list {
  margin: 0 0 var(--space-16);
}

.offerte-summary-list div {
  display: flex;
  justify-content: space-between;
  gap: var(--space-16);
  padding: var(--space-8) 0;
}

.offerte-summary-list div[hidden] {
  display: none;
}

.offerte-summary-list dt {
  flex: 0 0 50%;
  color: var(--color-muted);
}

.offerte-summary-list dd {
  flex: 1;
  margin: 0;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.offerte-selected-list,
.offerte-success-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.offerte-selected-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.offerte-selected-list li {
  display: grid;
  grid-template-columns: 24px 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-16) 0;
  overflow: hidden;
  opacity: 1;
  max-height: 120px;
  transform: translateY(0);
  transition: opacity 280ms ease, max-height 320ms ease, transform 280ms ease, padding 280ms ease;
}

.offerte-selected-list li.is-collapsing,
.offerte-selected-list li.is-entering {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  transform: translateY(-4px);
}

.offerte-selected-list li[hidden] {
  display: none;
}

.offerte-selected-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  background: var(--color-accent);
}

.offerte-selected-check::after {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--color-surface);
  border-bottom: 2px solid var(--color-surface);
  transform: rotate(-45deg) translateY(-1px);
}

.offerte-selected-photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: var(--border);
  border-radius: var(--radius);
  background: var(--color-bg-medium);
}

.offerte-selected-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.offerte-selected-body strong {
  margin-bottom: var(--space-4);
  font-size: 17px;
  line-height: 1.25;
  color: var(--color-text);
}

.offerte-selected-body span {
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text);
}

.offerte-selected-list em {
  font-style: normal;
  font-size: 12px;
  color: var(--color-accent);
}

.offerte-selected-block h2 span,
.offerte-success-block h2 span {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-muted);
  white-space: nowrap;
}

.offerte-success {
  padding: 20px 0 var(--space-120);
}

.offerte-selected-list--success li {
  grid-template-columns: 64px minmax(0, 1fr) auto;
}

.offerte-selected-list--success .offerte-selected-check,
.offerte-selected-list--success em {
  display: none;
}

.offerte-success-block {
  background: transparent;
  border: 0;
  padding: 0;
}

.offerte-success-block h2 {
  margin: 0 0 var(--space-16);
  font-family: var(--font-body);
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--color-text);
}

.offerte-success-btn {
  margin-top: var(--space-32);
  text-decoration: none;
}

.offerte-trust-notice {
  margin-top: var(--space-24);
  border: 1px dotted var(--color-border);
  border-radius: var(--radius);
  background: transparent;
  padding: var(--space-24);
}

.offerte-trust-notice strong {
  display: block;
  margin-bottom: var(--space-8);
}

.offerte-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  width: 100%;
  margin-top: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--color-red);
  color: var(--color-surface);
  padding: var(--space-16) var(--space-24);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  transition: background 250ms ease, color 250ms ease;
}

.offerte-submit-icon,
.offerte-submit-note span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.offerte-submit-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offerte-submit:hover,
.offerte-submit:focus-visible {
  background: var(--color-text);
}

.offerte-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.offerte-submit-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-top: calc(var(--space-16) + var(--space-4));
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
}

.offerte-submit-note svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.offerte-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: var(--space-24);
}

.offerte-field-grid label,
.offerte-textarea-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.offerte-field-grid label span,
.offerte-textarea-wrap span {
  font: var(--body-weight) var(--body-size)/var(--body-line-height) var(--body-font);
  color: var(--color-text);
}

.offerte-field-grid input,
.offerte-field-grid select,
.offerte-textarea-wrap textarea {
  width: 100%;
  border: 1px solid var(--color-bg-medium);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  padding: 12px 18px;
  font: 400 16px/1.5 var(--font-body);
  outline: none;
  box-sizing: border-box;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.offerte-field-grid input,
.offerte-field-grid select {
  height: 48px;
}

.offerte-field-grid input::placeholder,
.offerte-textarea-wrap textarea::placeholder {
  color: var(--color-muted);
}

.offerte-field-grid input:focus,
.offerte-field-grid select:focus,
.offerte-textarea-wrap textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-accent) 15%, transparent);
}

.offerte-textarea-wrap {
  margin-top: var(--space-24);
}

.offerte-textarea-wrap textarea {
  min-height: 160px;
  resize: vertical;
}

.offerte-upload {
  margin-top: var(--space-16);
}

.offerte-upload label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-12);
  border: 1px dashed var(--color-bg-medium);
  border-radius: var(--radius);
  padding: var(--space-16);
  cursor: pointer;
  background: var(--color-bg);
}

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

.offerte-upload-button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 var(--space-16);
  border: 1px solid var(--color-bg-medium);
  border-radius: var(--radius);
  background: var(--color-surface);
  font: 500 16px/1 var(--font-body);
}

.offerte-upload-copy,
.offerte-upload strong {
  font-size: 14px;
  color: var(--color-text);
}

#offerte-foto-error,
.offerte-inline-error,
.offerte-form-alert {
  margin: var(--space-12) 0 0;
  color: var(--color-red);
  font-weight: 700;
}

.offerte-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.offerte-success {
  padding: 20px 0 var(--space-120);
  background: var(--color-bg);
}

.offerte-success-card ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin: var(--space-16) 0 var(--space-32);
}

.offerte-success-card li {
  border-bottom: var(--border);
  padding-bottom: var(--space-8);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .offerte-hero h1,
  .offerte-success-card h1 {
    font-size: 44px;
    line-height: 1.15;
  }

  .offerte-sidebar-inner {
    position: static;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .offerte-hero {
    padding: var(--space-32) 0 var(--space-24);
  }

  .offerte-hero h1,
  .offerte-success-card h1 {
    font-size: 28px;
    line-height: 1.15;
  }

  .offerte-intro,
  .offerte-success-card p {
    font-size: 14px;
  }

  .offerte-section,
  .offerte-quote-card,
  .offerte-success-card {
    padding: var(--space-24);
  }

  .offerte-section--plain {
    padding: 0;
  }

  .offerte-company-label {
    grid-template-columns: 20px 76px minmax(0, 1fr);
    gap: var(--space-12);
    padding: var(--space-12);
  }

  .offerte-company-check {
    margin-top: 28px;
  }

  .offerte-company-photo {
    width: 76px;
    height: 76px;
  }

  .offerte-company-topline {
    flex-direction: column;
    gap: var(--space-4);
  }

  .offerte-company-topline strong {
    font-size: 18px;
    line-height: 1.25;
  }

  .offerte-selected-list li {
    grid-template-columns: 22px 56px minmax(0, 1fr);
  }

  .offerte-selected-photo {
    width: 56px;
    height: 56px;
  }

  .offerte-selected-list em {
    grid-column: 3;
    justify-self: start;
  }

  .offerte-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
