.status-modal[hidden] {
  display: none;
}

.status-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.status-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 24, 20, 0.72);
  backdrop-filter: blur(6px);
}

.status-modal-card {
  position: relative;
  width: min(460px, 100%);
  background: #fff;
  padding: 42px 36px 34px;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  animation: modalIn 0.25s ease both;
}

.status-modal-x {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #65736f;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.status-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 2rem Manrope, sans-serif;
}

.status-modal-icon.success {
  background: #178552;
}

.status-modal-icon.error {
  background: #ad3d35;
}

.status-modal-card h2 {
  font-size: 1.65rem;
  margin-bottom: 12px;
}

.status-modal-card p {
  color: #65736f;
  margin: 0 auto 25px;
  max-width: 350px;
}

.status-modal-button {
  min-width: 150px;
}

.modal-open {
  overflow: hidden;
}

.submit-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .status-modal-card { padding: 38px 22px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .status-modal-card { animation: none; }
}
