/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark: #1d7857;
  --green-medium: #228a64;
  --green-light: #E8F2ED;
  --green-border: #A8D5C4;
  --green-accent: #2a9a6e;
  --grey-dark: #2d3436;
  --grey-medium: #4B5563;
  --bg-grey: #FAFAF8;
  --bg-white: #FFFFFF;
  --text-dark: #1F2937;
  --text-body: #4B5563;
  --text-muted: #9CA3AF;
  --border-light: #E5E7EB;
  --shadow-card: 0 4px 24px rgba(29, 120, 87, 0.08);
  --shadow-footer: 0 8px 32px rgba(29, 120, 87, 0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-grey);
  color: var(--text-body);
  line-height: 1.5;
  min-height: 100vh;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px 48px;
  position: relative;
  overflow: hidden;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 32px;
  position: relative;
  z-index: 10;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-image {
  display: block;
  height: 34px;
  width: auto;
}

.header__privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.header__privacy svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
  overflow: visible;
}

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 5;
}

.hero__visual {
  order: 2;
  width: 100%;
  align-self: center;
}

.hero__photo {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(29, 120, 87, 0.15);
  width: 100%;
  aspect-ratio: 16 / 10;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero__photo-badges {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__photo-badge {
  background: var(--green-dark);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  line-height: 1.2;
  white-space: nowrap;
}

.hero__content {
  max-width: 520px;
  order: 1;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green-accent);
  margin-bottom: 12px;
}

.hero__title {
  font-size: 36px;
  font-weight: 700;
  color: var(--grey-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero__description {
  font-size: 15px;
  color: var(--text-body);
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}

.hero__feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.hero__feature-icon {
  width: 100%;
  max-width: 120px;
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: visible;
  background: transparent;
}

.hero__feature-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

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

.hero__feature-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}

.hero__feature-text span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.3;
}

.hero__cta-wrap {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin: 8px 0 16px;
}

.hero__cta-glow {
  position: relative;
  padding: 3px;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  width: 100%;
  max-width: 360px;
}

.hero__cta-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 220%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 40deg,
    rgba(232, 242, 237, 0.95) 70deg 110deg,
    rgba(168, 213, 196, 0.85) 140deg 180deg,
    transparent 210deg 360deg
  );
  transform: translate(-50%, -50%);
  animation: heroCtaSpin 2.5s linear infinite;
  z-index: 0;
}

.hero__cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 32px;
  border: none;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.hero__cta svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero__cta:hover {
  background: var(--green-medium);
}

.hero__cta:active {
  transform: scale(0.97);
}

@keyframes heroCtaSpin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ===== Quiz Card ===== */
.quiz {
  position: relative;
  z-index: 10;
  margin-bottom: 48px;
  scroll-margin-top: 20px;
}

.quiz__card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 36px 40px 32px;
  max-width: 900px;
}

/* ===== Stepper ===== */
.stepper {
  margin-bottom: 36px;
  position: relative;
}

.stepper__track {
  position: absolute;
  top: 15px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border-light);
  z-index: 0;
}

.stepper__progress {
  height: 100%;
  background: var(--green-dark);
  width: 0%;
  transition: width 0.3s ease;
}

.stepper__steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.stepper__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: default;
}

.stepper__circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.stepper__step--active .stepper__circle {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
}

.stepper__step--completed .stepper__circle {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
}

