:root {
  --ep-orange: #f99d33;
  --ep-orange-deep: #e67e00;
  --ep-orange-hero: #f7b24a;
  --ep-blue: #007885;
  --ep-cream: #fff6eb;
  --ep-cream-soft: #fbf6ef;
  --ep-border: #ece7de;
  --ep-ink: #101010;
  --ep-muted: #6b6b6b;
  --ep-white: #ffffff;
  --ep-shadow: 0 14px 32px rgba(16, 16, 16, 0.06);
}

@font-face {
  font-family: "source-sans-pro";
  src:
    url("https://www.hellofresh.com/assets/fonts/source-sans-pro-v11/latin-regular.woff2")
      format("woff2");
  font-style: normal;
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "source-sans-pro";
  src:
    url("https://www.hellofresh.com/assets/fonts/source-sans-pro-v11/latin-600.woff2")
      format("woff2");
  font-style: normal;
  font-display: swap;
  font-weight: 600;
}

@font-face {
  font-family: "source-sans-pro";
  src:
    url("https://www.hellofresh.com/assets/fonts/source-sans-pro-v11/latin-700.woff2")
      format("woff2");
  font-style: normal;
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "sonny-cond";
  src:
    url("https://www.hellofresh.com/assets/fonts/everyplate/wfoundry_sonny/SonnyCond-Bold.woff2")
      format("woff2");
  font-style: normal;
  font-display: swap;
  font-weight: 600;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "source-sans-pro", "Helvetica", "Arial", sans-serif;
  color: var(--ep-ink);
  background: var(--ep-white);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 64px;
}

.legal-footer {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 28px max(calc((100vw - 1180px) / 2), 20px) 36px;
  background: var(--ep-orange-hero);
}

.legal-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.legal-footer__title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ep-ink);
}

.legal-footer__copy {
  max-width: 1180px;
  margin: 0;
  color: var(--ep-ink);
  font-size: 0.78rem;
  line-height: 1.55;
}

.legal-footer__copy + .legal-footer__copy {
  margin-top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--ep-border);
}

.site-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
}

.site-header__brand img {
  width: 132px;
  height: auto;
}

.site-header__login {
  margin-left: auto;
  color: var(--ep-ink);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 10px 16px;
  border: 1px solid var(--ep-ink);
  border-radius: 999px;
  background: var(--ep-white);
}

.site-header__login:hover,
.site-header__login:focus-visible {
  color: var(--ep-orange-deep);
  border-color: var(--ep-orange-deep);
}

.order-status,
.hero,
.credit-banner,
.survey {
  position: relative;
  padding: 36px 0;
  background: var(--ep-white);
  border-radius: 0;
  box-shadow: none;
}

.credit-banner,
.survey {
  border-top: 1px solid var(--ep-border);
}

