/* =========================================
   Base / Reset
========================================= */

:root {
  --accent-color: #003b7e;
  --accent-color-hover: #002d5f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f5f5f5;
}

/* Let main content be edge-to-edge inside this project */
.main-container {
  padding: 0;
  max-width: 100%;
}

/* =========================================
   Layout Card
========================================= */

.container {
  max-width: 100%;
  margin: 0 auto;
  background: #f5f5f5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: calc(100vh - 40px); /* minus tiny header */
  padding: 0;
}

.content {
  grid-column: 2;
  background: #ffffff;
  padding: 28px 32px 22px 32px;
  max-width: 720px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  margin: 8px 0 16px 0;
}

/* =========================================
   Tiny Header Strip (Brand)
========================================= */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 6px 14px 4px 14px;
}

.site-name {
  font-size: 13px;
  font-weight: 600;
  color: #003b7e;
  text-decoration: none;
  opacity: 0.9;
}

.site-name:hover {
  text-decoration: underline;
  opacity: 1;
}

/* =========================================
   Hero / Intro (Ultra Minimal)
========================================= */

.header {
  text-align: left;
  padding: 0 0 6px 0;
}

.header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #111827;
  line-height: 1.25;
}

.header .subhead {
  font-size: 18px;
  color: #374151;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Trust badge */

.trust-signal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #25558a;
  font-weight: 600;
  background: #e8f1ff;
  padding: 10px 16px;
  border-radius: 999px;
  margin: 4px 0 22px 0;
}

/* Primary CTA */

.start-quiz-section {
  margin: 0 0 14px 0;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.start-quiz-btn {
  background: var(--accent-color);
  color: #ffffff;
  padding: 22px 50px;
  font-size: 22px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  max-width: 420px;
}

.start-quiz-btn:hover {
  background: var(--accent-color-hover);
}

.cta-note {
  margin-top: 8px;
  font-size: 14px;
  color: #6b7280;
  text-align: center;
}

/* Tiny 3-bullet qualifier box */

.mini-qualifiers {
  margin-top: 18px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  color: #1f2933;
}

.mini-qualifiers-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
}

.mini-qualifiers ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.mini-qualifiers li {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  line-height: 1.5;
}

.mini-qualifiers li::before {
  content: "•";
  margin-top: 2px;
  font-size: 16px;
  color: #4b5563;
}

.deadline-note {
  margin-top: 8px;
  font-size: 13px;
  color: #92400e;
}

/* Intro / quiz containers */

.intro-content {
  display: block;
}

.intro-content.hidden {
  display: none;
}

/* =========================================
   Progress Bar
========================================= */

.progress-container {
  margin: 12px 0 10px 0;
  display: none;
}

.progress-text {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

#progress-note {
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-color);
  width: 33.33%;
  transition: width 0.3s ease;
}

.auto-advance-hint {
  font-size: 12px;
  color: #6b7280;
  text-align: left;
  margin: 4px 0 0 0;
  line-height: 1.4;
  font-weight: 400;
}

/* =========================================
   Questions
========================================= */

.question-card {
  display: none;
  padding-top: 4px;
}

.question-card.active {
  display: block;
}

.question-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 8px;
  color: #111827;
  line-height: 1.3;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option {
  padding: 10px 14px;
  border: 2px solid #d0d0d0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  color: #111827;
  transition:
    border-color 0.2s,
    background-color 0.15s,
    box-shadow 0.15s,
    transform 0.05s;
}

.option:hover {
  border-color: var(--accent-color);
}

.option:active {
  transform: scale(0.98);
}

.option.selected {
  border-color: var(--accent-color);
  background: #eef5ff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Buttons */

.button-container {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.btn {
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  flex: 1;
}

.btn-primary {
  background: var(--accent-color);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--accent-color-hover);
}

.btn-primary:disabled {
  background: #cccccc;
  cursor: not-allowed;
}

/* Hide Next/Back where we auto-advance */
#next-1,
#next-3,
#back-1,
#back-3 {
  display: none !important;
}

.btn-secondary {
  background: #e9ecef;
  color: #333333;
  display: none;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.btn-secondary.visible {
  display: block;
}

/* =========================================
   Results / Form
========================================= */

.result-card {
  display: none;
  margin-top: 8px;
}

.result-card.active {
  display: block;
}

.result-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 2px;
  margin-bottom: 6px;
  color: #111827;
}

.result-text {
  font-size: 14px;
  color: #333333;
  margin-bottom: 8px;
  line-height: 1.5;
}

.form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.form-row .half {
  flex: 1;
}

.form-group {
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 13px;
  color: #111827;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 7px 9px;
  border: 2px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
  font-family: inherit;
  color: #111827;
}

.form-group textarea {
  resize: vertical;
  min-height: 68px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}



/* Make the final CTA match the giant hero button */
#contact-form .btn-primary {
  width: 100%;
  margin-top: 10px;
  padding: 22px 50px !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  border-radius: 10px !important;
}


.confidential-note {
  font-size: 12px;
  color: #6b7280;
  margin-top: 8px;
  line-height: 1.4;
}

/* Qualified / disqualified result styling */

.disqualified {
  background: #fff3cd;
  padding: 18px;
  margin: 20px 0;
  border-radius: 8px;
}

.qualified {
  background: transparent;
  padding: 0;
  margin: 8px 0 0 0;
  border: none;
  box-shadow: none;
}

/* =========================================
   Footer (Tailwind-like utility classes)
========================================= */

.bg-gray-100 {
  background-color: #f3f4f6;
}

.mt-20 {
  margin-top: 2.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.max-w-7xl {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.sm\:px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (max-width: 639px) {
  .sm\:px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.text-center {
  text-align: center;
}

.text-blue-700 {
  color: #1d4ed8;
}

.text-gray-600 {
  color: #4b5563;
}

.text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.leading-snug {
  line-height: 1.4;
}

.text-blue-700:hover,
a.text-blue-700:hover {
  text-decoration: underline;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
    padding: 0 12px;
    min-height: auto;
  }

  .content {
    grid-column: 1;
    max-width: 100%;
    padding: 22px 18px 24px 18px;
    margin: 10px 0 20px 0;
  }
}

@media (max-width: 768px) {
  body {
    padding: 0;
  }

  .content {
    padding: 20px 16px 24px 16px;
  }

  .header h1 {
    font-size: 26px;
  }

  .header .subhead {
    font-size: 16px;
  }

  .start-quiz-btn {
    font-size: 20px;
    padding: 18px 40px;
  }

  .form-row {
    flex-direction: column;
  }

  .button-container {
    flex-direction: column;
  }
}
