.pla-widget {
  --pla-border: #e5eaf2;
  --pla-text: #0f172a;
  --pla-muted: #64748b;
  --pla-primary: #2563eb;
  --pla-primary-2: #1d4ed8;
  --pla-danger: #b91c1c;
  max-width: 1080px;
  margin: 2rem auto;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid var(--pla-border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.08);
}

.pla-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pla-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pla-primary);
  font-weight: 700;
}

.pla-header h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--pla-text);
}

.pla-current-district {
  margin: 1rem 0 0;
  color: var(--pla-muted);
  font-weight: 500;
}

.pla-change-location {
  border: 0;
  background: transparent;
  color: var(--pla-primary);
  font-weight: 600;
  cursor: pointer;
}

.pla-feedback {
  min-height: 24px;
  margin: 1rem 0;
  color: var(--pla-muted);
}

.pla-feedback.is-error {
  color: var(--pla-danger);
}

.pla-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 6, 23, 0.58);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.pla-modal-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

.pla-district-selector-wrap {
  position: fixed;
  top: 84px;
  right: 18px;
  z-index: 9998;
}

.pla-district-selector-wrap-inline {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
}

.pla-district-selector {
  max-width: 320px;
}

.pla-district-selector-wrap-inline .pla-district-selector {
  min-width: 180px;
  max-width: 100%;
}

.pla-district-select {
  width: 100%;
  min-width: 180px;
  min-height: 40px;
  border: 1px solid #0f6b5d;
  border-radius: 8px;
  background: #177d6c;
  color: #ffffff;
  padding: 8px 34px 8px 30px;
  font-size: 0.9rem;
  font-weight: 600;
}

.pla-district-select:focus {
  outline: none;
  border-color: #24b39b;
  box-shadow: 0 0 0 3px rgba(23, 125, 108, 0.26);
}

.pla-district-select option,
.pla-district-select optgroup {
  color: #0f172a;
}


.pla-district-selector .choices {
  margin: 0;
  min-width: 180px;
}

.pla-district-selector .choices__inner {
  min-height: 40px;
  border: 1px solid #0f6b5d;
  border-radius: 8px;
  background: #177d6c;
  color: #ffffff;
  padding: 5px 10px 5px 30px;
  font-size: 0.9rem;
  font-weight: 600;
}

.choices__list--single{
  padding:0;
}

.pla-district-selector .choices[data-type*="select-one"]::before {
  content: "•";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-52%);
  color: #d8fff8;
  font-size: 17px;
  line-height: 1;
  pointer-events: none;
}

.pla-district-selector .choices[data-type*="select-one"]::after {
  border-color: #d8fff8 transparent transparent;
  right: 11.5px;
  margin-top: -1px;
}

.pla-district-selector .choices.is-focused .choices__inner {
  border-color: #24b39b;
  box-shadow: 0 0 0 3px rgba(23, 125, 108, 0.26);
}

.pla-district-selector .choices__list--dropdown,
.pla-district-selector .choices__list[aria-expanded] {
  border: 1px solid rgba(23, 125, 108, 0.24);
  border-radius: 8px;
  margin-top: 6px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.pla-district-selector .choices__group .choices__heading {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #177d6c;
  font-weight: 700;
}

.pla-district-selector .choices__item--choice {
  font-size: 0.88rem;
}

.pla-district-selector .choices__item--choice.is-highlighted {
  background: rgba(23, 125, 108, 0.12);
  border-color: rgba(23, 125, 108, 0.15);
}

.pla-district-selector .choices__input {
  background: transparent;
  color: #ffffff;
  font-weight: 500;
}

/* Model */
.pla-modal {
  width: min(520px, 96%);
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.22);
  transform: scale(0.95);
  transition: transform 0.22s ease;
  text-align: center;
}

.pla-modal-overlay.is-visible .pla-modal {
  transform: scale(1);
}

.pla-modal-pin {
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
}

.pla-modal h3 {
  margin: 0 0 8px;
  color: #121212;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
}

.pla-modal p {
  margin: 0;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.45;
  font-weight: normal;
}

.pla-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.pla-btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  width: 100%;
}

.pla-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.pla-btn-primary {
  color: #fff;
  background: var(--rt-primary-color);
}

.pla-btn-primary:hover {
  background: var(--rt-secondary-color);
}

.pla-btn-link {
  width: auto;
  padding: 12px 14px;
  background: transparent;
  color: #667085;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  background:#f1f1f1;
}

.pla-btn-link:hover{
  color:#fff;
}

p.pla-modal-footnote {
  margin-top: 12px;
  font-size: 13px !important;
  color: #6b7280 !important;
}

@media (max-width: 768px) {
  .pla-widget {
    margin: 1.25rem auto;
    padding: 1rem;
  }

  .pla-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pla-district-selector-wrap {
    top: auto;
    right: 12px;
    bottom: 16px;
    left: 12px;
  }

  .pla-district-selector {
    min-width: auto;
    max-width: none;
  }

  .pla-modal h3 {
    font-size: 34px;
  }

  .pla-modal p {
    font-size: 18px;
  }

  .pla-btn {
    font-size: 16px;
  }
}