.order-status {
  display: block;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 520px;
  padding-top: 88px;
  padding-bottom: 96px;
  background-color: var(--ep-orange-hero);
  background-image: url("./Desktop.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: 132% auto;
  padding-left: max(calc((100vw - 1180px) / 2), 20px);
  padding-right: max(calc((100vw - 1180px) / 2), 20px);
}

.order-status__copy h1 {
  max-width: none;
  margin: 0 auto;
  font-size: clamp(2.2rem, 3.2vw, 3.2rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-family: "sonny-cond", "Arial Black", sans-serif;
  font-weight: 600;
  color: var(--ep-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.order-status__spacer {
  height: 42px;
}

.order-status__copy p,
.order-status__panel-card p {
  color: var(--ep-white);
  font-size: 1.05rem;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
}

.order-status__copy {
  max-width: 860px;
  margin: 0 auto;
  padding: 10px 0;
  text-align: center;
}

.order-status__copy p {
  max-width: 48ch;
  margin: 22px 0 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  font-size: 1.22rem;
  line-height: 1.5;
}

.order-status__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
  max-width: 760px;
}

.decision-panel {
  margin-top: 48px;
  padding: 0 28px;
}

.page-greeting {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--ep-ink);
  font-size: 1.05rem;
}

.decision-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
  align-items: stretch;
}

.decision-panel__context {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 0;
  background: transparent;
  min-height: 100%;
}

.decision-panel__context p {
  margin: 18px 0 0;
  color: var(--ep-ink);
  font-size: 1.08rem;
  line-height: 1.6;
}

.decision-panel__context a {
  color: var(--ep-orange-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.decision-panel__visual {
  width: 100%;
  margin-top: 28px;
}

.decision-panel__tracker-image {
  width: 100%;
  height: auto;
  border: 0;
  background: transparent;
}

.credit-banner {
  margin-top: 0;
  padding: 24px 24px 22px;
  border: 0;
  border-top: 0;
  background: #fff7ee;
  background-image: none;
  box-shadow: none;
  height: 100%;
}

.credit-banner__content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.credit-banner--90 {
  box-shadow: none;
}

.credit-banner--60 {
  box-shadow: none;
}

.credit-banner--0 {
  box-shadow: none;
}

.credit-banner--expired,
.credit-banner--pending,
.credit-banner--invalid {
  box-shadow: none;
}

.credit-banner__content h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-family: "sonny-cond", "Arial Black", sans-serif;
  font-weight: 600;
  max-width: none;
}

.credit-banner__content > p {
  max-width: 60ch;
  margin: 14px 0 0;
  color: var(--ep-ink);
  font-size: 1.05rem;
  line-height: 1.6;
}

.credit-progress {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 20px;
  margin-bottom: 4px;
}

.credit-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.credit-progress__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(0, 120, 133, 0.35);
  background: var(--ep-white);
  transition: background 240ms ease, border-color 240ms ease;
  flex-shrink: 0;
}

.credit-progress__line {
  flex: 1;
  height: 2.5px;
  background: rgba(0, 120, 133, 0.2);
  margin-top: 7.5px;
  transition: background 240ms ease;
}

.credit-progress__labels {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.credit-progress__stage {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ep-muted);
  line-height: 1.2;
  white-space: nowrap;
}

.credit-progress__pct {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ep-muted);
  line-height: 1.2;
}

.credit-progress__step--active .credit-progress__dot {
  background: var(--ep-blue);
  border-color: var(--ep-blue);
}

.credit-progress__step--active .credit-progress__stage,
.credit-progress__step--active .credit-progress__pct {
  color: var(--ep-blue);
}

.credit-progress__step--past .credit-progress__dot {
  background: rgba(0, 120, 133, 0.35);
  border-color: rgba(0, 120, 133, 0.35);
}

.credit-progress__line--past {
  background: rgba(0, 120, 133, 0.5);
}

.credit-outcome {
  max-width: none;
  margin-top: 20px;
  padding: 24px 24px 22px;
  border: 0;
  background: rgba(0, 120, 133, 0.88);
}

.credit-outcome__eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.credit-outcome__value {
  display: block;
  margin-top: 6px;
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-family: "sonny-cond", "Arial Black", sans-serif;
  font-weight: 600;
  color: var(--ep-white);
}

.credit-outcome .credit-outcome__detail {
  margin: 10px 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.94);
}

.credit-outcome,
.credit-outcome p,
.credit-outcome span,
.credit-outcome strong {
  color: var(--ep-white);
}

.credit-outcome .credit-outcome__eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.credit-outcome p.credit-outcome__detail {
  color: rgba(255, 255, 255, 0.94);
}

.credit-banner__note {
  margin: auto 0 0;
  color: #4f4a43;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 60ch;
}

.decision-panel__details {
  margin-top: 28px;
  padding: 22px 24px;
  background: #fff7ee;
}

.decision-panel__details h3 {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-family: "sonny-cond", "Arial Black", sans-serif;
  font-weight: 600;
}

.decision-panel__detail-line {
  margin: 0;
  color: var(--ep-ink);
  font-size: 1rem;
  line-height: 1.6;
}

