/* Reset & Globals */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:'Inter',sans-serif; background:#f9faff; color:#333; line-height: 1.6; }
.container { max-width:800px; margin:0 auto; padding:1rem; }

/* Header & Nav */
header { background:#fff; padding:1rem 0; box-shadow:0 2px 4px rgba(0,0,0,0.1); }
nav { display:flex; justify-content:space-between; align-items:center; }
.logo { font-size:1.5rem; font-weight:600; color:#004a91; }
nav ul { list-style:none; display:flex; gap:1rem; }
nav a { text-decoration:none; color:#004a91; font-weight:500; }

/* Hero */
.hero { text-align:center; padding:4rem 1rem; background:#eaf4ff; }
.hero h1 { font-size:2.5rem; margin-bottom:1rem; }
.hero p { font-size:1.125rem; margin-bottom:2rem; color:#555; }
.btn { padding:.75rem 1.5rem; border-radius:4px; font-weight:600; text-decoration:none; cursor:pointer; border: none; transition: background-color 0.3s; }
.btn:hover { /* transform: translateY(-2px); */ }
.btn-primary { background:#0073e6; color:#fff; }
.btn-primary:hover { background: #005bb5; }
.btn-secondary { background:#fff; border:2px solid #0073e6; color:#0073e6; }
.btn-secondary:hover { background: #eaf4ff; }

/* Hero Buttons Container */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Sections */
section { margin:4rem 0; }
.features { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1.5rem; }
.feature { background:#fff; padding:1.5rem; border-radius:6px; box-shadow:0 1px 3px rgba(0,0,0,0.1); }
.feature h3 { margin-bottom:.5rem; color:#004a91; }
.feature p { color:#555; }

/* Quiz */
.progress-bar { background:#e0e0e0; border-radius:4px; overflow:hidden; margin-bottom:1rem; }
.progress { height:8px; background:#0073e6; width:0; transition:width .3s; }
.question-container { background:#fff; padding:2rem; border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,0.08); }
.options { display:grid; gap:1rem; margin-top:1.5rem; }
.option-btn { padding:.75rem 1rem; border:1px solid #ccc; border-radius:4px; background:#fafafa; cursor:pointer; text-align:left; font-size: 1rem; transition: background-color 0.2s, border-color 0.2s; }
.option-btn.selected { background:#e6f0ff; border-color:#0073e6; /* font-weight: 600; */ }
.nav-buttons { display:flex; justify-content:flex-end; gap:1rem; margin-top:1.5rem; }

/* NEW STYLES FOR RESULTS PAGE */
#results-container { display: flex; flex-direction: column; gap: 2.5rem; }
.results-card { background:#fff; padding:2rem; border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,0.08); }
.results-card h2 { color:#004a91; margin-bottom: 1rem; }
.results-card h3 { color:#333; margin: 1.5rem 0 0.75rem 0; border-left: 4px solid #0073e6; padding-left: 1rem;}
.score-breakdown h2 { border-bottom: 2px solid #f0f0f0; padding-bottom: 1rem;}
.score-bar-container { margin-bottom: 1rem; }
.score-bar-label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 0.25rem; }
.score-bar-bg { background: #e0e0e0; border-radius: 4px; overflow: hidden; }
.score-bar { background: #0073e6; color: white; text-align: right; padding: 4px 8px; border-radius: 4px; width: 0; transition: width 1s ease-out; }
.recommendation-card.secondary { background-color: #f9faff; border: 1px dashed #ccc; }
.recommendation-card .tag { display: inline-block; padding: 0.25rem 0.75rem; border-radius: 12px; font-size: 0.9rem; margin-bottom: 1rem; font-weight: 500;}
.recommendation-card.primary .tag { background: #0073e6; color: white; }
.recommendation-card.secondary .tag { background: #e0e0e0; color: #333; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.info-grid ul { list-style-position: inside; padding-left: 0; }
.info-grid li { margin-bottom: 0.25rem; }
.flowchart-img { width: 100%; border-radius: 6px; margin-top: 1rem; background-color: #eee; }
blockquote { background: #eaf4ff; border-left: 5px solid #0073e6; margin: 1.5rem 0; padding: 1rem; }
blockquote p { margin: 0; }

/* Footer */
footer { text-align:center; padding:2rem 0; color:#777; margin-top: 2rem; }
footer p:first-child { margin-bottom: 0.5rem; }

/* --- Mobile Responsive Styles --- */
@media (max-width: 768px) {
  body {
    -webkit-text-size-adjust: 100%; /* Prevents iOS font scaling */
  }
  
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .logo {
    font-size: 1.25rem;
  }
  
  nav ul {
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  .question-container, .results-card {
    padding: 1.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero .btn {
    width: 90%;
    max-width: 320px;
    text-align: center;
  }

}

