@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 700 800;
  font-stretch: 100%;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/Manrope-Bold.ttf") format("truetype");
}

:root {
  --yellow: #fde500;
  --yellow-deep: #f5d400;
  --black: #000000;
  --white: #ffffff;
  --cream: #fff8c4;
}

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

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--yellow);
  color: var(--black);
  font-family: Manrope, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

.q-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 24px 48px;
}

.q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 920px;
  width: 100%;
  margin: 0 auto;
  padding: 22px 0 18px;
}

.q-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.q-brand img {
  width: min(280px, 68vw);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.q-back-home {
  font-weight: 700;
  font-size: 14px;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

.q-back-home:hover {
  opacity: 0.7;
}

.q-progress {
  max-width: 920px;
  width: 100%;
  margin: 0 auto 10px;
  height: 6px;
  background: rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.q-progress-bar {
  width: 0%;
  height: 100%;
  background: var(--black);
  border-radius: inherit;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.q-step-label {
  max-width: 920px;
  width: 100%;
  margin: 0 auto 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.q-main {
  flex: 1;
  display: flex;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

#circle-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.q-panel {
  padding: 28px 32px 32px;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 28px;
}

.q-panel.is-active {
  animation: panelIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes panelIn {
  from {
    transform: translateY(12px);
  }
  to {
    transform: none;
  }
}

.q-kicker {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.q-panel h1,
.q-panel h2 {
  margin: 0 0 18px;
  font-family: Archivo, sans-serif;
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.08;
}

.q-panel h1 {
  font-size: clamp(34px, 6vw, 52px);
}

.q-panel h2 {
  font-size: clamp(26px, 4.4vw, 38px);
}

.q-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.q-intro p,
.q-help,
.q-legal {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.q-help {
  margin: -6px 0 22px;
  font-weight: 700;
}

.q-legal {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 62ch;
}

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

.q-choice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid var(--black);
  border-radius: 18px;
  background: var(--yellow);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.q-choice:hover {
  transform: translateY(-2px);
  background: var(--white);
}

.q-choice:has(input:focus-visible) {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

.q-choice input {
  appearance: none;
  margin-top: 2px;
  flex-shrink: 0;
  border: 2px solid var(--black);
  background: var(--white);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.q-choice input[type="radio"] {
  width: 20px;
  height: 20px;
  flex-basis: 20px;
  border-radius: 50%;
}

.q-choice input[type="radio"]:checked {
  background: var(--yellow);
  box-shadow: inset 0 0 0 4px var(--black);
  transform: scale(1.06);
}

.q-choice input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  border-radius: 6px;
  display: grid;
  place-content: center;
  box-shadow: 0 0 0 1px rgba(47, 68, 152, 0.08);
}

.q-choice input[type="checkbox"]::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid var(--black);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0.2);
  opacity: 0;
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.16s ease;
}

.q-choice input[type="checkbox"]:checked {
  background: var(--black);
  border-color: var(--black);
  transform: scale(1.08);
  box-shadow: none;
}

.q-choice input[type="checkbox"]:checked::after {
  border-color: var(--yellow);
  transform: rotate(45deg) scale(1);
  opacity: 1;
}

.q-choice span {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 700;
}

.q-choice-legal {
  align-items: flex-start;
  margin-top: 8px;
}

.q-choice-legal span {
  font-size: 15px;
  font-weight: 600;
}

.q-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.q-fields > label:not(.q-choice) {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
}

.q-fields input,
.q-panel textarea {
  width: 100%;
  padding: 16px 18px;
  border: 2px solid var(--black);
  border-radius: 16px;
  background: #fffdf0;
  font-size: 16px;
  line-height: 1.4;
}

.q-panel textarea {
  min-height: 160px;
  resize: vertical;
}

.q-fields input:focus,
.q-panel textarea:focus {
  outline: none;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
}

.q-error {
  margin: 16px 0 0;
  font-weight: 700;
  color: #7a140c;
}

.q-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
}

.q-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.q-btn:hover {
  transform: translateY(-2px);
}

.q-btn-black {
  background: var(--black);
  color: var(--white);
  margin-left: auto;
}

.q-nav:has(#btn-prev[hidden]) .q-btn-black {
  width: 100%;
  margin-left: 0;
}

.q-btn-black:hover {
  background: var(--white);
  color: var(--black);
}

.q-btn-ghost {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.q-btn-ghost:hover {
  background: var(--black);
  color: var(--white);
}

.q-btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.thanks-home {
  margin-left: 0;
  align-self: flex-start;
}

.thanks-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

.thanks-letter {
  max-width: 720px;
}

.thanks-letter p {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.55;
}

.thanks-letter .thanks-hello {
  margin: 0 0 18px;
  font-family: Manrope, sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.thanks-letter .thanks-hello span {
  padding-left: 0.35em;
}

.thanks-sign {
  margin-top: 8px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .q-page {
    padding: 0 16px 36px;
  }

  .q-panel {
    padding: 22px 18px 24px;
    border-radius: 22px;
  }

  .q-back-home {
    font-size: 12px;
  }

  .q-choice {
    padding: 14px 14px;
  }

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

  .q-btn {
    width: 100%;
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .q-panel,
  .q-progress-bar,
  .q-choice,
  .q-btn,
  .q-choice input,
  .q-choice input[type="checkbox"]::after {
    animation: none;
    transition: none;
    transform: none;
  }

  .q-choice input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}
