/*
 * Bouwdroger offerteformulier
 * Every rule is scoped to #bdo-offerte-form so theme and Elementor styles don't leak in
 * and the form styles don't leak out.
 */

@font-face {
  font-family: "Archivo";
  src: url("https://www.bouwdroger-verhuur.be/wp-content/uploads/2026/04/Archivo-VariableFont_wdthwght.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("https://www.bouwdroger-verhuur.be/wp-content/uploads/2026/04/Inter-VariableFont_opszwght.ttf") format("truetype");
  font-display: swap;
}

#bdo-offerte-form {
  --primary: #018BCB;
  --primary-bright: #2EA3F2;
  --primary-soft: #EFF6FF;
  --secondary: #250F7C;
  --accent: #E8B900;
  --ink: #121212;
  --text: #2E2545;
  --muted: #657083;
  --line: #E5E7EB;
  --line-strong: #CBD5E1;
  --surface: #FFFFFF;
  --page: #F6F8FB;
  --danger: #B42318;
  --success: #15803D;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(18, 18, 18, 0.08);
  --speed: 180ms ease;

  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: block;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  text-align: left;
  letter-spacing: 0;
  background: transparent;
  -webkit-font-smoothing: antialiased;
}

#bdo-offerte-form *,
#bdo-offerte-form *::before,
#bdo-offerte-form *::after {
  box-sizing: border-box;
}

#bdo-offerte-form button,
#bdo-offerte-form input,
#bdo-offerte-form textarea {
  font: inherit;
  margin: 0;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  text-shadow: none;
}

#bdo-offerte-form button {
  cursor: pointer;
}

#bdo-offerte-form svg {
  fill: none;
}

#bdo-offerte-form .form-panel {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
}

#bdo-offerte-form .progress-wrap {
  min-width: 0;
  padding: 24px 30px 18px;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

#bdo-offerte-form .progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
  color: var(--muted);
  font-size: 14.4px;
}

#bdo-offerte-form .progress-step {
  font-weight: 700;
  color: var(--ink);
}

#bdo-offerte-form .progress-percent {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

#bdo-offerte-form .progress-track {
  height: 7px;
  width: 100%;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

#bdo-offerte-form .progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: inherit;
  transition: width 260ms ease;
}

#bdo-offerte-form .quote-form {
  min-height: 0;
  margin: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
}

#bdo-offerte-form .step {
  display: none;
  min-width: 0;
  padding: 36px 30px 22px;
  animation: bdoStepIn 240ms ease;
}

#bdo-offerte-form .step.active {
  display: block;
}

#bdo-offerte-form .step.going-back {
  animation-name: bdoStepBack;
}

@keyframes bdoStepIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bdoStepBack {
  from {
    opacity: 0;
    transform: translateX(-16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#bdo-offerte-form .step-title {
  margin: 0;
  padding: 0;
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 32px;
  line-height: 1.18;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  overflow-wrap: break-word;
}

#bdo-offerte-form .step-sub {
  margin: 10px 0 24px;
  padding: 0;
  max-width: 650px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: break-word;
}

#bdo-offerte-form .option-list {
  display: grid;
  gap: 12px;
}

#bdo-offerte-form .option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#bdo-offerte-form .option-row {
  width: 100%;
  height: auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  box-shadow: none;
  transition: border-color var(--speed), background var(--speed), box-shadow var(--speed);
}

#bdo-offerte-form .option-row:focus {
  background: #fff;
  color: var(--text);
  outline: none;
}

#bdo-offerte-form .option-row:hover,
#bdo-offerte-form .option-row:focus-visible {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
  outline: none;
}

#bdo-offerte-form .option-row.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(1, 139, 203, 0.13);
}

/* Two-column cards: icon and radio on top, text below at full card width. */
#bdo-offerte-form .option-grid .option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "icon dot"
    "text text";
  align-items: start;
  align-content: start;
  gap: 12px;
}

#bdo-offerte-form .option-grid .option-icon {
  grid-area: icon;
}

#bdo-offerte-form .option-grid .option-text {
  grid-area: text;
}

#bdo-offerte-form .option-grid .radio-dot {
  grid-area: dot;
  margin-top: 2px;
}

#bdo-offerte-form .option-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: #F8FAFC;
  color: var(--primary);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}

#bdo-offerte-form .option-row.selected .option-icon {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

#bdo-offerte-form .option-icon svg {
  width: 23px;
  height: 23px;
  display: block;
}

#bdo-offerte-form .option-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}

#bdo-offerte-form .option-title {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
}

#bdo-offerte-form .option-desc {
  color: var(--muted);
  font-size: 14.4px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

#bdo-offerte-form .standalone-input {
  margin-bottom: 16px;
}

#bdo-offerte-form .area-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

#bdo-offerte-form .area-unknown-btn {
  height: auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 14.72px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: none;
  transition: border-color var(--speed), background var(--speed), box-shadow var(--speed);
}

