/* ==========================================================================
   Dalston studio interest popup
   Slides in from bottom-right 2s after load. Email capture only.
   ========================================================================== */

.fr-popup {
  --fr-peach: #ffc0b1;
  --fr-ink: #1d1d1b;
  position: fixed;
  z-index: 9999;
  right: 24px;
  bottom: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background-color: var(--fr-peach);
  color: var(--fr-ink);
  font-family: Reformasans, sans-serif;
  padding: 24px 24px 26px;
  /* hidden state */
  opacity: 0;
  transform: translate(24px, 24px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .45s ease, transform .45s cubic-bezier(.16, .84, .44, 1), visibility .45s;
}

.fr-popup.is-visible {
  opacity: 1;
  transform: translate(0, 0);
  pointer-events: auto;
  visibility: visible;
}

/* Leaving: drop back down and to the right */
.fr-popup.is-leaving {
  opacity: 0;
  transform: translate(24px, 24px);
  pointer-events: none;
}

/* ---------- Close button ---------- */

.fr-popup__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--fr-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s ease;
}

.fr-popup__close:hover,
.fr-popup__close:focus-visible {
  opacity: 1;
}

/* ---------- Copy ---------- */

.fr-popup__eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .8;
}

.fr-popup__title {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--fr-ink);
}

.fr-popup__body {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
  opacity: .9;
}

/* ---------- Form ---------- */

.fr-popup__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fr-popup__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background-color: #fff;
  color: #1d1d1b;
  font-family: Reformasans, sans-serif;
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}

.fr-popup__input::placeholder {
  color: #8a8a85;
}

.fr-popup__input:focus {
  outline: 2px solid var(--fr-ink);
  outline-offset: 1px;
}

.fr-popup__input[aria-invalid="true"] {
  outline: 2px solid #000;
  outline-offset: 1px;
}

.fr-popup__submit {
  height: 46px;
  border: 0;
  border-radius: 0;
  background-color: #000;
  color: #fff;
  font-family: Reformasans, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.fr-popup__submit:hover:not(:disabled) {
  background-color: #803822;
  color: #fff;
}

.fr-popup__submit:disabled {
  opacity: .6;
  cursor: default;
}

.fr-popup__error {
  min-height: 16px;
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
  color: #803822;
  font-weight: 700;
}

.fr-popup__error:empty {
  min-height: 0;
}

.fr-popup__smallprint {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.4;
  opacity: .7;
}

/* ---------- Success state ---------- */

.fr-popup__success {
  display: none;
}

.fr-popup.is-success .fr-popup__form,
.fr-popup.is-success .fr-popup__body,
.fr-popup.is-success .fr-popup__smallprint {
  display: none;
}

.fr-popup.is-success .fr-popup__success {
  display: block;
}

.fr-popup__success p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  opacity: .9;
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .fr-popup {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 20px 20px 22px;
  }

  .fr-popup__title {
    font-size: 21px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .fr-popup {
    transition: opacity .2s ease, visibility .2s;
    transform: none;
  }

  .fr-popup.is-visible,
  .fr-popup.is-leaving {
    transform: none;
  }
}
