/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:       #0f1f3d;
  --navy-mid:   #162847;
  --navy-light: #1e3557;
  --teal:       #0ea5b0;
  --teal-light: #22d3e0;
  --teal-pale:  #e0f7f9;
  --white:      #ffffff;
  --off-white:  #f5f8fb;
  --text-main:  #1a2a40;
  --text-mid:   #4a5a70;
  --text-light: #8a9ab0;
  --border:     #d0dce8;
  --error:      #d94f4f;
  --success:    #1aaa6e;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow:     0 4px 24px rgba(15,31,61,0.10);
  --shadow-lg:  0 8px 40px rgba(15,31,61,0.16);
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
  background: var(--off-white);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
}

/* ============================================================
   UTILITIES
============================================================ */
.hidden {
  display: none !important;
}

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   PAGE WRAPPER
============================================================ */
.page-wrapper {
  min-height: 100vh;
}

/* ============================================================
   SECTIONS
============================================================ */
.section {
  padding: 60px 0;
  animation: fadeIn 0.4s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   INTRO SECTION
============================================================ */
.intro-section {
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.badge {
  display: inline-block;
  background: rgba(14,165,176,0.20);
  color: var(--teal-light);
  border: 1px solid rgba(14,165,176,0.35);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.intro-heading {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--white);
  letter-spacing: -0.02em;
}

.intro-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin: 0 auto 20px;
}

.trust-line {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.60);
  max-width: 480px;
  margin: 0 auto 36px;
  font-style: italic;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-primary:hover:not(:disabled) {
  background: var(--teal-light);
  border-color: var(--teal-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14,165,176,0.35);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--off-white);
  border-color: var(--text-mid);
}

.btn-cta {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 20px rgba(14,165,176,0.30);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(14,165,176,0.40);
}

.btn-large {
  font-size: 1.05rem;
  padding: 15px 36px;
  border-radius: 12px;
}

.btn-full {
  width: 100%;
}

/* ============================================================
   QUIZ SECTION
============================================================ */
.quiz-section {
  background: var(--off-white);
}

.quiz-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

/* Progress */
.progress-wrapper {
  margin-bottom: 32px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-mid);
  font-weight: 500;
  margin-bottom: 8px;
}

.progress-bar-track {
  width: 100%;
  height: 7px;
  background: var(--teal-pale);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  border-radius: 100px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 10%;
}

/* Question */
.question-area {
  margin-bottom: 28px;
  min-height: 260px;
}

.question-text {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.45;
}

.answers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  background: var(--white);
  position: relative;
}

.answer-option:hover {
  border-color: var(--teal);
  background: var(--teal-pale);
  transform: translateX(3px);
}

.answer-option.selected {
  border-color: var(--teal);
  background: var(--teal-pale);
}

.answer-option.selected::after {
  content: "✓";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-weight: 800;
  font-size: 1rem;
}

.answer-option input[type="radio"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--teal);
  cursor: pointer;
}

.answer-option label {
  font-size: 0.97rem;
  color: var(--text-main);
  cursor: pointer;
  line-height: 1.5;
  flex: 1;
}

/* Quiz nav */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.answer-warning {
  text-align: center;
  color: var(--error);
  font-size: 0.88rem;
  margin-top: 12px;
  font-weight: 500;
}

/* ============================================================
   CONTACT GATE / FORM SECTION
============================================================ */
.contact-section {
  background: var(--off-white);
}

.form-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.gate-message {
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.lock-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.gate-message h2 {
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}

.gate-message p {
  color: var(--text-mid);
  font-size: 0.97rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.form-group input {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text-main);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14,165,176,0.12);
}

.form-group input.input-error {
  border-color: var(--error);
}

.field-error {
  font-size: 0.83rem;
  color: var(--error);
  font-weight: 500;
  min-height: 18px;
}

.form-submit-error {
  color: var(--error);
  font-size: 0.88rem;
  text-align: center;
  margin-top: 14px;
  font-weight: 500;
}

/* ============================================================
   RESULT SECTIONS
============================================================ */
.result-section {
  background: var(--off-white);
}

.result-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.result-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--teal-light);
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(15,31,61,0.22);
}

.score-helper {
  margin-bottom: 10px;
  color: var(--text-mid);
  font-size: 0.95rem;
}

.result-band-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.result-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.personal-greeting {
  font-size: 0.98rem;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.result-message {
  text-align: left;
  background: var(--off-white);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 24px 24px;
  margin-bottom: 36px;
}

.result-message p {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 14px;
  line-height: 1.75;
}

.result-message p:last-child {
  margin-bottom: 0;
}

.site-logo {
  width: min(480px, 96%);
  height: auto;
  margin: 0 auto 36px;
  display: block;
}

.cta-block {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  color: var(--white);
}

.cta-lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 22px;
  line-height: 1.65;
}

.compliance-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-top: 16px;
  font-style: italic;
}
.location-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.location-btn {
  width: 100%;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 24px 20px;
  font-size: 0.82rem;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 600px) {
  .quiz-container,
  .form-container,
  .result-container {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .quiz-nav {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .quiz-nav .btn {
    width: 100%;
  }

  .cta-block {
    padding: 28px 20px;
  }

  .answer-option {
    padding: 13px 14px;
  }
}

@media (max-width: 360px) {
  .intro-heading {
    font-size: 1.55rem;
  }
}