.apt82-location-builder{grid-column:1/-1}
.apt82-location-mode{display:flex;flex-wrap:wrap;gap:10px 18px;margin:8px 0 16px}
.apt82-location-mode label{display:flex;align-items:center;gap:7px;font-weight:600;cursor:pointer}
.apt82-location-sub{margin-top:14px}
.apt82-location-sub>label,.apt82-location-label{display:block;font-weight:700;margin-bottom:8px}
.apt82-location-sub small,.apt82-location-label small{font-weight:400;color:#7b8494}
.apt82-city-pills{display:flex;flex-wrap:wrap;gap:8px}
.apt82-city-pill input{position:absolute;opacity:0;pointer-events:none}
.apt82-city-pill span{display:inline-flex;border:1px solid #d7dce4;border-radius:999px;padding:9px 13px;background:#fff;cursor:pointer;font-size:14px}
.apt82-city-pill input:checked+span{background:#111827;color:#fff;border-color:#111827}
.apt82-school-input,.apt82-location-note{width:100%;box-sizing:border-box}
.apt82-location-help{margin-top:14px;padding:12px 14px;border-radius:12px;background:#f6f7f9;color:#556070;font-size:13px;line-height:1.55}


/* v0.6.1 - stable location-mode alignment inside the existing APT82 form */
.apt82-location-mode{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(150px,1fr)) !important;
  gap:10px !important;
  margin:10px 0 18px !important;
  width:100% !important;
}
.apt82-location-mode label{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:10px !important;
  width:auto !important;
  min-width:0 !important;
  min-height:48px !important;
  margin:0 !important;
  padding:11px 13px !important;
  border:1px solid #d7dce4 !important;
  border-radius:12px !important;
  background:#fff !important;
  box-sizing:border-box !important;
  font-size:14px !important;
  font-weight:650 !important;
  line-height:1.3 !important;
  white-space:nowrap !important;
  cursor:pointer !important;
}
.apt82-location-mode input[type="radio"]{
  -webkit-appearance:radio !important;
  appearance:auto !important;
  display:inline-block !important;
  flex:0 0 18px !important;
  width:18px !important;
  height:18px !important;
  min-width:18px !important;
  max-width:18px !important;
  min-height:18px !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:50% !important;
  box-shadow:none !important;
  accent-color:#111827;
  vertical-align:middle !important;
}
.apt82-location-mode label:has(input[type="radio"]:checked){
  border-color:#111827 !important;
  background:#f7f8fa !important;
}
.apt82-city-pills{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:center !important;
  gap:8px !important;
}
.apt82-city-pill{
  display:inline-flex !important;
  width:auto !important;
  margin:0 !important;
}
.apt82-city-pill span{
  white-space:nowrap !important;
}
@media (max-width:900px){
  .apt82-location-mode{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width:560px){
  .apt82-location-mode{grid-template-columns:1fr !important;}
  .apt82-location-mode label{white-space:normal !important;}
}