#bdo-offerte-form .area-unknown-btn:focus {
  background: #fff;
  color: var(--text);
  outline: none;
}

#bdo-offerte-form .area-unknown-btn:hover,
#bdo-offerte-form .area-unknown-btn:focus-visible {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--text);
  outline: none;
}

#bdo-offerte-form .area-unknown-btn[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: 0 0 0 3px rgba(1, 139, 203, 0.13);
}

#bdo-offerte-form .area-unknown-btn .radio-dot {
  width: 18px;
  height: 18px;
}

#bdo-offerte-form .area-unknown-btn[aria-pressed="true"] .radio-dot {
  border-color: var(--primary);
  background: var(--primary);
}

#bdo-offerte-form .area-unknown-btn[aria-pressed="true"] .radio-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

#bdo-offerte-form .area-row input:disabled {
  background: #F8FAFC;
  color: var(--muted);
  cursor: not-allowed;
}

#bdo-offerte-form .floor-unknown-divider {
  margin: 22px 0 12px;
  padding: 0;
  color: var(--muted);
  font-size: 14.4px;
}

#bdo-offerte-form .conditional-field {
  display: none;
  margin-top: 14px;
}

#bdo-offerte-form .conditional-field.visible {
  display: grid;
}

#bdo-offerte-form .conditional-field[hidden] {
  display: none !important;
}

#bdo-offerte-form .radio-dot {
  width: 21px;
  height: 21px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  flex: 0 0 auto;
  position: relative;
}

#bdo-offerte-form .option-row.selected .radio-dot {
  border-color: var(--primary);
  background: var(--primary);
}

#bdo-offerte-form .option-row.selected .radio-dot::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #fff;
}

#bdo-offerte-form .contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

#bdo-offerte-form .form-group {
  display: grid;
  gap: 7px;
  min-width: 0;
}

#bdo-offerte-form .form-group.full {
  grid-column: 1 / -1;
}

#bdo-offerte-form .form-group label {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-weight: 700;
  font-size: 14.72px;
  line-height: 1.35;
}

#bdo-offerte-form .group-label {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 14.72px;
  line-height: 1.35;
}

#bdo-offerte-form .group-hint {
  display: block;
  margin-top: -3px;
  color: var(--muted);
  font-size: 13.6px;
  line-height: 1.4;
}

#bdo-offerte-form .delivery-choice {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

#bdo-offerte-form .address-block {
  grid-column: 1 / -1;
  display: grid;
  gap: 15px;
}

#bdo-offerte-form .address-block[hidden] {
  display: none;
}

#bdo-offerte-form .optional-hint {
  color: var(--muted);
  font-weight: 400;
}

#bdo-offerte-form .address-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 15px;
}

#bdo-offerte-form .form-group[hidden] {
  display: none;
}

#bdo-offerte-form .segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #F8FAFC;
}

#bdo-offerte-form .segment,
#bdo-offerte-form .segment:focus {
  width: 100%;
  height: auto;
  min-height: 42px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
  outline: none;
  transition: background var(--speed), color var(--speed), border-color var(--speed);
}

#bdo-offerte-form .segment:hover,
#bdo-offerte-form .segment:focus-visible {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
  outline: none;
}

#bdo-offerte-form .segment.selected,
#bdo-offerte-form .segment.selected:hover,
#bdo-offerte-form .segment.selected:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

#bdo-offerte-form .required-star {
  color: var(--danger);
  margin-left: 3px;
}

#bdo-offerte-form input,
#bdo-offerte-form textarea {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  padding: 13px 14px;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
  outline: none;
  transition: border-color var(--speed), box-shadow var(--speed);
}

#bdo-offerte-form textarea {
  min-height: 110px;
  resize: vertical;
}

#bdo-offerte-form input:focus,
#bdo-offerte-form textarea:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(1, 139, 203, 0.13);
  outline: none;
}

#bdo-offerte-form input.invalid,
#bdo-offerte-form textarea.invalid {
  border-color: var(--line-strong);
  box-shadow: none;
}

#bdo-offerte-form .combo {
  position: relative;
}

#bdo-offerte-form .combo-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 280px;
  overflow-y: auto;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#bdo-offerte-form .combo-list[hidden] {
  display: none;
}

#bdo-offerte-form .combo-option {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

#bdo-offerte-form .combo-option::before,
#bdo-offerte-form .combo-option::marker {
  content: none;
}

#bdo-offerte-form .combo-option:hover,
#bdo-offerte-form .combo-option.active {
  background: var(--primary-soft);
}

#bdo-offerte-form .combo-zip {
  min-width: 40px;
  color: var(--ink);
  font-weight: 700;
}

#bdo-offerte-form .combo-alias {
  color: var(--muted);
  font-size: 13px;
}

#bdo-offerte-form .combo-empty {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14.4px;
  cursor: default;
}

