/* Pop-ups opened from the site footer (About / Terms / Privacy / Contact).
   Copied from the matching rules in home.css, which only the home page loads;
   footer.js adds these modals to every inner page, so they need the same look
   there. Keep in step with home.css if either changes. */

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-modal[hidden] { display: none; }

.auth-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 26, 46, 0.55);
  backdrop-filter: blur(4px);
}

.auth-modal-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 28px 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
  animation: auth-modal-pop 0.18s ease-out;
}
@keyframes auth-modal-pop {
  from { transform: scale(0.96); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.auth-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 31px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}
.auth-modal-close:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.auth-modal-head {
  text-align: center;
  margin-bottom: 18px;
}
.auth-modal-logo {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #FFD060 0%, #9A6C08 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.auth-modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.auth-modal-form[hidden] { display: none !important; }

.auth-modal-form input {
  width: 100%;
  padding: 11px 14px;
  font-size: 17px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
}
.auth-modal-form input:focus { border-color: var(--cyan); }

.auth-modal-submit {
  width: 100%;
  padding: 12px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: var(--cyan);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s;
}
.auth-modal-submit:hover { background: #a8823d; }
.auth-modal-submit:disabled { background: var(--border); cursor: wait; }

.auth-modal-msg {
  font-size: 16px;
  text-align: center;
  margin: 4px 0 0;
  min-height: 18px;
}
.auth-modal-msg.error   { color: #ef4444; }
.auth-modal-msg.success { color: #22c55e; }

/* Legal modals (Terms / Policy) */
.home-legal-panel {
  max-height: 75vh;
  overflow-y: auto;
}
.home-legal-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.home-legal-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
  margin-bottom: -4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.home-legal-body ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.home-legal-body code {
  font-size: 12px;
  background: rgba(255,255,255,0.07);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Contact form textarea */
.home-inquiry-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 17px;
  font-family: inherit;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
  min-height: 90px;
  box-sizing: border-box;
}
.home-inquiry-textarea:focus { border-color: var(--cyan); }

@media (max-width: 720px) {
  .auth-modal-panel { padding: 22px 20px 18px; }
}

/* Contact Us bot trap: kept in the form for bots, out of sight and out of reach for people (2026-11-28) */
.pd-trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

/* never past the screen: capped at the window height, scrolling inside (2026-11-29) */
.auth-modal-panel { max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
