/* ============================================================
   Shared components — toasts, modals, banners, loading, misc.
   Matches the site design tokens (navy / teal / gold).
   ============================================================ */

/* ---------- Toasts ---------- */
.grr-toasts {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; max-width: 380px;
}
.grr-toast {
  display: flex; align-items: flex-start; gap: 10px;
  background: #0F172A; color: #fff; border-radius: 10px;
  padding: 13px 16px; font-size: 14px; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  opacity: 0; transform: translateY(8px); transition: all 0.3s ease;
  font-family: 'Inter', sans-serif; line-height: 1.45;
}
.grr-toast.show { opacity: 1; transform: translateY(0); }
.grr-toast-ico {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; margin-top: 1px;
}
.grr-toast-success .grr-toast-ico { background: #10B981; }
.grr-toast-error .grr-toast-ico { background: #EF4444; }
.grr-toast-info .grr-toast-ico { background: #00B4D8; }

/* ---------- Modal / confirm ---------- */
.grr-overlay {
  position: fixed; inset: 0; background: rgba(11,31,58,0.55);
  backdrop-filter: blur(3px); z-index: 9000;
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.grr-modal {
  background: #fff; border-radius: 16px; padding: 28px;
  max-width: 460px; width: 100%; box-shadow: 0 24px 64px rgba(0,0,0,0.3);
  font-family: 'Inter', sans-serif; max-height: 90vh; overflow-y: auto;
}
.grr-modal.wide { max-width: 720px; }
.grr-modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.grr-modal-title { font-size: 17px; font-weight: 700; color: #0F172A; margin-bottom: 6px; }
.grr-modal-head .grr-modal-title { margin-bottom: 0; }
.grr-modal-x {
  border: none; background: #F1F5F9; color: #475569; width: 30px; height: 30px;
  border-radius: 8px; cursor: pointer; font-size: 13px;
}
.grr-modal-text { font-size: 14px; color: #475569; line-height: 1.6; }
.grr-modal-body { font-size: 14px; color: #334155; }
.grr-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.grr-btn-cancel {
  background: #fff; border: 1.5px solid #E2E8F0; color: #334155;
  font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 8px; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.grr-btn-ok {
  background: #00B4D8; border: none; color: #fff;
  font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 8px; cursor: pointer;
  font-family: 'Inter', sans-serif;
}
.grr-btn-ok.danger { background: #EF4444; }

/* ---------- Demo banner ---------- */
.grr-demo-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 8000;
  background: #0B1F3A; color: rgba(255,255,255,0.85);
  border-top: 2px solid #F0A500;
  font: 500 13px 'Inter', sans-serif; text-align: center; padding: 8px 16px;
}
.grr-demo-banner strong { color: #F0A500; }

/* ---------- Loading spinner ---------- */
.grr-spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid #E2E8F0; border-top-color: #00B4D8;
  animation: grr-rot 0.8s linear infinite; margin: 40px auto;
}
@keyframes grr-rot { to { transform: rotate(360deg); } }

/* ---------- Form validation ---------- */
.grr-invalid { border-color: #EF4444 !important; background: #FEF2F2 !important; }
.grr-field-err { font-size: 12px; color: #EF4444; font-weight: 500; }

/* ---------- Success panel (form submissions) ---------- */
.grr-success {
  text-align: center; padding: 48px 32px;
}
.grr-success .ok-ring {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 20px;
  background: rgba(16,185,129,0.15); border: 2px solid #10B981;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; color: #10B981;
}
