@font-face {
  font-family: "Montserrat";
  src: url("assets/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --lj-orange: #f47a63;
  --lj-orange-dark: #d75f4d;
  --white: #ffffff;
  --ink: #231f20;
  --soft-orange: #fff1ed;
  --soft-grey: #f8f5f3;
  --line: rgba(244, 122, 99, 0.24);
  --shadow: 0 24px 70px rgba(64, 24, 17, 0.16);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
  letter-spacing: -0.02em;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 34rem),
    linear-gradient(180deg, var(--soft-orange) 0%, #ffffff 42%, #ffffff 100%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.survey-shell {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
  display: block;
}

.survey-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  position: relative;
  overflow: visible;
  background: transparent;
  padding: 24px 0 34px;
  margin-bottom: 18px;
  text-align: center;
}

.logo-card {
  width: min(420px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border-radius: 0;
  margin: 0 auto 30px;
}

.hero__logo {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}

.eyebrow,
.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--soft-orange);
  color: var(--lj-orange-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
strong {
  font-weight: 800;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(1.35rem, 5.4vw, 3rem);
  line-height: 0.98;
  color: var(--lj-orange);
  white-space: nowrap;
}

.hero__intro {
  margin-bottom: 12px;
  font-size: 1.15rem;
  line-height: 1.55;
}

.hero__note {
  margin-bottom: 0;
  color: rgba(35, 31, 32, 0.72);
  line-height: 1.7;
}

.hero__note span {
  display: block;
}

.survey-card {
  background: rgba(255, 255, 255, 0.96);
  padding: 28px;
}

.progress-area {
  margin-bottom: 26px;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: rgba(35, 31, 32, 0.62);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: var(--soft-orange);
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--lj-orange);
  transition: width 360ms ease;
}

form.is-hidden {
  display: none;
}

.step {
  display: none;
  animation: fadeSlide 300ms ease both;
}

.step.is-active {
  display: block;
}

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

.step h2,
.success-page h2 {
  margin: 20px 0 12px;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  line-height: 1.08;
}

.hint {
  margin-bottom: 18px;
  color: rgba(35, 31, 32, 0.62);
  line-height: 1.5;
}

.option-grid {
  display: grid;
  gap: 12px;
}

.option,
.rating,
.text-input,
.matrix-item,
.code-card {
  border: 1.5px solid var(--line);
  background: var(--white);
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.option {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 17px 18px;
  border-radius: var(--radius-md);
  line-height: 1.35;
}

.option:hover,
.rating:hover {
  border-color: rgba(244, 122, 99, 0.72);
  transform: translateY(-1px);
}

.option input,
.rating input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.option::before {
  content: "";
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid var(--lj-orange);
  border-radius: 6px;
  background: var(--white);
}

.option:has(input[type="radio"])::before {
  border-radius: 50%;
}

.option:has(input:checked) {
  border-color: var(--lj-orange);
  background: var(--soft-orange);
  box-shadow: 0 12px 28px rgba(244, 122, 99, 0.14);
}

.option:has(input:checked)::before {
  background:
    radial-gradient(circle, var(--white) 0 33%, transparent 34%),
    var(--lj-orange);
}

.option:has(input[type="checkbox"]:checked)::before {
  background: var(--lj-orange);
  box-shadow: inset 0 0 0 4px var(--white);
}

.text-input {
  width: 100%;
  margin-top: 14px;
  padding: 17px 18px;
  border-radius: var(--radius-md);
  outline: none;
  color: var(--ink);
}

.text-input:focus {
  border-color: var(--lj-orange);
  box-shadow: 0 0 0 4px rgba(244, 122, 99, 0.12);
}

.textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.55;
}

.conditional-input {
  display: none;
}

.conditional-input.is-visible {
  display: block;
  animation: fadeSlide 220ms ease both;
}

.matrix {
  display: grid;
  gap: 14px;
}

.matrix-item {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.matrix-item h3 {
  margin-bottom: 14px;
  font-size: 1rem;
}

.rating-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(48px, 1fr));
  gap: 10px;
}

.rating {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 56px;
  border-radius: 18px;
  color: var(--lj-orange-dark);
  font-weight: 800;
}

.rating:has(input:checked) {
  border-color: var(--lj-orange);
  background: var(--lj-orange);
  color: var(--white);
  box-shadow: 0 12px 28px rgba(244, 122, 99, 0.2);
}

.form-alert {
  min-height: 24px;
  margin: 20px 0 0;
  color: var(--lj-orange-dark);
  font-size: 0.92rem;
  font-weight: 800;
}

.nav-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: var(--lj-orange);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(244, 122, 99, 0.24);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover,
.copy-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(244, 122, 99, 0.3);
}

.button--ghost {
  background: var(--white);
  color: var(--lj-orange);
  border: 1.5px solid var(--line);
  box-shadow: none;
}

.button[hidden] {
  display: none;
}

.success-page {
  text-align: center;
  animation: fadeSlide 340ms ease both;
}


.success-page h2 span {
  display: block;
}

.success-page p {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(35, 31, 32, 0.72);
  line-height: 1.7;
}

.code-card {
  width: min(460px, 100%);
  margin: 26px auto 18px;
  padding: 22px;
  border-radius: 26px;
  background: var(--soft-orange);
}

.code-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--lj-orange-dark);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.code-card strong {
  display: block;
  margin-bottom: 18px;
  color: var(--lj-orange);
  font-size: clamp(2.2rem, 8vw, 4.4rem);
  line-height: 0.95;
}

.copy-button {
  min-height: 46px;
  padding: 0 20px;
}

.expiry-note {
  margin-bottom: 26px;
  font-size: 0.95rem;
}

.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.shop-button {
  text-decoration: none;
}

@media (max-width: 880px) {
  .survey-shell {
    padding: 24px 0;
  }
}

@media (max-width: 560px) {
  .survey-shell {
    width: min(100% - 20px, 1160px);
  }

  .hero {
    padding: 18px 0 28px;
  }

  .survey-card {
    padding: 22px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(1.22rem, 5.4vw, 1.75rem);
  }

  .logo-card {
    width: min(340px, 100%);
  }

  .rating-row {
    gap: 7px;
  }

  .rating {
    min-height: 50px;
    border-radius: 14px;
  }

  .nav-actions {
    flex-direction: column-reverse;
  }

  .button,
  .shop-button {
    width: 100%;
  }

  .success-actions {
    flex-direction: column;
  }
}