#bdo-offerte-form .field-note {
  display: none;
  color: var(--danger);
  font-size: 13.12px;
  line-height: 1.4;
}

#bdo-offerte-form .field-note.visible {
  display: block;
}

#bdo-offerte-form .error-box {
  display: none;
  grid-column: 1 / -1;
  padding: 12px 14px;
  border: 1px solid rgba(180, 35, 24, 0.22);
  border-radius: var(--radius);
  background: #FFF1F0;
  color: var(--danger);
  font-weight: 700;
  line-height: 1.4;
}

#bdo-offerte-form .error-box.visible {
  display: block;
}

#bdo-offerte-form .thank-you {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 12px 0 22px;
}

#bdo-offerte-form .thanks-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ECFDF3;
  color: var(--success);
}

#bdo-offerte-form .thanks-icon svg {
  width: 34px;
  height: 34px;
}

#bdo-offerte-form .thank-you h2 {
  margin: 0;
  padding: 0;
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

#bdo-offerte-form .thank-you p {
  margin: 12px auto 22px;
  padding: 0;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
}

#bdo-offerte-form .summary-list {
  display: grid;
  gap: 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #F8FAFC;
}

#bdo-offerte-form .summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  line-height: 1.45;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

#bdo-offerte-form .summary-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

#bdo-offerte-form .summary-label {
  color: var(--muted);
  min-width: 110px;
}

#bdo-offerte-form .summary-value {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

#bdo-offerte-form .nav-row {
  margin-top: auto;
  padding: 20px 30px 30px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#bdo-offerte-form .btn {
  width: auto;
  height: auto;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
  transition: background var(--speed), border-color var(--speed), color var(--speed), box-shadow var(--speed);
}

#bdo-offerte-form .btn svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

#bdo-offerte-form .btn-primary,
#bdo-offerte-form .btn-primary:focus {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  outline: none;
}

#bdo-offerte-form .btn-primary:hover,
#bdo-offerte-form .btn-primary:focus-visible {
  color: #fff;
  background: #017CB5;
  border-color: #017CB5;
  box-shadow: 0 12px 25px rgba(1, 139, 203, 0.2);
  outline: none;
}

#bdo-offerte-form .btn-secondary,
#bdo-offerte-form .btn-secondary:focus {
  color: var(--primary);
  background: #fff;
  border-color: var(--line-strong);
  outline: none;
}

#bdo-offerte-form .btn-secondary:hover,
#bdo-offerte-form .btn-secondary:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
  outline: none;
}

#bdo-offerte-form .btn:disabled,
#bdo-offerte-form .btn:disabled:hover {
  opacity: 0.48;
  cursor: not-allowed;
  box-shadow: none;
}

#bdo-offerte-form .btn-primary:disabled:hover {
  background: var(--primary);
  border-color: var(--primary);
}

#bdo-offerte-form .submit-btn {
  display: none;
  min-width: 220px;
}

#bdo-offerte-form .submit-btn.visible {
  display: inline-flex;
}

#bdo-offerte-form .next-btn.hidden,
#bdo-offerte-form .back-btn.hidden,
#bdo-offerte-form .nav-row.hidden {
  display: none;
}

#bdo-offerte-form .next-btn,
#bdo-offerte-form .submit-btn {
  margin-left: auto;
}

#bdo-offerte-form .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bdoSpin 700ms linear infinite;
}

#bdo-offerte-form .spinner.visible {
  display: inline-block;
}

@keyframes bdoSpin {
  to {
    transform: rotate(360deg);
  }
}

#bdo-offerte-form .bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 680px) {
  #bdo-offerte-form .progress-wrap,
  #bdo-offerte-form .step,
  #bdo-offerte-form .nav-row {
    padding-left: 18px;
    padding-right: 18px;
  }

  #bdo-offerte-form .step {
    padding-top: 28px;
  }

  #bdo-offerte-form .step-title {
    font-size: 24.8px;
  }

  #bdo-offerte-form .option-grid,
  #bdo-offerte-form .contact-form-grid {
    grid-template-columns: 1fr;
  }

  #bdo-offerte-form .address-row {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 10px;
  }

  #bdo-offerte-form .option-row {
    min-height: 74px;
  }

  /* One column on phones: back to icon left, text, radio right. */
  #bdo-offerte-form .option-grid .option-row {
    display: flex;
    align-items: center;
    gap: 14px;
  }

  #bdo-offerte-form .option-grid .radio-dot {
    margin-top: 0;
  }

  #bdo-offerte-form .btn {
    padding: 12px 16px;
    min-width: 0;
    white-space: normal;
  }

  #bdo-offerte-form .submit-btn {
    min-width: 190px;
  }
}

@media (max-width: 520px) {
  #bdo-offerte-form .nav-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  #bdo-offerte-form .btn {
    width: 100%;
    min-width: 0;
  }

  #bdo-offerte-form .next-btn,
  #bdo-offerte-form .submit-btn {
    margin-left: 0;
  }
}
