﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --green: #76b82a;
  --green-dark: #3f7f2d;
  --green-soft: #eaf4df;
  --text: #1d2b1a;
  --muted: #667066;
  --card: #ffffff;
  --border: #e6e6e6;
  --shadow: 0 10px 20px rgba(20, 40, 10, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: #fafcf7;
}

.page {
  min-height: 100vh;
}

.top-banner {
  width: 100%;
  background: linear-gradient(90deg, #1c2b18, #2f4a24);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffcf4b;
  box-shadow: 0 0 10px rgba(255, 207, 75, 0.7);
}

.banner-cta {
  border: none;
  background: #ffcf4b;
  color: #1d2b1a;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.banner-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.top {
  padding: 24px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.logo-img {
  width: 220px;
  max-width: 70vw;
  height: auto;
  display: block;
}

.progress {
  width: min(460px, 86vw);
  height: 8px;
  background: #e8efdd;
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  width: 5%;
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.quiz {
  padding: 0 16px 40px;
  max-width: 520px;
  margin: 0 auto;
}

.step {
  display: none;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.step.active {
  display: flex;
  animation: stepIn 0.35s ease;
}

h1, h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  margin: 0;
}

h1 {
  font-size: 20px;
  line-height: 1.3;
}

h2 {
  font-size: 20px;
}

.sub {
  color: var(--muted);
  margin: 0;
}

.pill {
  background: #d73b45;
  color: #fff;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-block;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.hero-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  padding: 10px;
}

.hero-card.dark {
  background: #101610;
}

.hero-card img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

.warning {
  font-size: 12px;
  color: #1f2a1f;
  font-weight: 700;
}

.cta-line {
  color: #d43e39;
  font-weight: 700;
  font-size: 12px;
}

.btn {
  width: 100%;
  border: none;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(48, 97, 23, 0.6);
  text-decoration: none;
  transition: transform 0.15s ease, filter 0.2s ease;
}

.btn.primary {
  background: var(--green);
  color: #fff;
}

.btn.ghost {
  background: #eef3e8;
  color: #2f3a2c;
  box-shadow: none;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(48, 97, 23, 0.6);
}

.btn:hover {
  filter: brightness(1.03);
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.choice {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.option-card {
  align-items: flex-start;
}

.option-card .text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-card .title {
  font-weight: 700;
}

.option-card .desc {
  font-size: 13px;
  color: var(--muted);
}

.choice .icon {
  font-size: 22px;
}

.choice.selected {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.choice:hover {
  transform: translateY(-1px);
}

.choice.selected .icon {
  filter: brightness(1.2);
}

.grid {
  display: grid;
  gap: 14px;
  width: 100%;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.checkbox-grid {
  gap: 10px;
}

.checkbox-choice {
  justify-content: flex-start;
  position: relative;
  padding-left: 44px;
  min-height: 54px;
}

.checkbox-choice::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #cfd5c9;
  border-radius: 4px;
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
}

.checkbox-choice.selected::before {
  background: var(--green);
  border-color: var(--green);
  box-shadow: inset 0 0 0 3px #fff;
}

.card {
  padding: 0;
  overflow: hidden;
  text-align: center;
  flex-direction: column;
}

.card img {
  width: 100%;
  display: block;
  background: #f7f7f7;
}

.card-foot {
  padding: 10px 12px;
  font-weight: 700;
}

.note {
  font-size: 14px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.chip {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.chip.selected {
  background: var(--green-dark);
}

.icon-big {
  font-size: 34px;
  padding: 22px 0 8px;
}

.story {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.story .red {
  color: #d23c39;
  font-weight: 700;
}

.story .green {
  color: var(--green-dark);
  font-weight: 700;
}

.slider {
  width: 100%;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 10px;
}

.slides {
  display: flex;
  overflow: hidden;
}

.slide {
  min-width: 100%;
  display: none;
}

.slide.active {
  display: block;
}

.slide img {
  width: 100%;
  border-radius: 14px;
  display: block;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9e7cd;
}

.dot.active {
  background: var(--green);
}

.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #d4d7d1;
  font-size: 16px;
  text-align: left;
}

.emoji {
  font-size: 34px;
  padding: 22px 0 8px;
}

.emoji.big {
  font-size: 46px;
  padding: 26px 0 12px;
}

.unit-toggle {
  display: inline-flex;
  background: #eef3e8;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.unit-button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  color: #7a8576;
}

.unit-button.active {
  background: var(--green);
  color: #fff;
}

.value-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 32px;
  font-weight: 700;
}

.value-input {
  width: 120px;
  border: none;
  border-bottom: 2px solid #d8dcd2;
  font-size: 32px;
  text-align: center;
  outline: none;
  background: transparent;
}

.unit-label {
  font-size: 18px;
  color: var(--muted);
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  background: #f2f5ef;
  padding: 10px 12px;
  border-radius: 12px;
}

.check-box {
  font-size: 16px;
}

.fruit-grid .checkbox-choice {
  justify-content: center;
  text-align: center;
  padding-left: 16px;
}

.fruit-grid .checkbox-choice::before {
  left: 10px;
}

.image-step {
  width: 100%;
  position: relative;
}

.image-step img {
  width: 100%;
  display: block;
  border-radius: 18px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1;
}

.image-step .image-zoom {
  width: 110%;
  max-width: 110%;
  margin: 0 -5%;
}

.overlay-btn {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 8%;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  box-shadow: none;
  padding: 0;
}

.img-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.img-btn img {
  max-width: 100%;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: block;
}

.img-btn.btn-s-crop {
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.img-btn.btn-s-crop img {
  box-shadow: none;
  transform: translateY(-14%);
}

.img-btn.btn-m-crop {
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.img-btn.btn-m-crop img {
  box-shadow: none;
  transform: translateY(-14%);
}

.img-btn.btn-d-crop {
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.img-btn.btn-d-crop img {
  box-shadow: none;
  transform: translateY(-10%);
}

.overlay-choice {
  position: absolute;
  width: 44%;
  height: 38%;
  top: 52%;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  box-shadow: none;
  padding: 0;
}

.overlay-choice.left {
  left: 6%;
}

.overlay-choice.right {
  right: 6%;
}

.name-comma.hidden {
  display: none;
}

.hidden {
  display: none;
}

.step[data-auto-next="true"] .btn[data-next] {
  display: none;
}

.video-placeholder {
  width: 100%;
  max-width: 400px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: block;
}

.video {
  width: 100%;
  height: 320px;
  border-radius: 18px;
  background: linear-gradient(135deg, #222, #000);
  position: relative;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 34px;
  box-shadow: var(--shadow);
}

.video-embed {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.video-frame {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.video-aspect {
  position: relative;
  padding: 178.21782178217822% 0 0 0;
}

.video-aspect iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.video-wait {
  background: #f2f5ef;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--muted);
}


.video .play {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.75);
  position: absolute;
  display: grid;
  place-items: center;
}

.video .play::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 28px solid #fff;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  margin-left: 6px;
}

.error {
  color: #c0392b;
  font-size: 12px;
  font-weight: 700;
  display: none;
}

.error.show {
  display: block;
}

.location-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: none;
  animation: stepIn 0.35s ease;
}

.location-banner.show {
  display: block;
}

.location-card {
  background: #fff;
  border: 1px solid #e2e7dd;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(16, 32, 12, 0.16);
  padding: 16px;
  display: grid;
  gap: 12px;
}

.location-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f2f6ec;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.location-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text);
  font-size: 14px;
}

.location-text strong {
  font-size: 15px;
}

.location-actions {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .location-card {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
  }

  .location-actions {
    grid-template-columns: auto auto;
  }
}

@media (max-width: 639px) {
  .location-banner {
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(18, 28, 14, 0.35);
    backdrop-filter: blur(3px);
  }

  .location-banner.show {
    display: flex;
  }

  .location-card {
    width: 100%;
    max-width: 420px;
  }
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


@media (max-width: 520px) {
  .grid.two {
    grid-template-columns: 1fr 1fr;
  }

  .video {
    height: 260px;
  }
}