.stepper__label {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.stepper__step--active .stepper__label {
  color: var(--green-dark);
  font-weight: 600;
}

/* ===== Quiz Content ===== */
.quiz__step {
  display: none;
}

.quiz__step--active {
  display: block;
}

.quiz__question {
  font-size: 22px;
  font-weight: 700;
  color: var(--grey-dark);
  margin-bottom: 8px;
}

.quiz__hint {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.quiz__notice {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-dark);
  background: var(--green-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin: -12px 0 20px;
  text-align: center;
  line-height: 1.4;
}

/* ===== Inspiration Gallery ===== */
.quiz__step--gallery .inspiration-gallery {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.inspiration-gallery {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.inspiration-gallery__head {
  margin-bottom: 16px;
}

.inspiration-gallery__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--grey-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.quiz__step--gallery .inspiration-gallery__title {
  font-size: 22px;
}

.inspiration-gallery__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

.inspiration-gallery__wrap {
  position: relative;
}

.inspiration-gallery__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  padding: 12px 4px 20px;
  margin: 0 -2px;
  max-width: 100%;
}

.inspiration-gallery__track::-webkit-scrollbar {
  display: none;
}

.inspiration-gallery__slide {
  flex: 0 0 72%;
  scroll-snap-align: center;
  margin: 0;
  min-width: 0;
}

.inspiration-gallery__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow:
    0 10px 28px rgba(45, 52, 54, 0.12),
    0 4px 12px rgba(45, 52, 54, 0.06);
}

.inspiration-gallery__frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.inspiration-gallery__label {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--grey-dark);
  line-height: 1.3;
  box-shadow: 0 2px 10px rgba(45, 52, 54, 0.12);
}

.inspiration-gallery__nav {
  display: none;
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg-white);
  color: var(--green-dark);
  box-shadow: 0 4px 16px rgba(29, 120, 87, 0.15);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s;
}

.inspiration-gallery__nav svg {
  width: 18px;
  height: 18px;
}

.inspiration-gallery__nav:hover {
  background: var(--green-light);
}

.inspiration-gallery__nav:active {
  transform: translateY(-50%) scale(0.95);
}

.inspiration-gallery__nav--prev {
  left: -10px;
}

.inspiration-gallery__nav--next {
  right: -10px;
}

@media (min-width: 769px) {
  .inspiration-gallery__nav {
    display: flex;
  }

  .inspiration-gallery__slide {
    flex: 0 0 46%;
  }
}

@media (max-width: 768px) {
  .quiz__step--gallery {
    overflow: visible;
  }

  .quiz__step--gallery .inspiration-gallery__head {
    margin-bottom: 14px;
  }

  .quiz__step--gallery .inspiration-gallery__wrap {
    width: calc(100% + 40px);
    margin-left: -20px;
    margin-right: -20px;
    overflow: visible;
  }

  .inspiration-gallery__track {
    padding: 4px 12px 16px 0;
    scroll-padding-inline: 0 12px;
    gap: 12px;
  }

  .inspiration-gallery__slide {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .inspiration-gallery__frame {
    width: 100%;
    max-height: 52dvh;
    aspect-ratio: 3 / 4;
  }

  .inspiration-gallery__frame img {
    width: 100%;
    height: 100%;
    aspect-ratio: unset;
    max-height: none;
    object-fit: cover;
  }

  .inspiration-gallery__label {
    left: 12px;
    top: 12px;
  }

  .page--quiz .quiz__card:has(.quiz__step--gallery.quiz__step--active) .quiz__nav {
    padding-top: 16px;
  }
}

/* ===== Social proof / Reviews ===== */
.quiz__step--reviews {
  padding-top: 4px;
}

.social-proof {
  text-align: center;
}

.social-proof__hero {
  margin-bottom: 24px;
}

.social-proof__icon {
  display: block;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
}

.social-proof__title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 10px;
}

.social-proof__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  max-width: 340px;
  margin-inline: auto;
}

.reviews-marquee {
  overflow: hidden;
  margin: 0 -20px 12px;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}

.reviews-marquee--reverse {
  margin-bottom: 20px;
}

.reviews-marquee__track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 4px 20px 8px;
  animation: reviews-scroll 260s linear infinite;
}

.reviews-marquee--reverse .reviews-marquee__track {
  animation-duration: 340s;
  animation-direction: reverse;
}

