/* ==========================================================================
   NeurofeedbackResource.com — Retirement & Free Transition Portal Stylesheet
   ========================================================================== */

:root {
  --nfr-navy: #0f2942;
  --nfr-blue: #0072bc;
  --nfr-blue-hover: #005a96;
  --nfr-teal: #0d9488;
  --nfr-teal-dark: #0f766e;
  --nfr-amber-bg: #fffbeb;
  --nfr-amber-border: #f59e0b;
  --nfr-amber-text: #92400e;
  --nfr-red: #dc2626;
  --nfr-bg: #f4f7fb;
  --nfr-card: #ffffff;
  --nfr-text: #1e293b;
  --nfr-muted: #475569;
  --nfr-border: #cbd5e1;
  --nfr-radius: 14px;
  --nfr-shadow: 0 10px 30px rgba(15, 41, 66, 0.08);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, Verdana, sans-serif;
  background-color: var(--nfr-bg);
  color: var(--nfr-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Top Header Bar */
.site-header {
  background: var(--nfr-navy);
  color: #ffffff;
  padding: 16px 24px;
  border-bottom: 3px solid var(--nfr-blue);
}

.header-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
}

.header-nav-link {
  color: #ffffff;
  background: var(--nfr-teal);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.18s ease;
}

.header-nav-link:hover {
  background: var(--nfr-teal-dark);
}

/* Main Container */
.page-container {
  max-width: 960px;
  margin: 32px auto 64px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* 1. Discontinuation / QEEGmaps.com Hero Banner */
.retirement-hero-card {
  background: linear-gradient(135deg, #0f2942 0%, #163d61 100%);
  color: #ffffff;
  border-radius: var(--nfr-radius);
  padding: 36px 34px;
  box-shadow: var(--nfr-shadow);
  border-top: 5px solid #f59e0b;
  position: relative;
}

.notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  color: #92400e;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.retirement-hero-card h1 {
  margin: 0 0 14px;
  font-size: 1.95rem;
  line-height: 1.25;
  font-weight: 800;
  color: #ffffff;
}

.retirement-hero-card p {
  margin: 0 0 20px;
  font-size: 1.08rem;
  color: #e2e8f0;
  max-width: 780px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.btn-qeegmaps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f59e0b;
  color: #0f172a;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-qeegmaps:hover {
  background: #fbbf24;
  transform: translateY(-1px);
}

.hero-subnote {
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* 2. "Still need to upload maps?" Box */
.still-upload-card {
  background: var(--nfr-card);
  border-radius: var(--nfr-radius);
  padding: 30px 32px;
  box-shadow: var(--nfr-shadow);
  border: 2px solid var(--nfr-blue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.still-upload-content {
  flex: 1 1 480px;
}

.free-december-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  border: 1px solid #86efac;
}

.still-upload-card h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--nfr-navy);
}

.still-upload-card p {
  margin: 0;
  color: var(--nfr-muted);
  font-size: 1rem;
}

.btn-generate-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--nfr-blue);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 15px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 114, 188, 0.28);
  transition: background 0.18s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-generate-map:hover {
  background: var(--nfr-blue-hover);
  transform: translateY(-1px);
}

/* 3. Contact Form Section */
.contact-card {
  background: var(--nfr-card);
  border-radius: var(--nfr-radius);
  padding: 32px;
  box-shadow: var(--nfr-shadow);
  border: 1px solid #e2e8f0;
}

.contact-card h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: var(--nfr-navy);
}

.contact-card .section-lead {
  margin: 0 0 22px;
  color: var(--nfr-muted);
  font-size: 0.96rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.field-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #334155;
  margin-bottom: 6px;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.98rem;
  font-family: inherit;
  border: 1px solid var(--nfr-border);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--nfr-text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--nfr-blue);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.12);
}

.btn-contact-submit {
  background: var(--nfr-navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 26px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.btn-contact-submit:hover {
  background: var(--nfr-blue);
}

.alert-box {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.95rem;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* 4. Anti-Bot Clinician Verification Modal (<dialog>) */
.verify-modal {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 500px;
  width: 92%;
  box-shadow: 0 24px 60px rgba(15, 41, 66, 0.28);
  background: #ffffff;
  color: var(--nfr-text);
}

.verify-modal::backdrop {
  background: rgba(15, 41, 66, 0.62);
  backdrop-filter: blur(3px);
}

.verify-modal-header {
  background: var(--nfr-navy);
  color: #ffffff;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.verify-modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.verify-modal-close {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.verify-modal-body {
  padding: 24px;
}

.verify-check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.verify-check-card:hover,
.verify-check-card.checked {
  border-color: var(--nfr-blue);
  background: #eff6ff;
}

.verify-check-card input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--nfr-blue);
  cursor: pointer;
  flex-shrink: 0;
}

.verify-check-label {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--nfr-navy);
  user-select: none;
}

/* Invisible Honeypot Wrapper (Off-screen & inaccessible to humans, irresistible to bots) */
.hp-trap-field {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 5. Map Upload Form Styles (Preserving & Enhancing Original Classes) */
.upload-card {
  background: var(--nfr-card);
  border-radius: var(--nfr-radius);
  padding: 36px;
  box-shadow: var(--nfr-shadow);
  border: 1px solid #e2e8f0;
}

.upload-section-banner {
  background: #f0f9ff;
  border-left: 4px solid var(--nfr-blue);
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 26px;
  font-size: 0.94rem;
  color: #0c4a6e;
}

/* Original Form Classes Enhanced */
.fspacer {
  background: #f6f6f6;
  font-size: 16px;
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-top: 4px;
}

.fspacer:focus,
.fselect:focus,
.upload-card textarea:focus {
  outline: none;
  border-color: #0072bc;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.12);
}

.fselect,
#MoodIssues {
  background: #f6f6f6;
  font-size: 16px;
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-top: 4px;
}

.upload-card textarea {
  background: #f6f6f6;
  font-size: 15px;
  font-family: Verdana, sans-serif;
  width: 100%;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-top: 4px;
}

.formset {
  font-size: 16px;
  color: #222;
  margin-bottom: 20px;
  font-family: Verdana, sans-serif;
}

.labelset {
  display: inline-block;
  margin-bottom: 5px;
  color: #334155;
  font-weight: 600;
}

.submitme {
  background: #0072bc;
  padding: 12px 42px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: bold;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 2px 2px 10px #777;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.18s ease;
}

.submitme:hover,
.submitme.hover {
  background: #ff0000;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 28px 20px;
  color: var(--nfr-muted);
  font-size: 0.88rem;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .retirement-hero-card,
  .still-upload-card,
  .contact-card,
  .upload-card {
    padding: 24px 20px;
  }
  .retirement-hero-card h1 {
    font-size: 1.55rem;
  }
}
