/* Backdrop (overlay) */
#countryModal {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  display: none; /* hidden by default */
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center */
  background-color: rgba(0, 0, 0, 0.5); /* black overlay */
  z-index: 9999; /* above everything */
}

/* Modal box */
#countryModal .modal-box {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0,0,0,0.2);
  width: 100%;
  max-width: 480px;
  padding: 24px;
}

/* Header */
#countryModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 12px;
}
#countryModal .modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}
#countryModal .modal-header button {
  background: none;
  border: none;
  font-size: 20px;
  color: #6b7280;
  cursor: pointer;
}
#countryModal .modal-header button:hover {
  color: #374151;
}

/* Body */
#countryModal label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #374151;
}
#countryModal select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}

/* Footer */
#countryModal .modal-footer {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
#countryModal .btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}
#countryModal .btn-cancel {
  background: #e5e7eb;
  color: #374151;
}
#countryModal .btn-cancel:hover {
  background: #d1d5db;
}
#countryModal .btn-save {
  background: #2563eb;
  color: #fff;
}
#countryModal .btn-save:hover {
  background: #1d4ed8;
}