.review-card {
  flex: 0 0 260px;
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.review-card__stars {
  color: #1d7857;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.review-card__quote {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 12px;
}

.review-card__author {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0;
}

.social-proof__rating {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.social-proof__rating strong {
  color: var(--text);
}

@keyframes reviews-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reviews-marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding-inline: 0;
  }

  .review-card[aria-hidden='true'] {
    display: none;
  }

  .reviews-marquee {
    margin-inline: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@media (max-width: 640px) {
  .quiz__step--reviews {
    padding-top: 0;
  }

  .social-proof__title {
    font-size: 20px;
  }

  .review-card {
    flex: 0 0 240px;
  }

  .page--quiz .quiz__card:has(.quiz__step--reviews.quiz__step--active) .quiz__nav {
    padding-top: 16px;
  }
}

/* ===== Options ===== */
.option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px 16px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-grey);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-align: center;
  box-sizing: border-box;
}

.option:hover {
  border-color: var(--green-border);
  background: var(--green-light);
}

.option--selected {
  border-color: var(--green-dark);
  background: var(--green-light);
}

.options {
  display: grid;
  width: 100%;
  gap: 12px;
  margin-bottom: 32px;
  padding: 3px;
  box-sizing: border-box;
}

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

.options--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.options--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.options--desc .option {
  min-height: 140px;
  justify-content: flex-start;
  padding: 18px 12px 16px;
}

.options--desc .option__subtitle {
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
  margin-top: 2px;
}

.options--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.options--6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.options--6 .option {
  min-height: 88px;
  justify-content: center;
  padding: 20px 8px 16px;
}

.options--6 .option__title {
  font-size: 18px;
  font-weight: 600;
}

.options--2 .option {
  width: 100%;
  min-height: 130px;
  justify-content: center;
  padding: 24px 14px 20px;
}

.options--2 .option__title,
.options--4 .option__title {
  line-height: 1.35;
}

.options--photo .option {
  padding: 10px 10px 14px;
  background: var(--bg-white);
}

.option__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--green-light);
}

.option__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.option:hover .option__photo img {
  transform: scale(1.04);
}

.option__photo--illustration {
  background: var(--bg-grey);
}

.option__photo--illustration img {
  object-fit: contain;
  padding: 10px 12px;
}

.option__emoji {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}

/* ===== Window Dimensions ===== */
.windows-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.window-card {
  background: var(--bg-grey);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.window-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.window-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--grey-dark);
}

.window-card__remove {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}

.window-card__remove:hover {
  color: var(--text-dark);
  background: var(--border-light);
}

.dim-control {
  margin-bottom: 24px;
}

.dim-control:last-child {
  margin-bottom: 0;
}

.dim-control__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.dim-control__input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.dim-control__input {
  width: 100px;
  font-family: inherit;
  font-size: 28px;
  font-weight: 700;
  color: var(--green-dark);
  text-align: center;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}

.dim-control__input::-webkit-outer-spin-button,
.dim-control__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dim-control__input:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(29, 120, 87, 0.12);
}

.dim-control__unit {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
}

.dim-control__slider-wrap {
  padding: 0 4px;
}

.dim-control__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    var(--green-dark) 0%,
    var(--green-dark) var(--slider-progress, 30%),
    var(--border-light) var(--slider-progress, 30%),
    var(--border-light) 100%
  );
  outline: none;
  cursor: pointer;
}

.dim-control__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-dark);
  border: 3px solid var(--bg-white);
  box-shadow: 0 2px 8px rgba(29, 120, 87, 0.3);
  cursor: grab;
  transition: transform 0.15s;
}

.dim-control__slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.1);
}

.dim-control__slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-dark);
  border: 3px solid var(--bg-white);
  box-shadow: 0 2px 8px rgba(29, 120, 87, 0.3);
  cursor: grab;
}

.dim-control__slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.window-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  background: var(--bg-white);
  border: 1.5px dashed var(--green-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 32px;
  touch-action: manipulation;
  position: relative;
  z-index: 2;
}

.window-add:hover {
  background: var(--green-light);
  border-color: var(--green-dark);
}

.window-add svg {
  width: 18px;
  height: 18px;
}

