
/* Modal styles (integrated, subtle, matches theme) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 19, 40, 0.55);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-box {
  background: #ffffff;
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  padding: 24px 22px;
  box-shadow: 0 18px 45px rgba(15, 35, 71, 0.20);
  position: relative;
  animation: modalIn 0.22s ease-out;
}

@keyframes modalIn {
  from { transform: translateY(12px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f1f1f7;
  border: none;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  font-size: 14px;
  cursor: pointer;
  color: #334;
}

.modal-box h2 {
  font-size: 20px;
  color: var(--deep-blue);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.modal-form label {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: var(--deep-blue);
  margin-bottom: 12px;
}

.modal-form input,
.modal-form textarea,
.modal-form select {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #f6f7fd;
  font-size: 13px;
  color: var(--deep-blue);
}

.modal-actions {
  display:flex;
  gap:10px;
  margin-top:6px;
  justify-content:flex-end;
  align-items:center;
}

.form-note {
  font-size: 12px;
  color: var(--muted);
  margin-top:8px;
}

.success-message {
  padding: 12px;
  border-radius: 10px;
  background: #e8fff3;
  color: #064e3b;
  border: 1px solid #a7f3d0;
  margin-top: 10px;
  display:none;
}