.tailored-help {
  position: relative;
  display: grid;
  min-height: 100vh;
  box-sizing: border-box;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  padding: clamp(1rem, 3.75vw, 3.75rem) clamp(1rem, 4vw, 4rem);
  isolation: isolate;
}

.tailored-help__sky {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tailored-help__panel {
  width: min(100%, 1350px);
  box-sizing: border-box;
  border-radius: 24px;
  background: #ffe779;
  padding: 30px 45px;
}

.tailored-help__start,
.tailored-help__result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: stretch;
  gap: clamp(2rem, 3vw, 3rem);
}

.tailored-help__start-copy,
.tailored-help__result-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.tailored-help__start-copy {
  align-self: center;
}

.tailored-help__heading,
.tailored-help__result-title {
  margin: 0;
}

.tailored-help__goals {
  display: grid;
  gap: 8px;
}

.tailored-help__goal {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  background: #faf9f6;
  color: #111;
  cursor: pointer;
  padding: 6px 10px 6px 16px;
  text-align: left;
  transition: background-color 160ms ease, transform 160ms ease;
}

.tailored-help__goal:hover {
  background: #fff;
  transform: translateX(2px);
}

.tailored-help__goal:focus-visible,
.tailored-help__back:focus-visible,
.tailored-help__email-submit:focus-visible,
.tailored-help__cta:focus-visible {
  outline: 3px solid #000;
  outline-offset: 3px;
}

.tailored-help__round-arrow,
.tailored-help__back-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.tailored-help__start-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  max-height: 490px;
  border-radius: 14px;
  object-fit: cover;
}

.tailored-help__result-copy {
  justify-content: space-between;
}

.tailored-help__back {
  display: flex;
  min-height: 44px;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #111;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.tailored-help__back-icon {
  border-radius: 50%;
}

.tailored-help__recommendation {
  margin-block: auto;
  padding-block: 24px;
}

.tailored-help__description {
  max-width: 540px;
}

.tailored-help__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tailored-help__cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 18px;
  border-radius: 999px;
  background: #1b1c20;
  color: #fff;
  padding: 0 22px;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.tailored-help__cta:hover {
  background: #33353c;
}

.tailored-help__cta-arrow {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
  /* filter: brightness(0) invert(1); */
}

.tailored-help__more {
  margin: 0;
}

.tailored-help__more a {
  color: #2E6D62;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tailored-help__result-media {
  position: relative;
  min-width: 0;
  min-height: 350px;
  overflow: hidden;
  border-radius: 14px;
}

.tailored-help__result-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  max-height: 490px;
  object-fit: cover;
}

.tailored-help__email-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  box-sizing: border-box;
  border-radius: 8px;
  background: #faf9f6;
  padding: 20px 16px 16px;
}

.tailored-help__email-label {
  display: block;
}

.tailored-help__email-field {
  display: flex;
  min-height: 48px;
  align-items: center;
  border: 1px solid #a9b2c3;
  border-radius: 999px;
  padding: 4px;
}

.tailored-help__email-field input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111;
  padding: 0 12px;
}

.tailored-help__email-field:focus-within {
  outline: 3px solid #000;
  outline-offset: 3px;
}

.tailored-help__email-field input:disabled {
  cursor: not-allowed;
}

.tailored-help__email-submit:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.tailored-help__email-submit {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111;
  position: relative;
  right: 7px;
  cursor: pointer;
}

.tailored-help__email-icon {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.tailored-help [hidden] {
  display: none !important;
}

@media (max-width: 1199px) {
  .tailored-help {
    padding: 28px 24px;
  }

  .tailored-help__panel {
    width: min(100%, 720px);
    padding: 32px;
  }

  .tailored-help__start,
  .tailored-help__result {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .tailored-help__start-copy {
    width: min(100%, 622px);
    justify-self: center;
  }

  .tailored-help__start-image {
    width: min(100%, 622px);
    height: auto;
    min-height: 0;
    aspect-ratio: 622 / 350;
    justify-self: center;
  }

  .tailored-help__result-copy {
    gap: 24px;
  }

  .tailored-help__recommendation {
    margin-block: 0;
    padding-block: 0;
  }

  .tailored-help__result-media {
    min-height: 350px;
  }

  .tailored-help__result-image {
    height: 350px;
    min-height: 0;
  }
}

@media (max-width: 767px) {
  .tailored-help {
    min-height: 100svh;
    padding: 24px 16px;
  }

  .tailored-help__panel {
    width: min(100%, 360px);
    border-radius: 22px;
    padding: 24px;
  }

  .tailored-help__start,
  .tailored-help__result {
    gap: 24px;
  }

  .tailored-help__start-copy,
  .tailored-help__result-copy {
    width: 100%;
  }

  .tailored-help__goals {
    gap: 8px;
  }

  .tailored-help__goal {
    padding-left: 12px;
  }

  .tailored-help__start-image {
    width: min(100%, 280px);
    height: 300px;
    min-height: 0;
    aspect-ratio: 280 / 300;
    justify-self: center;
  }

  .tailored-help__back {
    gap: 6px;
  }

  .tailored-help__result-copy {
    gap: 22px;
  }

  .tailored-help__recommendation {
    padding: 0;
  }

  .tailored-help__result-media {
    min-height: 300px;
    border-radius: 14px;
  }

  .tailored-help__result-image {
    height: 300px;
    min-height: 0;
  }

  .tailored-help__email-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 280px;
    padding: 16px 12px;
  }
}

@media (max-width: 389px) {
  .tailored-help {
    padding-right: 12px;
    padding-left: 12px;
  }

  .tailored-help__panel {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .tailored-help__goal,
  .tailored-help__cta {
    transition: none;
  }
}