/* ─── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  /* background: url('universe-bkgnd.jpg') center / cover no-repeat fixed; */
  /* background-color: #3F778E !important; /* Teal */
  background-color: #ffffff !important;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  text-align: center;
  font-family: 'Raleway', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ─── Sticky Header ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  /*background: rgba(5, 5, 20, 0.55);*/
  background-color: /* #3F778E; */ #254755;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: solid rgba(255,255,255,0.08); /* rgba(255, 255, 255, 0.08); */
  animation: headerFade 0.8s ease both;
}

@keyframes headerFade {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-icon {
  width: 42px;
  height: 32px;
  color: #c8b6ff;
  filter: drop-shadow(0 0 6px rgba(180, 140, 255, 0.5));
  transition: filter 0.3s ease;
}

.header-logo:hover .logo-icon {
  filter: drop-shadow(0 0 12px rgba(180, 140, 255, 0.9));
}

.logo-text {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(15px, 3vw, 17px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

/* Nav links */
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
  cursor: pointer;
  background: none;
}

.nav-link:hover {
  color: #ffffff;
  border-color: rgba(200, 182, 255, 0.35);
  background: rgba(200, 182, 255, 0.08);
}

/* Mobile toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 18px;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* ─── Main content ──────────────────────────────────────────── */
main.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px 0px 10px 0px;
  background: /*rgba(0, 0, 0, 0.4);*/ #ffffff;
  /* Allow it to fill remaining space between header & footer */
}

h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 5vw, 28px);
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.5px;
}

h2 {
  font-size: clamp(28px, 3vw, 34px);
  font-family: 'Raleway', sans-serif;
  margin: 8px 0 10px 0;
  font-weight: 300;
  opacity: 0.9;
  letter-spacing: 0.08em;
}

.intro-text {
  font-size: 16px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  color: #000000 !important;
  padding: 0 0 !important;
  margin-bottom: 0px !important;
}

/* ─── Footer ────────────────────────────────────────────────── */
.site-footer {
  width: 100%;
  /* background: rgba(5, 5, 20, 0.55); */
  background-color: /* #3F778E; */ #254755;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 25px 10px;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: /* rgba(255, 255, 255, 0.45); */ rgba(255, 255, 255, 0.72);
}

/* ─── Pointers Modal ────────────────────────────────────────── */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 25, 35, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: backdropFadeIn 0.25s ease both;
}

.modal-backdrop.open {
  display: flex;
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: #ffffff;
  color: #1a1a2e;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  max-width: 680px;
  width: 100%;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 16px;
  border-bottom: 1px solid rgba(37, 71, 85, 0.15);
  background: #254755;
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.modal-close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.75);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}

.modal-body {
  overflow-y: auto;
  padding: 28px 32px;
  flex: 1;
}

/* Styles applied to the fetched pointers.html content */
.modal-body .pointers-content h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 500;
  color: #254755;
  margin: 0 0 20px 0;
  letter-spacing: 0.04em;
  opacity: 1;
}

.modal-body .pointers-content h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #254755;
  margin: 24px 0 8px 0;
}

.modal-body .pointers-content p {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #2c2c3a;
  margin: 0 0 6px 0;
  text-align: left;
}

.modal-body .pointers-content hr {
  border: none;
  border-top: 1px solid rgba(37, 71, 85, 0.18);
  margin: 28px 0;
}

.modal-body .pointers-content .closing-note {
  font-style: italic;
  color: #4a6878;
  font-size: 14px;
}

.modal-body .pointers-content em {
  color: #254755;
  font-style: italic;
}

/* Loading state */
.modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  color: #254755;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  gap: 10px;
}

.modal-loading::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(37, 71, 85, 0.2);
  border-top-color: #254755;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Introduction Modal (inside modal) ────────────────────── */
.modal-body .intro-modal-content h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 500;
  color: #254755;
  margin: 0 0 6px 0;
  letter-spacing: 0.04em;
  opacity: 1;
}

.modal-body .intro-modal-content h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #254755;
  margin: 26px 0 8px 0;
}

