.wrq-app,
.wrq-app * {
  box-sizing: border-box;
}

.wrq-app {
  --wrq-green: #183b24;
  --wrq-orange: #ef5d32;
  --wrq-lime: #c8d79a;
  --wrq-cream: #fbf8f2;
  --wrq-muted: #92958a;
  --wrq-border: #e2e3c5;
  width: 100%;
  color: var(--wrq-green);
  font-family: "Zalando Sans", Arial, sans-serif;
}

.wrq-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 40px);
}

.wrq-progress__segment {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--wrq-lime);
  transition: background-color 180ms ease;
}

.wrq-progress__segment.is-active,
.wrq-progress__segment.is-complete {
  background: var(--wrq-orange);
}

.wrq-question {
  margin: 0 0 clamp(24px, 4vw, 30px);
  color: var(--wrq-green);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.wrq-question--compact {
  margin-bottom: 10px;
}

.wrq-lead {
  margin: 0 0 26px;
  color: var(--wrq-green);
  font-family: "Zalando Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.wrq-lead span {
  color: var(--wrq-muted);
}

.wrq-step[hidden],
.wrq-calendar[hidden],
.wrq-form[hidden] {
  display: none !important;
}

.wrq-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

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

.wrq-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.wrq-option input,
.wrq-motivation__option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wrq-option__content {
  display: flex;
  min-height: 78px;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 16px 18px;
  border: 1.5px solid var(--wrq-border);
  border-radius: 15px;
  background: transparent;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.wrq-options--audience .wrq-option__content {
  min-height: 92px;
}

.wrq-options--goals .wrq-option__content {
  min-height: 84px;
}

.wrq-option:hover .wrq-option__content {
  transform: translateY(-1px);
  border-color: #c9cd9e;
}

.wrq-option input:focus-visible + .wrq-option__content,
.wrq-motivation__option input:focus-visible + span {
  outline: 3px solid rgba(239, 93, 50, 0.24);
  outline-offset: 2px;
}

.wrq-option input:checked + .wrq-option__content {
  border-color: var(--wrq-orange);
  background: rgba(239, 93, 50, 0.035);
  box-shadow: 0 8px 24px rgba(24, 59, 36, 0.06);
}

.wrq-option__heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wrq-option__icon {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

.wrq-option__title {
  color: var(--wrq-green);
  font-family: "Zalando Sans", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.wrq-option__description {
  display: block;
  padding-left: 23px;
  color: var(--wrq-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
}

.wrq-motivation {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
}

.wrq-motivation__option {
  position: relative;
  cursor: pointer;
}

.wrq-motivation__option span {
  display: flex;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--wrq-border);
  border-radius: 12px;
  color: var(--wrq-green);
  background: transparent;
  font-family: "Zalando Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.wrq-motivation__option:hover span {
  transform: translateY(-1px);
  border-color: #c9cd9e;
}

.wrq-motivation__option input:checked + span {
  border-color: var(--wrq-orange);
  background: var(--wrq-orange);
  color: #fff;
}

.wrq-motivation__labels {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
  color: var(--wrq-muted);
  font-size: 12px;
  line-height: 1.3;
}

.wrq-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wrq-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--wrq-green);
  font-family: "Zalando Sans", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
}

.wrq-field--wide {
  grid-column: 1 / -1;
}

.wrq-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--wrq-border);
  border-radius: 13px;
  background: transparent;
  color: var(--wrq-green);
  font: inherit;
  font-weight: 400;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.wrq-field input::placeholder {
  color: #aaaca0;
}

.wrq-field input:focus {
  border-color: var(--wrq-orange);
  box-shadow: 0 0 0 3px rgba(239, 93, 50, 0.12);
}

.wrq-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: var(--wrq-muted);
  font-family: "Zalando Sans", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.wrq-privacy input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--wrq-orange);
}