.option__icon {
  width: 48px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.option__icon svg {
  width: 100%;
  height: 100%;
}

.option__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.option__subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

/* ===== Contact Form ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 8px;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.contact-form__optional {
  font-weight: 400;
  color: var(--text-muted);
}

.contact-form__input {
  font-family: inherit;
  font-size: 15px;
  color: var(--text-dark);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form__input::placeholder {
  color: var(--text-muted);
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(29, 120, 87, 0.12);
}

.contact-form__phone {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.contact-form__prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-body);
  background: var(--green-light);
  border: 1.5px solid var(--border-light);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  white-space: nowrap;
}

.contact-form__input--phone {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  flex: 1;
}

.contact-form--results {
  margin-bottom: 0;
}

/* ===== Analysis Loading ===== */
.quiz__card--analyzing .stepper,
.quiz__card--analyzing .quiz__nav {
  display: none;
}

.analysis {
  padding: 12px 0 8px;
  max-width: 420px;
  margin: 0 auto;
}

.analysis__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  text-align: center;
}

.analysis__icon {
  width: 56px;
  height: 56px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: analysis-pulse 2s ease-in-out infinite;
}

.analysis__icon svg {
  width: 28px;
  height: 28px;
}

@keyframes analysis-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

.analysis__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
}

.analysis__progress-wrap {
  margin-bottom: 28px;
}

.analysis__progress-track {
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.analysis__progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-dark), var(--green-accent));
  border-radius: 4px;
}

.analysis__checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.analysis__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  opacity: 0.4;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, color 0.35s ease;
}

.analysis__item--active {
  opacity: 1;
  transform: translateY(0);
  color: var(--text-body);
}

.analysis__item--done {
  opacity: 1;
  transform: translateY(0);
  color: var(--text-dark);
}

.analysis__check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.analysis__check svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  color: white;
}

.analysis__item--active .analysis__check {
  border-color: var(--green-border);
  background: var(--green-light);
}

.analysis__item--done .analysis__check {
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.analysis__item--done .analysis__check svg {
  opacity: 1;
  transform: scale(1);
}

/* ===== Results ===== */
.quiz__card--results .quiz__nav {
  display: none;
}

.results__success {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.results__success-icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.results__success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--grey-dark);
  line-height: 1.25;
}

.results__offers {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.results__offer {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-white);
}

.results__offer-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px 12px;
  background: var(--bg-grey);
  border-bottom: 1px solid var(--border-light);
}

.results__offer-window {
  font-size: 15px;
  font-weight: 700;
  color: var(--grey-dark);
  line-height: 1.3;
}

.results__offer-room {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.3;
}

.results__summary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.results__summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
}

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

.results__summary-key {
  font-size: 13px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.results__summary-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: right;
  line-height: 1.4;
}

.price-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 18px 18px;
  margin-bottom: 28px;
  background: var(--bg-white);
  box-shadow: 0 2px 12px rgba(29, 120, 87, 0.06);
}

.price-card__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.price-card__value {
  font-size: 36px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.price-card__note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 18px;
}

.price-card__included-block {
  background: var(--green-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.price-card__included-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.price-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-dark);
  flex-shrink: 0;
}

.price-card__included-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-card__included-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-body);
}

.price-card__included-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 13l4 4L19 7' stroke='%231d7857' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.results__cta-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--grey-dark);
  margin-bottom: 10px;
}

.results__cta-text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 12px;
}

.results__cta-text strong {
  color: var(--text-dark);
  font-weight: 600;
}

.results__cta-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.results__cta-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-body);
}

