/* ─── Single retreat — the "passport page" ───────────────────────────────── */

.retreat-hero {
  padding: 32px 0 56px;

  @media (min-width: 992px) {
    padding: 40px 0 72px;
  }
}

.retreat-hero__back {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.retreat-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 48px;
  margin-top: 28px;
}

.retreat-hero__copy {
  flex: 1 1 460px;
  display: flex;
  flex-direction: column;
  gap: 22px;

  .facts {
    max-width: 560px;
  }
}

.retreat-hero__title {
  font-size: clamp(52px, 6.6vw, 90px);
  line-height: 0.96;
}

.retreat-hero__tagline {
  align-self: flex-start;
  font-size: 28px;
  color: var(--red);
  transform: rotate(-1.5deg);
}

.retreat-hero__intro {
  max-width: 520px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
}

.retreat-hero__dates {
  font-size: 14px;
  color: var(--muted);

  strong {
    color: var(--ink);
  }
}

.retreat-hero__visual {
  position: relative;
  flex: 1 1 420px;
  display: flex;
  justify-content: center;
  padding: 24px;
}

.retreat-hero__polaroid {
  width: 100%;
  max-width: 480px;
  transform: rotate(2deg);

  .polaroid__img {
    aspect-ratio: 8 / 7;
  }
}

.retreat-hero__stamp {
  --size: 112px;
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-14deg);
  background: color-mix(in srgb, var(--bg-color) 85%, transparent);

  @media (min-width: 768px) {
    --size: 132px;
  }
}

/* For you if… */
.retreat-foryou .section-title {
  margin-bottom: 36px;
}

.retreat-foryou__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* Program */
.retreat-program__row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
}

.retreat-program__intro {
  flex: 1 1 300px;
}

.retreat-program__days {
  flex: 2 1 520px;
}

.day__head {
  font: inherit;
}

.day__btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  border-bottom: 1px dashed var(--line-dash);
  background: transparent;
  text-align: left;
  color: var(--ink);

  @media (min-width: 768px) {
    gap: 20px;
  }
}

.day__num {
  flex-shrink: 0;
  width: 72px;
  font-size: 26px;

  @media (min-width: 768px) {
    width: 92px;
    font-size: 30px;
  }
}

.day__title {
  flex: 1;
  font: 600 clamp(22px, 2.4vw, 27px)/1.15 var(--title-font);
}

.day__icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;

  &::before,
  &::after {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    top: 50%;
    height: 1.5px;
    background: currentColor;
    transition: transform var(--hover-duration) var(--timing);
  }

  &::after {
    transform: rotate(90deg);
  }
}

.day__btn[aria-expanded="true"] .day__icon::after {
  transform: rotate(0deg);
}

.day__text {
  padding: 16px 0 24px 88px;
  color: var(--muted);
  line-height: 1.65;

  @media (min-width: 768px) {
    padding-left: 112px;
  }
}

/* Where we stay + included */
.retreat-stay__inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.retreat-stay__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
}

.retreat-stay__polaroid {
  flex: 1 1 260px;

  .polaroid__img {
    aspect-ratio: 4 / 3;
  }

  &:nth-child(1) { transform: rotate(-2deg); }
  &:nth-child(2) { transform: rotate(1.5deg); }
  &:nth-child(3) { transform: rotate(-1deg); }

  @media (min-width: 992px) {
    &:nth-child(2) { margin-top: 24px; }
  }
}

.retreat-stay__lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 32px;

  > div {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
}

.retreat-stay__title {
  font-size: 34px;
}

.retreat-stay__note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* Apply */
.apply__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 48px;
}

.apply__intro {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;

  .section-head {
    margin-bottom: 0;
  }
}

.apply__note {
  font-size: 24px;
  color: var(--red);
}

.apply__card {
  flex: 1 1 520px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card-white);
  box-shadow: var(--shadow-lift);

  @media (min-width: 768px) {
    padding: 40px;
  }
}

.apply__form,
.apply__step {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.apply__form {
  gap: 22px;
}

.apply__step .btn {
  align-self: flex-start;
}

.apply__steps {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.apply__steps-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.apply__two {
  display: grid;
  gap: 14px;

  @media (min-width: 640px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.apply__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;

  legend {
    margin-bottom: 10px;
    padding: 0;
  }
}

.apply__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.apply__error {
  color: var(--negative-color);
  font-size: 14px;
  font-weight: 600;

  &:empty {
    display: none;
  }
}

.apply__sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px 0;
  text-align: center;

  &:focus {
    outline: none;
  }
}

.apply__stamp {
  --size: 152px;
  font-size: 13px;
  transform: rotate(-12deg);
}

@media (prefers-reduced-motion: no-preference) {
  .apply__sent:not([hidden]) .apply__stamp {
    animation: ymr-apply-stamp-in 0.45s var(--timing);
  }
}

@keyframes ymr-apply-stamp-in {
  from { opacity: 0; transform: rotate(-12deg) scale(1.6); }
  to { opacity: 0.92; transform: rotate(-12deg) scale(1); }
}

.apply__sent-title {
  font-size: clamp(32px, 3.4vw, 40px);
}

.apply__sent-text {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.6;
}

.apply__reset {
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--red);
  font: 600 14px var(--text-font);
}

/* FAQ */
.retreat-faq__row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.retreat-faq__title {
  flex: 1 1 280px;
}

.retreat-faq__grid {
  flex: 2 1 520px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;

  dt {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
  }

  dd {
    color: var(--muted);
    line-height: 1.6;
  }
}