.modal-body .intro-modal-content p,
.modal-body .intro-modal-content li {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  color: #2c2c3a;
  text-align: left;
  margin: 0 0 8px 0;
}

.modal-body .intro-modal-content ol,
.modal-body .intro-modal-content ul {
  padding-left: 22px;
  margin: 0 0 6px 0;
}

.modal-body .intro-modal-content ol li,
.modal-body .intro-modal-content ul li {
  margin-bottom: 10px;
}

.modal-body .intro-modal-content em {
  color: #3a5a6a;
  font-style: italic;
}

.modal-body .intro-modal-content .disclaimer-list {
  list-style: disc;
}

.intro-subhead {
  font-family: 'Raleway', sans-serif;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  color: #254755 !important;
  text-transform: uppercase;
  margin: 0 0 18px 0 !important;
  opacity: 0.85;
}

/* Login bar */
.intro-login-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.intro-login-link {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  background: #254755;
  text-decoration: none;
  padding: 7px 18px;
  border-radius: 20px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.intro-login-link:hover {
  background: #1a323e;
  box-shadow: 0 4px 12px rgba(37, 71, 85, 0.3);
}

/* Email link */
.intro-email-link {
  color: #254755;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.intro-email-link:hover {
  color: #1a323e;
}

/* Accept box */
.intro-accept-box {
  background: #f0f6f8;
  border: 1px solid rgba(37, 71, 85, 0.18);
  border-radius: 10px;
  padding: 22px 24px;
  margin-top: 28px;
  text-align: left;
}

.accept-heading {
  margin: 0 0 8px 0 !important;
}

.accept-text {
  margin: 0 0 18px 0 !important;
  font-size: 14px !important;
  color: #3a4a52 !important;
}

.accept-btn {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: #254755;
  border: none;
  border-radius: 24px;
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.accept-btn:hover {
  background: #1a323e;
  box-shadow: 0 4px 14px rgba(37, 71, 85, 0.35);
  transform: translateY(-1px);
}

.accept-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ─── Contact Form (inside modal) ──────────────────────────── */
.modal-body .contact-content h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 500;
  color: #254755;
  margin: 0 0 10px 0;
  letter-spacing: 0.04em;
  opacity: 1;
}

.modal-body .contact-content .contact-intro {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: #2c2c3a;
  text-align: left;
  margin: 0 0 24px 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #254755;
}

.form-group input,
.form-group textarea {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  color: #1a1a2e;
  background: #f4f7f9;
  border: 1.5px solid rgba(37, 71, 85, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(37, 71, 85, 0.35);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #254755;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 71, 85, 0.1);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-notice {
  font-family: 'Raleway', sans-serif;
  font-size: 12px;
  color: #4a6878;
  font-style: italic;
  margin: 0;
  flex: 1;
  text-align: left;
  line-height: 1.5;
}

.send-btn {
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  background: #254755;
  border: none;
  border-radius: 24px;
  padding: 11px 30px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.send-btn:hover {
  background: #1a323e;
  box-shadow: 0 4px 14px rgba(37, 71, 85, 0.35);
  transform: translateY(-1px);
}

.send-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.form-success {
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0;
  display: none;
}

.form-success.success {
  display: block;
  color: #1a5c3a;
  background: #e6f4ed;
  border: 1px solid rgba(26, 92, 58, 0.25);
}

.form-success.error {
  display: block;
  color: #8b1a1a;
  background: #fdf0f0;
  border: 1px solid rgba(139, 26, 26, 0.25);
}

/* ─── Mobile ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .logo-text { display: none; }

  .nav-toggle { display: block; }

  .header-nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5, 5, 20, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 0;
  }

  .header-nav.open { display: flex; }

  .nav-link {
    border-radius: 0;
    padding: 12px 24px;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    text-align: left;
  }

  .modal-box {
    max-height: 90vh;
    border-radius: 10px;
  }

  .modal-body {
    padding: 20px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .send-btn {
    width: 100%;
    text-align: center;
  }
}