.results__cta-benefits li::before {
  content: "✔";
  font-size: 14px;
  line-height: 1.4;
  color: var(--green-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.results__cta-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 20px;
  padding: 10px 12px;
  background: var(--bg-grey);
  border-radius: var(--radius-sm);
  text-align: center;
}

.results__submit-wrap {
  width: 100%;
  margin-top: 4px;
}

.results__submit-glow {
  position: relative;
  padding: 3px;
  border-radius: var(--radius-md);
  overflow: hidden;
  isolation: isolate;
}

.results__submit-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 220%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 40deg,
    rgba(232, 242, 237, 0.95) 70deg 110deg,
    rgba(168, 213, 196, 0.85) 140deg 180deg,
    transparent 210deg 360deg
  );
  transform: translate(-50%, -50%);
  animation: heroCtaSpin 2.5s linear infinite;
  z-index: 0;
}

.results__submit {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--green-dark);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 24px;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.results__submit:hover {
  background: var(--green-medium);
}

.results__submit:active {
  transform: scale(0.98);
}

.results__submit svg {
  width: 18px;
  height: 18px;
}

.results__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
}

.results__privacy svg {
  width: 14px;
  height: 14px;
}

.results--confirmed .results__cta-form {
  display: none;
}

.results__confirm[hidden] {
  display: none !important;
}

.confirm-card {
  text-align: center;
  padding: 8px 4px 12px;
}

.confirm-card__icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-card__icon {
  font-size: 28px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.confirm-card__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--grey-dark);
  margin-bottom: 12px;
  line-height: 1.25;
}

.confirm-card__message {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 10px;
}

.confirm-card__message strong,
.confirm-card__sub strong {
  color: var(--text-dark);
  font-weight: 600;
}

.confirm-card__sub {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 24px;
}

.confirm-card__next {
  text-align: left;
  background: var(--green-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 18px;
}

.confirm-card__next-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--grey-dark);
  margin-bottom: 12px;
}

.confirm-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.confirm-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-body);
}

.confirm-card__list li::before {
  content: "✔";
  color: var(--green-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.confirm-card__note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  padding: 10px 12px;
  background: var(--bg-grey);
  border-radius: var(--radius-sm);
}

.contact-form__input--error {
  border-color: #e57373;
  box-shadow: 0 0 0 3px rgba(229, 115, 115, 0.15);
}

/* ===== Quiz Navigation ===== */
.quiz__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  position: relative;
  z-index: 5;
  flex-shrink: 0;
}

.quiz__back {
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 0;
  transition: color 0.2s;
}

.quiz__back:not(:disabled):hover {
  color: var(--green-dark);
}

.quiz__back:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.quiz__back svg {
  width: 18px;
  height: 18px;
}

.quiz__next {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--green-dark);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.quiz__next:hover {
  background: var(--green-medium);
}

.quiz__next:active {
  transform: scale(0.98);
}

.quiz__next svg {
  width: 18px;
  height: 18px;
}

/* ===== Trust Section (Mixtiles style) ===== */
.trust {
  margin-bottom: 40px;
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 8px 0 16px;
}

.trust__heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--grey-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.trust__rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 36px;
}

.trust__stars {
  display: flex;
  gap: 3px;
}

.trust__stars svg {
  width: 22px;
  height: 22px;
}

.trust__rating-text {
  font-size: 14px;
  color: var(--text-body);
}

.trust__rating-text strong {
  color: var(--grey-dark);
}

.trust__perks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 640px;
  margin: 0 auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

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

.trust__illustration {
  width: 120px;
  height: 100px;
}

.trust__illustration svg {
  width: 100%;
  height: 100%;
}

.trust__perk-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-dark);
  line-height: 1.4;
  max-width: 200px;
}

