/* Match Emergency modals to Consular Services modal */

/* === Dialog shell === */
#modalRights .modal-card,
#modalLEO   .modal-card {
  position: relative;
  margin: 5vh auto;
  background: #fff;
  max-width: 920px;
  width: 92%;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  padding: 14px 18px 18px;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

/* Header / Footer to mirror services modal */
#modalRights .modal-head,
#modalLEO   .modal-head {
  padding: 6px 2px 10px;
  border-bottom: 1px solid #e5e7eb;
}

#modalRights .modal-foot,
#modalLEO   .modal-foot {
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Body scroll like services modal */
#modalRights .modal-body,
#modalLEO   .modal-body {
  padding: 6px 2px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Top-right Close (X) — same size/placement/hover) */
#modalRights .modal-head [data-close],
#modalLEO   .modal-head [data-close] {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--slate);
  transition: transform .2s ease-in-out, color .2s ease-in-out, background .2s ease-in-out;
  padding: 0;
  margin: 0;
}
#modalRights .modal-head [data-close]:hover,
#modalLEO   .modal-head [data-close]:hover {
  transform: scale(1.2);
  color: var(--navy);
  background: #f1f4f9;
}
#modalRights .modal-head [data-close]:focus-visible,
#modalLEO   .modal-head [data-close]:focus-visible {
  outline: 2px solid #0046ad;
  outline-offset: 2px;
}

/* Buttons — primary equals services’ .btn-modern; keep subtle secondary */
#modalRights .modal-foot .btn.primary,
#modalLEO   .modal-foot .btn.primary {
  background: linear-gradient(145deg, var(--blue), #0036a4);
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 43, 127, 0.2);
  transition: all 0.3s ease;
  border: none;
}
#modalRights .modal-foot .btn.primary:hover,
#modalLEO   .modal-foot .btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 43, 127, 0.3);
}

#modalRights .modal-foot .btn:not(.primary),
#modalLEO   .modal-foot .btn:not(.primary) {
  background: #f7f9fc;
  border: 1px solid #c8d4e3;
  color: #0f2748;
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
}
#modalRights .modal-foot .btn:not(.primary):hover,
#modalLEO   .modal-foot .btn:not(.primary):hover {
  background: #eef3fb;
  border-color: #b5c5d9;
}

/* Backdrop tone consistent with services modal */
#backdrop.modal-backdrop {
  background: rgba(0, 0, 0, .35);
}
