/* ===== Modal Container ===== */
.error-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.error-modal.show {
  opacity: 1;
  visibility: visible;
}

/* ===== Overlay ===== */
#errorOverlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);

  opacity: 0;
  transition: opacity 0.25s ease;
}

.error-modal.show #errorOverlay {
  opacity: 1;
}

/* ===== Modal Box ===== */
.error-modal-box {
  position: relative;
  z-index: 2;

  width: 90%;
  max-width: 340px;

  background: #fff;
  border-radius: 28px; /* ← rounder */
  padding: 24px 18px;
  text-align: center;

  box-shadow:
    0 25px 60px rgba(0,0,0,0.25),
    0 5px 20px rgba(0,0,0,0.1);

  transform: translateY(30px) scale(0.95);
  opacity: 0;

  transition: all 0.25s ease;
}

.error-modal.show .error-modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ===== Close ===== */
.error-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
}

/* ===== Icon ===== */
.error-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;

  border-radius: 50%;
  background: #dbeafe; /* ← orange-100 */
  border: 1px solid #bfdbfe; /* ← orange-200 */

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;
  color: #1d4ed8; /* ← orange-700 for emoji/SVG color */
}

/* ===== Text ===== */
.error-modal-box h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

.error-modal-box p {
  font-size: 14px;
  color: #6b7280;
  margin-top: 6px;
}

/* ===== Divider ===== */
.error-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 16px 0;
}

/* ===== Button ===== */
.error-btn {
  width: 100%;
  margin-top: 12px;
  padding: 15px; /* ← taller */

  border-radius: 16px; /* ← rounder */
  border: none;

  background: #1d4ed8; /* ← site blue */
  color: white;

  font-size: 15px;
  font-weight: 600;

  transition: 0.2s ease;
}

.error-btn:hover {
  background: #1e40af; /* ← orange-800 */
}

.error-btn:active {
  transform: scale(0.98);
}