/* ===== FAQ ===== */
.faq {
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.faq__heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--grey-dark);
  text-align: center;
  margin-bottom: 20px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq__item {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq__item[open] {
  border-color: var(--green-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--grey-dark);
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s;
  margin-top: -4px;
}

.faq__item[open] .faq__question::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq__answer {
  padding: 0 18px 16px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 10;
}

.footer__inner {
  background: var(--green-dark);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  gap: 0;
  box-shadow: var(--shadow-footer);
}

.footer__cta {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__cta strong {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.footer__cta span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 28px;
  flex-shrink: 0;
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  flex: 1;
}

.footer__contact:hover {
  background: rgba(255, 255, 255, 0.08);
}

.footer__contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer__contact-icon svg {
  width: 20px;
  height: 20px;
}

.footer__contact div:last-child {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.footer__contact strong {
  font-size: 15px;
  font-weight: 600;
  color: white;
}

.footer__contact span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* ===== Responsive ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .options--4,
  .options--5,
  .options--6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .options--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body:has(.page--landing) {
    overflow: hidden;
  }

  .page--landing {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .page--landing .quiz,
  .page--landing .trust,
  .page--landing .faq,
  .page--landing .footer {
    display: none;
  }

  .page--landing .hero {
    flex: 1;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    min-height: 0;
  }

  .page--landing .hero__visual,
  .page--landing .hero__content {
    flex: 0 0 auto;
    width: 100%;
  }

  .page--quiz {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: 16px;
    overflow: visible;
  }

  .page--quiz .hero,
  .page--quiz .trust,
  .page--quiz .faq,
  .page--quiz .footer {
    display: none;
  }

  .page--quiz .quiz {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }

  .page--quiz .quiz__card {
    flex: 1;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }

  .page--quiz .quiz__steps {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: visible;
    padding: 4px 2px;
  }

  .page--quiz .quiz__nav {
    flex-shrink: 0;
  }

  .page {
    padding: 12px 16px 28px;
    overflow: visible;
  }

  .header {
    padding-bottom: 12px;
  }

  .header__privacy span {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
    display: grid;
  }

  .hero__visual {
    order: 1;
    width: 100%;
  }

  .hero__photo {
    width: 100%;
    aspect-ratio: 16 / 10;
  }

  .hero__photo-badges {
    bottom: 10px;
    left: 10px;
    right: 10px;
    gap: 6px;
  }

  .hero__photo-badge {
    font-size: 10px;
    padding: 6px 10px;
  }

  .hero__content {
    order: 2;
    text-align: center;
    max-width: 100%;
    display: block;
    padding: 0 0 6px;
    width: 100%;
  }

  .hero__eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .hero__title {
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.15;
  }

  .hero__description {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.45;
    max-width: 100%;
    padding: 0 4px;
  }

  .hero__cta-wrap {
    justify-content: center;
    width: 100%;
    margin: 16px 0 0;
    padding: 0 4px;
  }

  .hero__cta-glow {
    max-width: none;
  }

  .hero__cta {
    padding: 19px 28px;
    font-size: 17px;
  }

  .hero__features {
    gap: 8px;
    max-width: 100%;
    margin: 0;
    padding-top: 10px;
    width: 100%;
  }

  .hero__feature-card {
    gap: 8px;
  }

  .hero__feature-icon {
    max-width: 76px;
  }

  .hero__feature-text strong {
    font-size: 11px;
  }

  .hero__feature-text span {
    font-size: 10px;
  }

  .quiz__card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .price-card__value {
    font-size: 30px;
  }

  .results__success-title {
    font-size: 18px;
  }

  .stepper__steps {
    gap: 0;
  }

  .stepper__track {
    left: 24px;
    right: 24px;
  }

  .stepper__label {
    font-size: 8px;
  }

  .dim-control__input {
    width: 88px;
    font-size: 24px;
    padding: 8px 10px;
  }

  .dim-control__slider::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
  }

  .options--2 {
    gap: 10px;
  }

  .options--2 .option {
    min-height: 120px;
    padding: 20px 12px 16px;
  }

  .options--4,
  .options--5 {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .options--3 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .options--desc .option {
    min-height: 120px;
  }

  .options--6 {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .options--5 .option:last-child {
    grid-column: 1 / -1;
  }

  .trust__heading {
    font-size: 24px;
  }

  .trust__perks {
    gap: 24px;
  }

  .faq__heading {
    font-size: 20px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px;
  }

  .footer__divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .options--2 {
    gap: 8px;
  }

  .options--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .stepper__circle {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}
