.planner-offerte-form {
  --pof-border: rgba(0, 0, 0, 0.12);
  --pof-bg: #fff;
  --pof-fg: #111;
  --pof-muted: rgba(0, 0, 0, 0.65);
  --pof-primary: #111827;
  --pof-primary-fg: #fff;
  --pof-accent: #2563eb;
  --pof-secondary: #f3f4f6;
  --pof-radius: 12px;
  --pof-gap: 14px;
  --pof-padding: 18px;

  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  background: var(--pof-bg);
  color: var(--pof-fg);
  border: 1px solid var(--pof-border);
  border-radius: var(--pof-radius);
  padding: 0 var(--pof-padding) var(--pof-padding);
}

.planner-offerte-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.planner-offerte-form input,
.planner-offerte-form select,
.planner-offerte-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--pof-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--pof-fg);
  background: var(--pof-bg);
}

.planner-offerte-form textarea {
  resize: vertical;
}

.pof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pof-gap);
}

.pof-tabs-wrap {
  margin: 0 calc(var(--pof-padding) * -1) 16px;
}

.pof-step {
  display: none;
}

.pof-step.is-active {
  display: block;
}

.pof-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 0;
}

.planner-offerte-form .pof-checkbox input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  opacity: 1 !important;
  position: static !important;
  clip: auto !important;
  clip-path: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  padding: 0 !important;
  margin: 2px 0 0 !important;
  border-radius: 4px;
  accent-color: var(--pof-accent) !important;
}

.pof-checkbox a {
  color: var(--pof-accent);
  text-decoration: underline;
}

/* ── Phone with country code ── */
.pof-phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--pof-border);
  border-radius: 10px;
}

.planner-offerte-form .pof-phone-country {
  flex-shrink: 0;
  width: 90px;
  min-width: 90px;
  border: 0;
  border-right: 1px solid var(--pof-border);
  border-radius: 10px 0 0 10px;
  padding: 10px 6px 10px 10px;
  font-size: 14px;
  background-color: #f9fafb;
  cursor: pointer;
}

.planner-offerte-form .pof-phone-custom {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  border: 0;
  border-right: 1px solid var(--pof-border);
  border-radius: 0;
  padding: 10px 4px 10px 8px;
  font-size: 14px;
  text-align: center;
  background-color: #f9fafb;
}

.planner-offerte-form .pof-phone-custom[hidden] {
  display: none;
}

.planner-offerte-form .pof-phone-country.has-custom {
  border-right: 0;
  border-radius: 10px 0 0 10px;
}

.planner-offerte-form .pof-phone-wrap input[type="tel"] {
  border: 0;
  border-radius: 0 10px 10px 0;
  flex: 1;
  min-width: 0;
}

.pof-business-fields {
  display: contents;
}

.pof-business-fields[hidden] {
  display: none;
}

.pof-return-locations {
  display: contents;
}

.pof-return-locations[hidden] {
  display: none;
}

.pof-step[data-step="contact"] .pof-grid {
  margin-top: 8px;
}

.pof-name-field.is-first {
  margin-right: 6px;
}

.pof-name-field.is-last {
  margin-left: 6px;
}

.planner-offerte-form .pof-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 6px;
  border: 2px solid var(--pof-border);
  border-radius: var(--pof-radius) var(--pof-radius) 6px 6px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}

/* Theme-proof: thema's (Elementor e.d.) stylen <button> vaak agressief met eigen
   kleur/achtergrond/radius, waardoor inactieve tab-labels onleesbaar werden
   (witte tekst op wit). Daarom hier expliciete waardes met !important. */
.planner-offerte-form .pof-tab {
  appearance: none;
  -webkit-appearance: none;
  background: transparent !important;
  color: var(--pof-primary) !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-family: inherit !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 !important;
  padding: 12px 16px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.planner-offerte-form .pof-tab:hover {
  background: var(--pof-secondary) !important;
  color: var(--pof-primary) !important;
}

.planner-offerte-form .pof-tab.is-active,
.planner-offerte-form .pof-tab.is-active:hover {
  background: var(--pof-accent) !important;
  color: #fff !important;
}

.planner-offerte-form .pof-tab:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.pof-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pof-field {
  min-width: 0;
  position: relative;
}

.pof-locked {
  opacity: 0.55;
  filter: blur(0.4px);
  pointer-events: none;
}

.pof-locked input,
.pof-locked select,
.pof-locked textarea,
.pof-locked button {
  pointer-events: none;
}

.pof-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--pof-gap);
}

.pof-merge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--pof-border);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.pof-merge input {
  border: 0;
  padding: 6px 0;
  font-size: 14px;
}

.pof-merge-divider {
  width: 1px;
  height: 22px;
  background: var(--pof-border);
}

