/* ============================= */
/* 🛠️ Warranty — Loader & Modal  */
/* These are the only global     */
/* warranty styles needed now.   */
/* Form card styles live inline  */
/* in warranty.php <style> block */
/* ============================= */

/* Loader Overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 13, 24, 0.72);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.spinner {
  border: 3px solid rgba(98, 193, 219, 0.18);
  border-top: 3px solid #62c1db;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  animation: spin 0.85s linear infinite;
  box-shadow: 0 0 20px rgba(98, 193, 219, 0.25);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Confirmation Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.82);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.5rem;
}

.modal-content {
  background: rgba(12, 20, 34, 0.98);
  border: 1px solid rgba(98, 193, 219, 0.28);
  border-top: 2px solid #62c1db;
  padding: 2.5rem 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 24px 60px rgba(0,0,0,0.6),
    0 0 24px rgba(98,193,219,0.08);
  color: #e4edf8;
}

.modal-content h3 {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #62c1db;
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.modal-content p {
  font-size: 0.88rem;
  color: rgba(180, 210, 230, 0.70);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Validation */
input:invalid,
select:invalid,
textarea:invalid {
  border-color: rgba(255, 68, 68, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.08);
}

/* ============================= */
/* 🕶️ Retro Mode                 */
/* ============================= */
body.retro-mode .loader-overlay {
  background: rgba(0, 3, 8, 0.85);
  backdrop-filter: none;
}

body.retro-mode .spinner {
  border-color: rgba(0, 229, 255, 0.15);
  border-top-color: #00e5ff;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}

body.retro-mode .modal {
  background: rgba(0, 3, 8, 0.90);
  backdrop-filter: none;
}

body.retro-mode .modal-content {
  background: rgba(0, 5, 12, 0.98);
  border-color: rgba(0, 229, 255, 0.32);
  border-top-color: #00e5ff;
  box-shadow:
    0 0 0 1px rgba(0,229,255,0.06),
    0 0 30px rgba(0,229,255,0.10);
  color: rgba(0, 229, 255, 0.82);
}

body.retro-mode .modal-content h3 {
  font-family: 'Courier New', Courier, monospace;
  color: #00e5ff;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.65);
}

body.retro-mode .modal-content p {
  font-family: 'Courier New', Courier, monospace;
  color: rgba(0, 229, 255, 0.50);
}

body.retro-mode input:invalid,
body.retro-mode select:invalid,
body.retro-mode textarea:invalid {
  border-color: rgba(255, 0, 200, 0.50);
  box-shadow: 0 0 0 3px rgba(255, 0, 200, 0.08);
}