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

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

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

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

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

:root {
  font-family: "Quicksand", sans-serif;
  color: #212121;
  background: #fff7ee;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body,
button,
input,
textarea {
  font-family: "Quicksand", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.page-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-content {
  position: relative;
  z-index: 1;
}

.content-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 40px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand-logo {
  display: block;
  width: 160px;
  height: 48px;
}

.site-link {
  padding: 8px 16px;
  color: #ff8300;
  background: #f7e0bf;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.site-link:hover {
  background: #f4d7ad;
}

.site-link:active {
  transform: translateY(1px);
}

.hero {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  padding-bottom: 80px;
}

.hero-label {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-label strong {
  color: #ff8300;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.5;
  max-width: 280px;
}

.survey-column {
  display: flex;
  flex: 1;
  justify-content: flex-end;
}

.survey-card {
  display: flex;
  width: 100%;
  max-width: 691px;
  min-height: 0;
  padding: 40px;
  flex-direction: column;
  gap: 40px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);
}

.survey-card.intro-card {
  min-height: 348px;
}

.selection-card {
  gap: 28px;
}

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

.selection-heading p {
  margin: 0;
  color: #676767;
  font-size: 15px;
  line-height: 1.5;
}

.form-selection {
  display: grid;
  gap: 12px;
}

.form-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid #f7d5ad;
  border-radius: 12px;
  color: #212121;
  background: #fffaf4;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.form-choice:hover {
  border-color: #ff8300;
  background: #fff4e6;
  transform: translateY(-1px);
}

.form-choice span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.form-choice strong {
  color: #ff8300;
  font-size: 15px;
}

.form-choice small {
  color: #676767;
  font-size: 12px;
  line-height: 1.45;
}

.form-choice svg {
  flex: 0 0 auto;
  color: #ff8300;
}

.script-title {
  margin: 0;
  color: #212121;
  font-family: "BeccaPerry", sans-serif;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.5;
}

.intro-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: #676767;
}

.intro-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}

.intro-copy p:last-child {
  text-align: justify;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 325px);
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid #ff8300;
  border-radius: 8px;
  color: #fff;
  background: #ff8300;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  background: #e67300;
  border-color: #e67300;
}

.primary-button:active,
.round-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.identification-card {
  gap: 24px;
}

.identification-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.identification-heading p {
  margin: 0;
  color: #676767;
  font-size: 13px;
  line-height: 1.5;
}

.identification-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.identification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

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

.identification-submit {
  width: min(100%, 220px);
}

.field-stack,
.form-fields,
.options,
.question-form,
.success-copy {
  display: flex;
  flex-direction: column;
}

.form-fields {
  gap: 20px;
}

.field-stack {
  gap: 10px;
}

.field-stack label,
.question-title {
  color: #212121;
  font-size: 13px;
  font-weight: 700;
}

.text-input,
.comment-input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ff8300;
  border-radius: 8px;
  outline: none;
  color: #212121;
  background: #fff;
}

.text-input:focus,
.comment-input:focus {
  box-shadow: 0 0 0 2px rgb(255 131 0 / 15%);
}

.text-input::placeholder,
.comment-input::placeholder {
  color: #676767;
}

.comment-input {
  min-height: 100px;
  resize: none;
  border-width: 2px;
}

.actions,
.question-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.round-button {
  display: inline-flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid #f7e0bf;
  border-radius: 999px;
  color: #ff8300;
  background: #fff;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.round-button:hover {
  color: #e67300;
  background: #fffaf3;
}

.error-message {
  margin: 0;
  color: #dc2626;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.progress {
  display: grid;
  grid-template-columns: repeat(var(--steps, 4), 1fr);
  gap: 10px;
}

.progress span {
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
}

.progress span.active {
  background: #ff859a;
}

.question-form {
  justify-content: space-between;
  gap: 40px;
}

.question-heading h3,
.question-heading p {
  margin: 0;
}

.question-heading h3 {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.question-heading p {
  color: #676767;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.options {
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
}

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

.checkmark {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  border: 1px solid #ff8300;
  border-radius: 3px;
  background: #fff;
  color: #ff8300;
  transition: background-color 120ms ease;
}

.checkmark svg {
  display: none;
}

.option input:checked + .checkmark {
  background: #d6de23;
}

.option input:checked + .checkmark svg {
  display: block;
}

.option-label {
  flex: 1;
  color: #212121;
  font-size: 12px;
  font-weight: 500;
}

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

.nps-options .option-label {
  font-size: 16px;
  font-weight: 400;
}

.submit-button {
  width: 100%;
  max-width: none;
}

.final-submit {
  width: min(100%, 240px);
  margin-left: auto;
}

.success-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.success-icon {
  color: #ff859a;
}

.success-copy {
  gap: 10px;
}

.success-copy h2,
.success-copy p {
  margin: 0;
}

.success-copy h2 {
  font-size: 18px;
}

.success-copy p {
  color: #7e7f88;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.success-copy .fine-print {
  font-size: 12px;
}

.coupon-button {
  display: inline-block;
  margin-inline: 4px;
  padding: 4px 12px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #ff8300;
  font-weight: 700;
  cursor: pointer;
}

.coupon-button.copied {
  background: #22c55e;
}

.site-cta {
  display: inline-flex;
  padding: 12px 32px;
  border-radius: 8px;
  color: #fff;
  background: #ff8300;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 767px) {
  .page-shell {
    min-height: 100svh;
    overflow: visible;
  }

  .content-container {
    padding-inline: 20px;
  }

  .site-header {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .brand-logo {
    width: auto;
    height: 36px;
  }

  .site-link {
    padding: 7px 12px;
    font-size: 11px;
  }

  .hero {
    margin-top: 40px;
    padding-bottom: 40px;
    flex-direction: column;
    gap: 40px;
  }

  .hero-label {
    align-items: center;
  }

  .hero-label strong {
    font-size: 24px;
    max-width: none;
    text-align: center;
  }

  .survey-column {
    width: 100%;
    justify-content: center;
  }

  .survey-card {
    padding: 40px 16px;
  }

  .survey-card.intro-card {
    min-height: 0;
  }

  .selection-card {
    gap: 24px;
  }

  .form-choice {
    min-height: 0;
    padding: 16px;
  }

  .script-title {
    font-size: 28px;
  }

  .primary-button {
    max-width: none;
  }

  .form-title {
    font-size: 16px;
  }

  .text-input {
    padding: 10px;
    font-size: 12px;
  }

  .identification-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .error-message {
    font-size: 10px;
  }

  .progress {
    gap: 5px;
  }

  .final-submit {
    width: min(100%, 220px);
  }
}

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