.pof-merge-time {
  flex: 1;
  min-width: 110px;
}
.pof-autocomplete-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--pof-border);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  z-index: 20;
  max-height: 240px;
  overflow: auto;
}

.pof-autocomplete-item {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 14px;
}

.pof-autocomplete-item:hover {
  background: #f3f4f6;
}

.pof-radio-group {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.pof-radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Theme-proof: thema's verbergen native radio's soms (appearance:none/opacity:0)
   voor eigen bolletjes — dan verdween het rondje volledig. Hard terugzetten. */
.planner-offerte-form .pof-radio input[type="radio"] {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  opacity: 1 !important;
  position: static !important;
  clip: auto !important;
  clip-path: none !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--pof-accent) !important;
}

.pof-span-2 {
  grid-column: 1 / -1;
}

.pof-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pof-actions .pof-status {
  flex-basis: 100%;
  margin-top: 4px;
}

.pof-advanced {
  border: 1px dashed var(--pof-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 16px;
  background: #fafafa;
}

.pof-advanced summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.pof-advanced summary::-webkit-details-marker {
  display: none;
}

.pof-advanced summary::after {
  content: '▾';
  float: right;
  opacity: 0.6;
}

.pof-advanced[open] summary::after {
  content: '▴';
}

.pof-advanced .pof-advanced-body {
  margin-top: 12px;
}

/* Theme-proof: expliciete waardes met !important zodat thema-knopstijlen
   (kleur/achtergrond/radius) de formulierknoppen niet kunnen overschrijven */
.planner-offerte-form .pof-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 10px 14px;
  font-weight: 700;
  font-family: inherit !important;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  margin: 0;
  cursor: pointer;
}

.planner-offerte-form .pof-btn-primary,
.planner-offerte-form .pof-btn-primary:hover,
.planner-offerte-form .pof-btn-primary:focus {
  background: var(--pof-primary) !important;
  color: var(--pof-primary-fg) !important;
}

.planner-offerte-form .pof-btn-secondary,
.planner-offerte-form .pof-btn-secondary:hover,
.planner-offerte-form .pof-btn-secondary:focus {
  background: var(--pof-secondary) !important;
  color: var(--pof-fg) !important;
}

.planner-offerte-form .pof-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.pof-status {
  font-size: 14px;
  color: var(--pof-muted);
  white-space: pre-line;
}

.pof-status.is-error {
  color: #b91c1c;
}

.pof-status.is-success {
  color: #047857;
}

.pof-status.is-info {
  color: #1d4ed8;
}

.pof-stops {
  border: 1px dashed var(--pof-border);
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
  overflow: visible;
}

.pof-stops legend {
  font-weight: 700;
  padding: 0 6px;
}

.pof-stops-list {
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.pof-stop {
  padding: 10px;
  border: 1px solid var(--pof-border);
  border-radius: 12px;
  margin-bottom: 10px;
}

.pof-stop-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--pof-gap);
}

.pof-link {
  border: 0;
  background: transparent;
  padding: 0;
  margin-top: 6px;
  color: var(--pof-accent);
  cursor: pointer;
  font-weight: 600;
}

.pof-help {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--pof-muted);
}

.pof-stop-help {
  display: none;
  margin: 8px 0 14px;
}

.pof-stops.has-stops .pof-stop-help {
  display: block;
}

.pof-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Day step headers ── */
.pof-day-header {
  display: flex;
  justify-content: flex-start;
  margin: 12px 0 20px;
  padding-top: 8px;
}

.pof-day-header[hidden] {
  display: none;
}

.pof-day-badge {
  display: inline-block;
  background: var(--pof-accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 24px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

/* ── Meerdaagse reis intro + blur ── */
.pof-multiday-intro {
  margin-bottom: 20px;
}

.pof-multiday-intro[hidden] {
  display: none;
}

.pof-multiday-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border: 2px solid #bfdbfe;
  border-radius: var(--pof-radius);
  padding: 24px;
}

.pof-multiday-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
  color: #1e3a5f;
}

.pof-multiday-desc {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
  color: #334155;
}