.decision-panel__detail-line + .decision-panel__detail-line {
  margin-top: 12px;
}

.credit-banner--90 .credit-outcome,
.credit-banner--60 .credit-outcome,
.credit-banner--0 .credit-outcome,
.credit-banner--expired .credit-outcome,
.credit-banner--pending .credit-outcome,
.credit-banner--invalid .credit-outcome {
  background: rgba(0, 120, 133, 0.88);
}

.survey h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-family: "sonny-cond", "Arial Black", sans-serif;
  font-weight: 600;
}

.survey p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ep-ink);
}

.hero__actions {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 6px;
  appearance: none;
  font-family: "source-sans-pro", "Helvetica", "Arial", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.button--primary {
  background: var(--ep-orange);
  color: var(--ep-white);
  box-shadow: none;
}

.button--cool {
  background: var(--ep-blue);
  color: var(--ep-white);
  box-shadow: none;
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-1px);
  background: #f58c10;
  box-shadow: none;
}

.button--cool:hover,
.button--cool:focus-visible {
  transform: translateY(-1px);
  background: #05616b;
  box-shadow: none;
}

.button[disabled] {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.survey {
  margin-top: 48px;
  padding: 40px 28px;
  background: var(--ep-blue);
}

.survey__header {
  max-width: 76ch;
  margin-bottom: 26px;
}

.survey h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ep-white);
}

.survey__header p {
  margin: 14px 0 0;
  max-width: 68ch;
}

.survey-form {
  display: grid;
  gap: 24px;
}

.survey p {
  color: var(--ep-white);
}

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

.form-field {
  display: grid;
  gap: 10px;
}

.form-field span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ep-white);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--ep-border);
  border-radius: 0;
  background: var(--ep-white);
  color: var(--ep-ink);
  font: inherit;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.form-field input[readonly] {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  cursor: not-allowed;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(216, 107, 0, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 143, 28, 0.12);
  background: var(--ep-white);
}

.form-field textarea {
  min-height: 170px;
  resize: vertical;
}

.form-field--full {
  grid-column: 1 / -1;
}

.survey-form__footer {
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.survey-form__summary {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ep-white);
  flex: 1;
  order: 2;
}

.survey-form__footer .button {
  order: 1;
}

.form-feedback {
  padding: 16px 18px;
  border: 1px solid rgba(216, 107, 0, 0.14);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ep-ink);
  border-radius: 0;
}

.form-feedback[data-state="success"] {
  border-color: rgba(31, 128, 76, 0.18);
  background: rgba(234, 248, 239, 0.92);
}

.form-feedback[data-state="duplicate"] {
  border-color: rgba(216, 107, 0, 0.18);
  background: rgba(255, 246, 230, 0.94);
}

.form-feedback[data-state="error"] {
  border-color: rgba(176, 42, 42, 0.18);
  background: rgba(255, 239, 239, 0.94);
}


@media (max-width: 900px) {
  .credit-banner {
    padding: 24px;
  }

  .decision-panel {
    padding: 0 20px;
  }

  .decision-panel__grid {
    grid-template-columns: 1fr;
  }

  .order-status {
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    background-size: cover;
    background-position: center center;
  }

  .survey {
    padding: 32px 20px 24px;
  }

  .legal-footer {
    padding: 24px 20px 30px;
  }

  .survey-form__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header__inner {
    width: min(100% - 20px, 1180px);
    min-height: 64px;
  }

  .order-status {
    gap: 18px;
    padding-top: 28px;
    padding-bottom: 32px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .credit-banner {
    padding: 22px 20px;
  }

  .survey-form__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .button {
    width: 100%;
  }

  .hero__actions {
    flex-direction: column;
  }

  .credit-banner__content p,
  .survey p {
    font-size: 0.98rem;
  }

  .decision-panel {
    padding: 0;
  }

  .decision-panel__grid {
    gap: 18px;
  }

  .decision-panel__tracker-image {
    border-width: 0;
  }

  .legal-footer__copy {
    font-size: 0.74rem;
  }
}