.wrq-privacy a {
  color: var(--wrq-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wrq-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.wrq-actions--end {
  justify-content: flex-end;
}

.wrq-button {
  appearance: none;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid var(--wrq-orange);
  border-radius: 999px;
  background: var(--wrq-orange);
  color: #fff;
  font-family: "Zalando Sans", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.wrq-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(239, 93, 50, 0.18);
}

.wrq-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

.wrq-button--secondary {
  background: transparent;
  color: var(--wrq-green);
  border-color: var(--wrq-border);
}

.wrq-button--secondary:hover {
  box-shadow: none;
  border-color: var(--wrq-green);
}

.wrq-feedback {
  min-height: 22px;
  margin: 14px 0 0;
  color: #b42318;
  font-family: "Zalando Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.wrq-feedback.is-success {
  color: var(--wrq-green);
}

.wrq-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

.wrq-calendar__intro {
  margin-bottom: 22px;
}

.wrq-eyebrow {
  margin: 0 0 8px;
  color: var(--wrq-orange);
  font-family: "Zalando Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wrq-calendar__text {
  margin: -14px 0 0;
  color: var(--wrq-muted);
  font-family: "Zalando Sans", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

.wrq-calendar__embed iframe {
  display: block;
  width: 100%;
  min-height: 540px;
  border: 0;
  border-radius: 14px;
  background: #fff;
}

.wrq-calendar__fallback {
  padding: 20px;
  border: 1.5px solid var(--wrq-border);
  border-radius: 14px;
  background: rgba(200, 215, 154, 0.10);
  color: var(--wrq-green);
  font-size: 14px;
  line-height: 1.5;
}

.wrq-calendar__fallback p {
  margin: 0;
}

/* Responsive: tablet e smartphone */
@media (max-width: 760px) {
  .wrq-app {
    overflow: hidden;
  }

  .wrq-progress {
    gap: 6px;
    margin-bottom: 24px;
  }

  .wrq-question {
    margin-bottom: 20px;
    font-size: clamp(24px, 7vw, 29px);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .wrq-question--compact {
    margin-bottom: 10px;
  }

  .wrq-lead {
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.5;
  }

  .wrq-options--two-columns,
  .wrq-fields {
    grid-template-columns: 1fr;
  }

  .wrq-options {
    gap: 10px;
  }

  .wrq-field--wide {
    grid-column: auto;
  }

  .wrq-option__content,
  .wrq-options--audience .wrq-option__content,
  .wrq-options--goals .wrq-option__content {
    min-height: 68px;
    padding: 14px 15px;
    border-radius: 13px;
  }

  .wrq-option__heading {
    gap: 7px;
  }

  .wrq-option__title {
    font-size: 15px;
    line-height: 1.28;
    overflow-wrap: anywhere;
  }

  .wrq-option__icon {
    font-size: 14px;
  }

  .wrq-motivation {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .wrq-motivation__option span {
    min-height: 46px;
    aspect-ratio: auto;
  }

  .wrq-actions {
    align-items: stretch;
    gap: 10px;
    margin-top: 24px;
  }

  .wrq-button {
    min-height: 50px;
    padding-inline: 18px;
    font-size: 15px;
  }

  .wrq-calendar__intro {
    margin-bottom: 16px;
  }

  .wrq-calendar__text {
    margin-top: -8px;
    font-size: 14px;
  }

  .wrq-calendar__embed {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
  }

  .wrq-calendar__embed iframe {
    width: 100%;
    max-width: 100%;
    min-height: 820px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .wrq-progress {
    gap: 5px;
    margin-bottom: 20px;
  }

  .wrq-progress__segment {
    height: 3px;
  }

  .wrq-question {
    font-size: 24px;
  }

  .wrq-options {
    gap: 9px;
  }

  .wrq-option__content,
  .wrq-options--audience .wrq-option__content,
  .wrq-options--goals .wrq-option__content {
    min-height: 64px;
    padding: 13px 14px;
  }

  .wrq-motivation {
    gap: 6px;
  }

  .wrq-motivation__option span {
    min-height: 44px;
    border-radius: 10px;
    font-size: 14px;
  }

  .wrq-motivation__labels {
    margin-top: 7px;
    font-size: 11px;
  }

  .wrq-actions {
    flex-wrap: wrap;
  }

  .wrq-actions .wrq-button {
    flex: 1 1 100%;
    width: 100%;
  }

  .wrq-actions .wrq-button--secondary {
    order: 2;
  }

  .wrq-feedback {
    margin-top: 10px;
    font-size: 13px;
  }

  .wrq-calendar__embed {
    margin-inline: -2px;
    width: calc(100% + 4px);
  }

  .wrq-calendar__embed iframe {
    min-height: 900px;
  }
}

@media (max-width: 360px) {
  .wrq-question {
    font-size: 22px;
  }

  .wrq-option__title {
    font-size: 14px;
  }

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

  .wrq-motivation__option span {
    min-height: 42px;
  }
}
