#wp-team-map-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#wp-team-map-cta-overlay .wp-team-map-cta-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  padding: 16px;
  width: min(520px, 92vw);
  position: relative;
}

/* Ensure Select2 dropdown overlays correctly on top of map */
#wp-team-map-cta-overlay .select2-container,
#wp-team-map-cta-overlay .select2-container .select2-dropdown {
  z-index: 100000;
}

.wp-team-map-cta-card h3 {
  margin: 0 0 8px 0;
}

.wp-team-map-cta-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
}

.wp-team-map-cta-form label {
  display: block;
  margin: 8px 0;
}

.wp-team-map-cta-form select {
  display: block;
  width: 100%;
}

.wp-team-map-cta-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.wp-team-map-cta-note {
  font-size: 12px;
  color: #50575e;
  margin: 8px 0 0 0;
}

/* Danger button */
#wp-team-map-cta-overlay .button.button-danger {
  background: #d63638;
  border-color: #b32d2e;
  color: #fff;
}
#wp-team-map-cta-overlay .button.button-danger:hover {
  filter: brightness(0.97);
}

/* Unify dropdown styling for native and Select2 */
#wp-team-map-cta-overlay .select2-container .select2-selection--single {
  height: 36px;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
}
#wp-team-map-cta-overlay
  .select2-container
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 34px;
  padding-left: 8px;
}
#wp-team-map-cta-overlay
  .select2-container
  .select2-selection--single
  .select2-selection__arrow {
  height: 34px;
}

/* Buttons styling */
#wp-team-map-cta-overlay .button {
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid #2271b1;
  background: #f6f7f7;
  color: #1d2327;
}
#wp-team-map-cta-overlay .button.button-primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}
#wp-team-map-cta-overlay .button.button-secondary {
  background: #f6f7f7;
  border-color: #8c8f94;
  color: #1d2327;
}
#wp-team-map-cta-overlay .button:hover {
  filter: brightness(0.98);
}

.wp-team-map-cta-message {
  margin-top: 8px;
  font-size: 13px;
}

.wp-team-map-cta-message.is-error {
  color: #b32d2e;
}
.wp-team-map-cta-message.is-success {
  color: #008a20;
}
.wp-team-map-cta-message.is-info {
  color: #3858e9;
}
