/* ============================================
   Green Card Check
   Layout cloned from AccidentPayback
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: #0a0908;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== Nav ===== */
.nav {
  background: #fff;
  border-bottom: 1px solid #eaeaeb;
  position: relative;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0a0908;
}

.logo-mark { flex-shrink: 0; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-top {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #1a3a5c;
}

.logo-bottom {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 5.5px;
  color: #5170ff;
}

.nav-cta {
  background: #fc6539;
  color: #fff;
  padding: 10px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-cta:hover { background: #e5562e; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background-image: url('hero-bg.jpg');
  background-color: #1a2a3f;
  background-size: cover;
  background-position: 66% 50%;
  min-height: 560px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 560px;
}

/* Hero left: title */
.hero-left {
  flex: 1;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fc6539;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-left h1 {
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.hero-sub {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
}

.hero-social-proof {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
}

.hero-social-proof strong {
  color: #fff;
  font-weight: 700;
}

/* Hero right: quiz card */
.hero-right {
  flex: 0 0 480px;
  max-width: 480px;
  width: 100%;
}

/* ===== Quiz Card ===== */
.quiz-card {
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  overflow: hidden;
}

.quiz-progress {
  height: 4px;
  background: #e0e0e0;
}

.quiz-progress-fill {
  height: 100%;
  background: #5170ff;
  transition: width 0.3s ease;
  width: 0%;
}

.quiz-body {
  padding: 36px 32px 32px;
}

/* Quiz intro text */
.quiz-intro {
  text-align: center;
  font-size: 15px;
  color: #696969;
  margin-bottom: 12px;
}

.quiz-intro span { color: #fc6539; }

.step-question {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.35;
  text-align: center;
  color: #0a0908;
}

/* Option buttons — white outlined, 2-col grid */
.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.option-btn {
  display: block;
  width: 100%;
  padding: 16px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  background: #fff;
  color: #0a0908;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  font-family: inherit;
}

.option-btn:hover {
  border-color: #5170ff;
  background: #f5f7ff;
}

.option-btn.selected {
  border-color: #5170ff;
  background: #eef1ff;
  color: #5170ff;
  font-weight: 600;
}

/* Continue button */
.continue-btn {
  margin-top: 20px;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 5px;
  background: #5170ff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.continue-btn::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-top: 2px solid #fff;
  transform: rotate(45deg);
}

.continue-btn:hover { background: #3a57e8; }
.continue-btn:disabled { background: #ccc; cursor: not-allowed; }
.continue-btn:disabled::after { border-color: #999; }

/* Select dropdown */
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  color: #0a0908;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23696969' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-select:focus { outline: none; border-color: #5170ff; }

/* Contact form */
.form-group { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #0a0908;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
  color: #0a0908;
  transition: border-color 0.2s;
}

.form-input:focus { outline: none; border-color: #5170ff; }
.form-input.error { border-color: #EA7A74; }

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

.error-msg {
  color: #EA7A74;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}

.error-msg.show { display: block; }

/* Consent */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
}

.consent-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.consent-text {
  font-size: 12px;
  color: #a7a7a8;
  line-height: 1.6;
}

.consent-text a { color: #5170ff; text-decoration: underline; }

/* Submit */
.submit-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 5px;
  background: #5170ff;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
}

.submit-btn:hover { background: #3a57e8; }
.submit-btn:disabled { background: #ccc; cursor: not-allowed; }

/* Result screens */
.quiz-result {
  display: none;
  text-align: center;
  padding: 56px 32px;
}

.quiz-result.show { display: block; }

.result-check { margin-bottom: 20px; }

.quiz-result h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.quiz-result p {
  font-size: 16px;
  color: #696969;
  line-height: 1.7;
}

.btn-restart {
  margin-top: 24px;
  padding: 12px 28px;
  border: none;
  border-radius: 5px;
  background: #5170ff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-restart:hover { background: #3a57e8; }

/* ===== Social Proof Bar ===== */
.proof-bar {
  background: #5170ff;
  padding: 40px 24px;
}

.proof-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.proof-bar-title {
  flex: 0 0 auto;
}

.proof-bar-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.proof-bar-title h2 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
}

.proof-bar-items {
  flex: 1;
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.proof-bar-item {
  text-align: center;
  color: #fff;
}

.proof-bar-type {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.proof-bar-number {
  font-size: 24px;
  font-weight: 800;
  color: #ffd600;
  margin-bottom: 2px;
}

.proof-bar-detail {
  font-size: 14px;
  opacity: 0.85;
}

/* ===== Process ===== */
.process {
  padding: 60px 24px;
  background: #fff;
}

.process-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.process-step { text-align: center; padding: 24px 16px; }

.process-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #5170ff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 16px;
}

.process-step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 16px;
  color: #575757;
  max-width: 280px;
  margin: 0 auto;
}

/* ===== Trust ===== */
.trust {
  padding: 60px 24px;
  background: #f5f5f5;
  text-align: center;
}

.trust-answer {
  font-size: 22px;
  font-weight: 700;
  color: #5170ff;
  margin-bottom: 16px;
}

.trust-detail {
  font-size: 18px;
  color: #575757;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.trust-cta {
  display: inline-block;
  background: #fc6539;
  color: #fff;
  padding: 14px 32px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: background 0.2s;
}

.trust-cta:hover { background: #e5562e; }

/* ===== FAQ ===== */
.faq {
  padding: 60px 24px;
  background: #fff;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px 0;
  border-bottom: 1px solid #dcdcdc;
}

.faq-item:last-child { border-bottom: none; }

.faq-item h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 16px;
  color: #696969;
  line-height: 1.7;
}

/* ===== Section shared ===== */
.section-eyebrow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #5170ff;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-heading {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.section-sub {
  text-align: center;
  font-size: 18px;
  color: #696969;
  margin-bottom: 36px;
}

/* ===== Footer ===== */
.footer {
  background: #fff;
  padding: 40px 24px;
  border-top: 1px solid #eaeaeb;
}

.footer-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  justify-content: center;
  margin-bottom: 16px;
}

.footer-logo .logo-top,
.footer-logo .logo-bottom {
  font-size: 12px;
  color: #888;
}

.footer-logo .logo-bottom {
  font-size: 9px;
}

.footer-links { margin-bottom: 20px; }

.footer-links a {
  color: #696969;
  text-decoration: none;
  margin: 0 12px;
  font-size: 14px;
}

.footer-links a:hover { color: #0a0908; }

.footer-disclaimer {
  font-size: 13px;
  color: #b3b3b3;
  line-height: 1.7;
  margin-bottom: 8px;
}

.footer-copy {
  margin-top: 16px;
  font-size: 13px;
  color: #b3b3b3;
}

/* ===========================
   Mobile: hero stacks vertically
   =========================== */
@media (max-width: 767px) {
  .hero-inner {
    flex-direction: column;
    padding: 40px 20px;
    min-height: auto;
    gap: 28px;
  }

  .hero-left h1 {
    font-size: 32px;
    text-align: center;
  }

  .hero-right {
    flex: none;
    max-width: 100%;
  }

  .quiz-body { padding: 28px 20px 24px; }
  .step-question { font-size: 20px; }
  .options { grid-template-columns: 1fr; }

  .proof-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .proof-bar-items {
    flex-direction: column;
    gap: 16px;
  }

  .process-grid { grid-template-columns: 1fr; }
}

/* ===========================
   Desktop: 768px+
   =========================== */
@media (min-width: 768px) {
  .hero-left h1 { font-size: 40px; }
  .hero-right { flex: 0 0 440px; max-width: 440px; }
  .process-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===========================
   Large Desktop: 992px+
   =========================== */
@media (min-width: 992px) {
  .hero-inner {
    gap: 60px;
    padding: 60px 40px;
  }

  .hero-left h1 { font-size: 48px; }

  .hero-right {
    flex: 0 0 500px;
    max-width: 500px;
  }

  .quiz-body { padding: 40px 36px 36px; }
  .step-question { font-size: 24px; }
  .section-heading { font-size: 32px; }
}
