/* Quest public site – custom overrides for Tailwind */

summary::-webkit-details-marker {
  display: none;
}

summary {
  list-style: none;
}

.quest-price-strike {
  position: relative;
  display: inline-block;
}

.quest-price-strike::after {
  content: "";
  position: absolute;
  left: -0.04em;
  right: -0.04em;
  top: 54%;
  height: 2px;
  background: currentColor;
}

.quest-intro-video {
  position: relative;
}

.quest-intro-video__preview,
.quest-intro-video__full {
  aspect-ratio: 1066 / 720;
  display: block;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}

.quest-intro-video__preview {
  transition: opacity 180ms ease, transform 180ms ease;
}

.quest-intro-video__full {
  display: none;
}

.quest-intro-video__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  border-radius: 1rem;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 180ms ease;
}

.quest-intro-video__play::before {
  content: "";
  position: absolute;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, background 180ms ease;
}

.quest-intro-video__play svg {
  position: relative;
  z-index: 1;
}

.quest-intro-video__play:hover,
.quest-intro-video__play:focus-visible {
  background: rgba(0, 0, 0, 0.14);
}

.quest-intro-video__play:hover::before,
.quest-intro-video__play:focus-visible::before {
  background: rgba(0, 0, 0, 0.82);
  transform: scale(1.06);
}

.quest-intro-video.is-playing .quest-intro-video__preview,
.quest-intro-video.is-playing .quest-intro-video__play {
  display: none;
}

.quest-intro-video.is-playing .quest-intro-video__full {
  display: block;
}

.quest-project-video {
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
}

.quest-apply-section {
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f7f5 100%);
}

.quest-apply-shell {
  display: grid;
  width: 100%;
  max-width: 68rem;
  gap: 2rem;
}

.quest-apply-intro {
  max-width: 36rem;
}

.quest-apply-page.is-post-questions .quest-apply-intro {
  display: none;
}

.quest-apply-page {
  min-height: calc(100svh - 3.5rem);
}

.quest-apply-panel {
  overflow: hidden;
  border: 1px solid #e7e5df;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 80px rgba(18, 18, 18, 0.08);
}

.quest-apply-progress {
  height: 0.25rem;
  background: #eceae4;
}

.quest-apply-progress span {
  display: block;
  width: 8%;
  height: 100%;
  background: #111111;
  transition: width 260ms ease;
}

.quest-apply-topline {
  display: flex;
  min-height: 3.75rem;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1rem 1rem 0;
}

.quest-apply-back {
  min-height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: #f1f0eb;
  color: #111111;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 650;
  padding: 0 1rem;
  transition: background 160ms ease, transform 160ms ease;
}

.quest-apply-back:hover,
.quest-apply-back:focus-visible {
  background: #e6e4dc;
}

.quest-apply-back:active {
  transform: translateY(1px);
}

.quest-apply-stage {
  min-height: 29rem;
  opacity: 0;
  padding: 1.25rem 1rem 1rem;
  transform: translateY(0.75rem);
  transition: opacity 220ms ease, transform 220ms ease;
}

.quest-apply-stage.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.quest-apply-question {
  display: flex;
  min-height: 26rem;
  flex-direction: column;
}

.quest-apply-question h2 {
  max-width: 42rem;
  color: #111111;
  font-size: clamp(1.75rem, 6vw, 3rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.06;
}

.quest-apply-options {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.quest-apply-option {
  display: flex;
  width: 100%;
  min-height: 4rem;
  align-items: center;
  border: 1px solid #dedbd2;
  border-radius: 1rem;
  background: #ffffff;
  color: #161616;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.28;
  padding: 1rem;
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.quest-apply-option:hover,
.quest-apply-option:focus-visible,
.quest-apply-option.is-selected {
  border-color: #111111;
  background: #fbfaf6;
  box-shadow: 0 12px 28px rgba(18, 18, 18, 0.08);
  transform: translateY(-1px);
}

.quest-apply-message {
  display: grid;
  min-height: 26rem;
  align-content: center;
  justify-items: start;
  gap: 1.25rem;
}

.quest-apply-message p {
  max-width: 42rem;
  color: #111111;
  font-size: clamp(1.7rem, 7vw, 3.4rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.04;
}

.quest-apply-message span {
  max-width: 32rem;
  color: #66635d;
  font-size: 1rem;
  line-height: 1.6;
}

.quest-apply-message--transition {
  justify-items: center;
  text-align: center;
}

.quest-apply-message--transition p {
  animation: quest-apply-pop 520ms ease both;
}

.quest-apply-post {
  display: grid;
  min-height: 26rem;
  align-content: center;
  justify-items: start;
  gap: 1rem;
}

.quest-apply-post--center {
  justify-items: center;
  text-align: center;
}

.quest-apply-post--center p {
  margin-right: auto;
  margin-left: auto;
}

.quest-apply-post h2 {
  max-width: 45rem;
  color: #111111;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.04;
}

.quest-apply-post p {
  max-width: 44rem;
  color: #5f5c56;
  font-size: 1rem;
  line-height: 1.65;
}

.quest-apply-post strong {
  color: #111111;
  font-weight: 750;
}

.quest-apply-action {
  min-height: 3.25rem;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 720;
  margin-top: 0.75rem;
  padding: 0 1.35rem;
  transition: background 160ms ease, transform 160ms ease;
}

.quest-apply-action:hover,
.quest-apply-action:focus-visible {
  background: #2f2f2f;
}

.quest-apply-action:active {
  transform: translateY(1px);
}

.quest-apply-scheduling-button {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

@keyframes quest-apply-pop {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(0.4rem);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (min-width: 900px) {
  .quest-apply-shell {
    grid-template-columns: minmax(0, 0.8fr) minmax(32rem, 1.2fr);
    align-items: center;
  }

  .quest-apply-page.is-post-questions .quest-apply-shell {
    max-width: 54rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .quest-apply-topline {
    padding: 1.25rem 1.5rem 0;
  }

  .quest-apply-stage {
    padding: 1.75rem 1.5rem 1.5rem;
  }

  .quest-apply-options {
    margin-top: auto;
    padding-top: 2rem;
  }
}

@media (max-width: 640px) {
  .quest-intro-video__play::before {
    width: 4rem;
    height: 4rem;
  }

  .quest-apply-section {
    scroll-margin-top: 4rem;
  }

  .quest-apply-panel {
    border-radius: 1rem;
  }

  .quest-apply-stage {
    min-height: 31rem;
  }

  .quest-apply-question,
  .quest-apply-message,
  .quest-apply-post {
    min-height: 28rem;
  }

  .quest-apply-option {
    min-height: 3.5rem;
    border-radius: 0.875rem;
    font-size: 0.95rem;
    padding: 0.9rem;
  }
}
