/* Modal Styles Override */
.report-problem-modal,
.add-masjid-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1050;
}

.report-problem-modal.active,
.add-masjid-modal.active {
  display: block;
}

.report-problem-modal .modal-overlay,
.add-masjid-modal .modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1055;
}

.report-problem-modal .modal-container,
.add-masjid-modal .modal-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1060;
}

.report-problem-modal .modal-header,
.add-masjid-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
}

.report-problem-modal .modal-header h2,
.add-masjid-modal .modal-header h2 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
}

.report-problem-modal .close-button,
.add-masjid-modal .close-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  position: static;
  top: auto;
  right: auto;
}

.report-problem-modal .modal-content,
.add-masjid-modal .modal-content {
  padding: 20px;
}

.modal-form-section .form-group {
  margin-bottom: 20px;
}

.modal-form-section .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.modal-form-section .form-group input,
.modal-form-section .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
}

.modal-form-section .form-group input:focus,
.modal-form-section .form-group textarea:focus {
  outline: none;
  border-color: #114534;
}

.modal-form-section .form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-form-section .btn-submit {
  background-color: #114534;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.modal-form-section .btn-submit:hover {
  background-color: #0a2e22;
}

/* Body class for when modal is open to prevent scrolling */
body.modal-open {
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .report-problem-modal .modal-container,
  .add-masjid-modal .modal-container {
    width: 95%;
    max-height: 80vh;
  }
}