.thank-you-wrapper {
  position: relative;
  min-height: calc(100dvh - 70px - 120px); /* minus header */
  background-image: url("../assets/images/thank-you/thank-you-background.webp");
  background-size: 100% 100%;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
}

.thank-you-content {
  margin: 0 auto;
  min-width: 344px;
  max-width: 768px; /* to keep some responsive media query working */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px 24px 24px 24px;
}

.thank-you-title {
  position: relative;
  color: var(--primary-color);
  font-size: 42px;
  font-weight: 800;
  padding: 0 12px;
  text-align: center;
  z-index: 5;
}

.thank-you-message {
  position: relative;
  color: var(--primary-color);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 auto;
  text-align: center;
  z-index: 5;
}

.thank-you-image {
  min-width: 260px;
  max-width: min(380px, 70dvw);
  width: 50dvw;
  display: flex;
  justify-content: center;
  align-items: center;
}

.thank-you-image-image {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.thank-you-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.thank-you-promocode {
  margin: 0 auto;
  text-align: center;
}

.thank-you-promocode-title {
  color: var(--primary-color);
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-align: center;
}

.thank-you-code {
  display: flex;
  min-width: 280px;
  max-width: 450px;
  width: 70dvw;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.thank-you-code-left {
  flex: 1;
  width: 50%;
  background-color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px 0 0 24px;
  border: 2px solid var(--primary-color);
}

.thank-you-code-right {
  flex: 1;
  width: 50%;
  color: white;
  background: linear-gradient(
    to bottom,
    #001688 0%,
    #001688 70%,
    rgba(0, 23, 136, 0.5) 100%
  );
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thank-you-code-image {
  width: 100%;
  height: auto;
}

.app-download-container {
  width: fit-content;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
}

.redeem-cta-container {
  min-width: 280px;
  max-width: 450px;
  width: 70dvw;
  margin-bottom: 8px;
}

.redeem-cta {
  width: 100%;
  border-radius: 24px;
  display: block;
  text-decoration: none;
  /* background-color: var(--primary-color); */
  background-color: #ffea05;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  padding: 12px 24px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 576px) {
  .thank-you-wrapper {
    min-height: calc(100dvh - 70px - 90px); /* minus header */
  }

  .thank-you-content {
    padding-right: clamp(12px, 2.8vw, 16px);
    padding-left: clamp(12px, 2.8vw, 16px);
  }

  .thank-you-title {
    font-size: clamp(24px, 9.07px + 3.98vw, 32px);
  }

  .thank-you-message {
    font-size: clamp(21px, 7.94px + 3.48vw, 28px);
  }

  .thank-you-footer {
    gap: 16px;
  }

  .thank-you-promocode-title {
    font-size: clamp(18px, 6.81px + 2.99vw, 24px);
  }

  .thank-you-code {
    border-radius: clamp(20px, 4.4vw, 24px);
    font-size: clamp(16px, 8.54px + 1.99vw, 20px);
  }

  .thank-you-code-left {
    border-radius: clamp(20px, 4.4vw, 24px) 0 0 clamp(20px, 4.4vw, 24px);
  }

  .thank-you-code-right {
    border-radius: 0 clamp(20px, 4.4vw, 24px) clamp(20px, 4.4vw, 24px) 0;
  }

  .redeem-cta {
    border-radius: clamp(20px, 4.4vw, 24px);
    font-size: clamp(16px, 8.54px + 1.99vw, 20px);
  }
}
