/* ------------------------------ Modal Dialog ---------------------------------------- */

/* Overlay */
.modal-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

/* Simple show/hide */
.modal-dialog[hidden],
.modal-dialog-overlay[hidden] {
  display: none !important;
}

/* Prevent background scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Dialog container */
.modal-dialog {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center; /* center or flex-start (use padding-top if needed) */
  justify-content: center;
  /* padding-top: 3rem; */
  z-index: 9999;
}

/* Dialog box */
.modal-dialog-inner {
  position: relative;
  background: #fff;
  max-width: 700px;
  width: 90%;
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  margin-left: 1em;
  margin-right: 1em;
  /* text-align: center; */
}

.modal-dialog-inner h2 {
  border-bottom: 2px solid #ddd;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #003263;
  font-size: 30px;
}

.modal-dialog-inner p {
  margin: 1em 1em 0 1em;
}

/* Buttons */
.modal-dialog-buttons {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid #ddd;
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  justify-content: center;
}

.modal-dialog-buttons button {
  padding: 0.5rem 1rem;
  cursor: pointer;
  margin: 0 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  background-color: white;
  color: #003263;
}

.modal-dialog-buttons button:hover,
.modal-dialog-buttons button:focus,
.modal-dialog-buttons button:focus-visible {
  background-color: #003263;
  color: #ffffff;
}

/* Close button */
.modal-dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  outline: none;
}

/* Hover: subtle background */
.modal-dialog-close:hover {
  background-color: #f0f0f0;
  border-radius: 4px;
}

/* Active (pressed) state */
.modal-dialog-close:active {
  background-color: #e0e0e0;
  color: #000;
}

/* Keyboard focus */
.modal-dialog-close:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

@media (max-width: 360px) {
  .modal-dialog-inner {
    padding: 1rem;
  }
}

/* -------------------------- End Modal Dialog CSS -------------------------------- */

/* End stylesheet ****/
``