.pof-multiday-hint {
  margin: 0 0 18px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.pof-multiday-switch {
  background: none;
  border: none;
  padding: 0;
  color: var(--pof-accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-size: inherit;
}

.pof-multiday-switch:hover {
  color: #1d4ed8;
}

.pof-multiday-days-wrap {
  max-width: 200px;
}

.pof-multiday-days-wrap label {
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
  color: #1e3a5f;
}

.pof-multiday-days-wrap input {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  padding: 12px 14px;
  border: 2px solid #93c5fd;
  border-radius: 10px;
  background: #fff;
}

.pof-multiday-days-wrap input:focus {
  border-color: var(--pof-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Blur overlay for form fields when multiday is selected but days not filled */
[data-trip-fields].is-blurred {
  filter: blur(3px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

[data-trip-fields].is-blurred * {
  pointer-events: none;
}

/* Smooth unblur */
[data-trip-fields] {
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.pof-actions.is-blurred {
  filter: blur(3px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.pof-actions {
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* ── Tablet ── */
@media (max-width: 768px) {
  .planner-offerte-form {
    --pof-gap: 10px;
    --pof-padding: 14px;
  }
  .planner-offerte-form .pof-tab {
    padding: 10px 10px;
    font-size: 13px;
    min-height: 44px;
  }
  .pof-multiday-card {
    padding: 18px;
  }
  .pof-multiday-title {
    font-size: 17px;
  }
}

/* ── Mobiel ── */
@media (max-width: 520px) {
  .planner-offerte-form {
    --pof-gap: 8px;
    --pof-padding: 10px;
    --pof-radius: 8px;
    border-radius: var(--pof-radius);
  }
  .pof-grid {
    grid-template-columns: 1fr;
  }
  .pof-stop-grid {
    grid-template-columns: 1fr;
  }
  .pof-name-field.is-first,
  .pof-name-field.is-last {
    margin-left: 0;
    margin-right: 0;
  }
  /* Tabs stapelen verticaal */
  .planner-offerte-form .pof-tabs {
    grid-template-columns: 1fr;
    border-radius: var(--pof-radius) var(--pof-radius) 4px 4px;
  }
  .planner-offerte-form .pof-tab {
    padding: 11px 14px;
    min-height: 42px;
    font-size: 14px;
  }
  /* Knoppen full-width */
  .pof-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .pof-actions .pof-btn {
    width: 100%;
    text-align: center;
  }
  /* Telefoon veld stapelen */
  .pof-phone-wrap {
    flex-wrap: wrap;
  }
  .planner-offerte-form .pof-phone-country {
    width: 100%;
    min-width: unset;
    border-right: 0;
    border-bottom: 1px solid var(--pof-border);
    border-radius: 10px 10px 0 0;
  }
  .planner-offerte-form .pof-phone-wrap input[type="tel"] {
    border-radius: 0 0 10px 10px;
  }
  .planner-offerte-form .pof-phone-custom {
    min-width: unset;
    max-width: unset;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--pof-border);
    border-radius: 0;
  }
  /* Multiday card compacter */
  .pof-multiday-card {
    padding: 14px;
  }
  .pof-multiday-title {
    font-size: 16px;
  }
  .pof-multiday-desc {
    font-size: 14px;
  }
}

/* ── Elementor override – voorkom dat Elementor thema-stijlen het formulier breken ── */

/* Reset: Elementor widget container mag geen eigen spacing toevoegen */
.elementor-widget-container .planner-offerte-form {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  word-spacing: normal !important;
  color: var(--pof-fg) !important;
}

/* Labels */
.elementor-widget-container .planner-offerte-form label {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--pof-fg) !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
}

/* Invoervelden */
.elementor-widget-container .planner-offerte-form input,
.elementor-widget-container .planner-offerte-form select,
.elementor-widget-container .planner-offerte-form textarea {
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--pof-fg) !important;
  height: auto !important;
}

/* Knoppen */
.elementor-widget-container .planner-offerte-form .pof-btn {
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}

/* Radio labels */
.elementor-widget-container .planner-offerte-form .pof-radio span {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

/* Fieldset (tussenstops) – exact zelfde spacing als preview */
.elementor-widget-container .planner-offerte-form fieldset,
.elementor-widget-container .planner-offerte-form fieldset.pof-stops {
  border: 1px dashed var(--pof-border) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  margin: 8px 0 0 !important;
  overflow: visible !important;
}

.elementor-widget-container .planner-offerte-form .pof-stops legend {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--pof-fg) !important;
  padding: 0 6px !important;
  margin: 0 !important;
}

/* Help tekst – exact zelfde margin als preview */
.elementor-widget-container .planner-offerte-form .pof-help {
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}

/* Alle p-tags in het formulier: geen Elementor margins */
.elementor-widget-container .planner-offerte-form p {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* Help paragrafen krijgen hun eigen margin terug (specifiekere selector) */
.elementor-widget-container .planner-offerte-form p.pof-help {
  margin: 10px 0 0 !important;
}

/* Select options */
.elementor-widget-container .planner-offerte-form select option {
  text-transform: none !important;
  font-size: 14px !important;
}

/* Pof-field: geen extra Elementor spacing */
.elementor-widget-container .planner-offerte-form .pof-field {
  margin: 0 !important;
  padding: 0 !important;
}

/* Grid gap moet exact kloppen */
.elementor-widget-container .planner-offerte-form .pof-grid {
  gap: var(--pof-gap) !important;
}

/* Stop items */
.elementor-widget-container .planner-offerte-form .pof-stop {
  margin-bottom: 10px !important;
}

