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

:root {
  --bg: #f4f8f8;
  --text: #16333a;
  --muted: #5b7378;
  --faint: #9fb2b5;
  --card: #ffffff;
  --border: #e1eaea;
  --teal: #14a098;
  --teal-dark: #0d7f78;
  --teal-soft: #e3f4f2;
  --teal-tint: #c4e8e4;
}

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 16px 40px;
  text-align: center;
}

/* Hero */
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

.terms {
  color: var(--faint);
  font-size: 0.85rem;
  margin: 14px 0 0;
}

.subhead {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.5;
  max-width: 560px;
  margin: 20px auto 0;
}

/* Quiz */
.quiz { margin-top: 44px; }

.progress {
  max-width: 320px;
  margin: 0 auto 28px;
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.progress-track {
  height: 4px;
  background: #e2ebeb;
  border-radius: 999px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--teal);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.step { display: none; margin: 0; }
.step.active { display: block; }

.step h2 {
  font-size: clamp(1.3rem, 3.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.3;
  max-width: 560px;
  margin: 0 auto;
}

.step h2 strong { font-weight: 600; }

.hint {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 10px 0 26px;
}

/* Image option cards */
.options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto;
}

.option {
  position: relative;
  flex: 0 1 calc((100% - 24px) / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 18px 10px 16px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(22, 51, 58, 0.04), 0 4px 14px rgba(22, 51, 58, 0.04);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.icon-wrap {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(145deg, #eaf8f6 0%, #d3efeb 100%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.option svg { width: 30px; height: 30px; }
.ic-fill { fill: #ffffff; stroke: none; opacity: 0.85; }
.ic-line { fill: none; stroke: var(--teal-dark); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s ease; }

.option:hover {
  border-color: var(--teal-tint);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(22, 51, 58, 0.04), 0 10px 24px rgba(20, 160, 152, 0.1);
}
.option:hover .icon-wrap { transform: scale(1.06); }
.option:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.option[aria-pressed="true"] {
  border-color: var(--teal);
  background: linear-gradient(180deg, #ffffff 0%, #f0faf8 100%);
  box-shadow: 0 0 0 3px var(--teal-soft), 0 10px 24px rgba(20, 160, 152, 0.12);
}
.option[aria-pressed="true"] .icon-wrap { background: linear-gradient(145deg, var(--teal) 0%, var(--teal-dark) 100%); }
.option[aria-pressed="true"] .ic-line { stroke: #ffffff; }
.option[aria-pressed="true"] .ic-fill { fill: #ffffff; opacity: 0.2; }

/* Tick badge on the selected card */
.option::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.option[aria-pressed="true"]::after { opacity: 1; transform: scale(1); }

/* Buttons */
.next {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 28px auto 0;
  background: var(--teal);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(20, 160, 152, 0.22);
  transition: background 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.next:hover:not(:disabled) { background: var(--teal-dark); }

.back {
  background: none;
  border: 0;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 14px 8px 0;
}

.back:hover { color: var(--teal-dark); }

/* Lead form */
.fields {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

label {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

input {
  display: block;
  width: 100%;
  margin-top: 6px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder { color: var(--faint); }
input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); outline: none; }

.error { color: #c0392b; font-size: 0.85rem; margin: 0; }

.privacy {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 14px 0 0;
}

footer {
  color: var(--faint);
  font-size: 0.78rem;
  margin-top: 56px;
}

@media (max-width: 640px) {
  .options { gap: 10px; }
  .option {
    flex-basis: calc((100% - 10px) / 2);
    padding: 14px 10px 12px;
    font-size: 0.8rem;
  }
  .icon-wrap { width: 44px; height: 44px; }
  .option svg { width: 26px; height: 26px; }
}

@media (max-width: 560px) {
  .page { padding-top: 36px; }
  .subhead { font-size: 1rem; }
  .quiz { margin-top: 32px; }
  .hint { font-size: 0.92rem; margin-bottom: 20px; }
}

.booking { display: block; width: 100%; border: 0; margin-top: 8px; }
