/* Keuzelijst bij geboorteplaats en woonplaats (js/place-autocomplete.js).
   De lijst hangt direct onder <body>, buiten de resets van Gravity Forms. */
.dfl-place-box {
  --dfl-plum: var(--color-plum, #5a3b74);
  --dfl-ink: var(--color-deep-plum, #2f1f3c);
  position: absolute; z-index: 9990; box-sizing: border-box;
  display: flex; flex-direction: column; overflow: hidden; max-height: 420px;
  background: #fffdf9; border: 1px solid #dfd1bd; border-radius: 18px;
  box-shadow: 0 18px 44px rgba(47, 31, 60, 0.18), 0 2px 6px rgba(47, 31, 60, 0.06);
  color: var(--dfl-ink); font-size: 15px; line-height: 1.35; text-align: left;
}
.dfl-place-box *, .dfl-place-box *::before { box-sizing: border-box; }

.dfl-place-search {
  flex: 0 0 auto; width: calc(100% - 20px); height: 44px; margin: 10px 10px 2px; padding: 0 14px 0 40px;
  border: 1px solid #dfd1bd; border-radius: 13px; background: #fdf9f2 no-repeat 14px center; color: var(--dfl-ink);
  font: inherit; font-size: 16px; /* 16px: geen automatische zoom op iOS */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23857790' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E");
}
.dfl-place-search:focus { outline: 2px solid rgba(90, 59, 116, 0.25); box-shadow: 0 0 0 4px rgba(201, 160, 71, 0.15); }
.dfl-place-search::placeholder { color: #9c90a3; }

.dfl-place-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px; scrollbar-width: thin; scrollbar-color: #dfd1bd transparent; }
.dfl-place-option {
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  min-height: 48px; padding: 7px 14px; border-radius: 12px; cursor: pointer;
  transition: background-color 0.12s ease;
}
.dfl-place-option span { font-weight: 500; }
.dfl-place-option mark { background: none; color: var(--dfl-plum); font-weight: 700; }
.dfl-place-option small { font-size: 13px; color: #75677f; }
.dfl-place-option:hover { background: #f7f1fa; }
.dfl-place-option.is-active { background: #f0e6f6; }
.dfl-place-empty { padding: 14px; color: #75677f; }

/* Telefoon: hele lijst tonen; veeg je erover, dan scrolt de pagina. */
@media (max-width: 639px) {
  .dfl-place-box { max-height: none; }
  .dfl-place-list { overflow: visible; }
}

/* Het veld zelf: oogt als een keuzeveld. Zit in het formulier, dus hoger gewogen dan de GF-reset. */
.gform_wrapper .ginput_container input.dfl-place-field, input.dfl-place-field {
  cursor: pointer !important; padding-right: 42px !important; text-overflow: ellipsis;
  background-repeat: no-repeat !important; background-position: right 15px center !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%235a3b74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E") !important;
}
