/* ---------- Formulierelementen ---------- */
.asn-body label, .asn-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.asn-body input, .asn-body select, .asn-body textarea,
.asn-form input, .asn-form select, .asn-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 16px; font-weight: 400;
  border: 1.5px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink);
}
.asn-body input:focus, .asn-body select:focus, .asn-body textarea:focus,
.asn-form input:focus, .asn-form select:focus, .asn-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.asn-body input.err, .asn-form input.err { border-color: #ef4444; }
.req { color: var(--orange); }
.asn-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.asn-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .asn-row, .asn-row-2 { grid-template-columns: 1fr; gap: 0; } }
.asn-full { width: 100%; }
.asn-grow { flex: 1; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Locatiekeuze */
.asn-loc { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.asn-locbtn { font: inherit; text-align: center; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 12px; cursor: pointer; display: grid; gap: 3px; justify-items: center; transition: border-color .15s, background .15s; }
.asn-locbtn:hover { border-color: #cbd5e1; }
.asn-locbtn.active { border-color: var(--orange); background: var(--orange-soft); }
.asn-locbtn .ic { font-size: 22px; margin-bottom: 4px; }
.asn-locbtn b { font-size: 14.5px; }
.asn-locbtn small { font-size: 12.5px; color: var(--muted); }
.asn-locbtn em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--orange-d); margin-top: 4px; }
.asn-locbtn em.ok { color: var(--green-d); }
@media (max-width: 560px) {
  .asn-loc { gap: 8px; margin-bottom: 14px; }
  .asn-locbtn { padding: 12px 8px; gap: 2px; }
  .asn-locbtn .ic { font-size: 20px; margin-bottom: 2px; }
  .asn-locbtn b { font-size: 13.5px; line-height: 1.2; }
  .asn-locbtn small { font-size: 12px; }
  .asn-locbtn em { font-size: 12.5px; margin-top: 2px; }
}

/* Reiskosten */
.asn-reis { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px; background: var(--orange-soft); border: 1px solid #fed7aa; margin: -4px 0 16px; }
.asn-reis b { display: block; font-size: 14px; }
.asn-reis small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.asn-reisbedrag { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-size: 26px; color: var(--orange-d); white-space: nowrap; }

/* Autocomplete */
.asn-suggest { position: static; background: #fff; border: 1.5px solid var(--orange); border-radius: 10px; box-shadow: 0 8px 24px rgba(15,23,42,.08); display: none; overflow: hidden; margin: -6px 0 16px; }
.asn-suggest.open { display: block; }
.asn-suggest button { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; padding: 14px 16px; font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; border-bottom: 1px solid var(--line); color: var(--ink); }
.asn-suggest button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.asn-suggest button:last-child { border-bottom: 0; }
.asn-suggest button:hover { background: var(--orange-soft); }

/* Modal */
.asn-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(15,23,42,.6); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 16px; }
.asn-overlay.open { display: flex; }
.asn-modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 40px 80px rgba(0,0,0,.4); }
.asn-head { background: var(--navy); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 14px; position: sticky; top: 0; }
.asn-head h3 { color: #fff; font-size: 18px; }
.asn-kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 2px; }
.asn-step { margin-left: auto; font-size: 13px; color: rgba(255,255,255,.7); white-space: nowrap; }
.asn-close { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.asn-body { padding: 24px; }
.asn-actions { display: flex; gap: 10px; }
.asn-terug { background: #fff; border-color: var(--line); color: var(--ink); }
@media (max-width: 560px) {
  .asn-overlay { align-items: stretch; padding: 0; }
  .asn-modal { max-width: none; border-radius: 0; max-height: none; height: 100%; height: 100dvh; }
  .asn-body { padding: 18px 16px 28px; }
  .asn-body input, .asn-body select, .asn-form input, .asn-form select { scroll-margin-top: 80px; }
  .asn-suggest button { padding: 13px 14px; font-size: 15.5px; }
}

/* Fix: [hidden] wint altijd van display:flex/grid */
[hidden] { display: none !important; }

/* Statusregel onder het adresveld */
.asn-status { font-size: 13.5px; margin: -6px 0 14px; padding: 8px 12px; border-radius: 8px; }
.asn-status.ok { color: #166534; background: #dcfce7; }
.asn-status.warn { color: #9a3412; background: #ffedd5; }
.asn-status.busy { color: var(--muted); background: var(--bg); }
.asn-status.busy::before { content: ""; display: inline-block; width: 11px; height: 11px; border: 2px solid var(--line); border-top-color: var(--orange); border-radius: 50%; margin-right: 8px; vertical-align: -1px; animation: asnspin .8s linear infinite; }
@keyframes asnspin { to { transform: rotate(360deg); } }
.asn-fout { font-size: 14px; color: #b91c1c; background: #fee2e2; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }

/* Geselecteerde suggestie (toetsenbord) */
.asn-suggest button.hi { background: var(--orange-soft); }
.asn-suggest { max-height: none; }

/* Voorrijkostencalculator */
.asn-calc label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 14px; }
.asn-calc input { display: block; width: 100%; margin-top: 6px; padding: 14px 16px; font: inherit; font-size: 16.5px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.asn-calc input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.asn-calc .asn-reis { margin-top: 0; }
.asn-calc-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.asn-calc-cta .btn { flex: 1 1 auto; }
.asn-calc.compact input { padding: 11px 13px; font-size: 15.5px; }
.asn-calc.compact .asn-reisbedrag { font-size: 22px; }
