/* For business (/me/business, app.js renderForBusinessPage): one question per
   screen. Who are you at a salon → the salon's code → request sent. Salon
   owners leave for salon setup from the first screen. */
.rl-fb {
  --fb-ink: #1c1830;
  --fb-mute: #6e6880;
  --fb-line: #e6e1f0;
  --fb-violet: #7c5cd6;
  --fb-peri: #93a2f7;
  --fb-spring: cubic-bezier(.2, .9, .25, 1.05);
  display: grid;
  align-content: start;
  gap: 0;
  width: min(640px, 100%);
  min-height: min(720px, calc(100vh - 160px));
  margin: 0 auto;
  padding: clamp(20px, 5vh, 56px) 16px 64px;
  color: var(--fb-ink);
}

.rl-fb-back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  min-height: 36px;
  margin: 0 0 clamp(24px, 5vh, 44px) -8px;
  padding: 0 12px 0 6px;
  border: 0;
  border-radius: 999px;
  color: var(--fb-mute);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.rl-fb-back:hover {
  color: var(--fb-ink);
  background: rgb(124 92 214 / 8%);
}

.rl-fb-back .icon {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.rl-fb-eyebrow {
  margin: 0 0 12px;
  color: var(--fb-violet);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rl-fb h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -.05em;
}

.rl-fb-sub {
  margin: 14px 0 0;
  color: var(--fb-mute);
  font-size: 16px;
  line-height: 1.55;
}

.rl-fb-choices {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.rl-fb-choice {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 18px 18px 18px;
  border: 1px solid var(--fb-line);
  border-radius: 20px;
  color: var(--fb-ink);
  background: rgb(255 255 255 / 92%);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 40px -32px rgb(40 24 90 / 55%);
  transition: transform 320ms var(--fb-spring), box-shadow 320ms ease, border-color 200ms ease;
}

.rl-fb-choice:hover {
  border-color: rgb(145 107 232 / 45%);
  box-shadow: 0 26px 50px -30px rgb(91 63 196 / 55%);
  transform: translateY(-2px);
}

.rl-fb-choice:focus-visible {
  outline: 3px solid rgb(124 92 214 / 45%);
  outline-offset: 2px;
}

.rl-fb-choice-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(140deg, var(--fb-peri), var(--fb-violet));
}

.rl-fb-choice-icon .icon {
  width: 22px;
  height: 22px;
}

.rl-fb-choice-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.rl-fb-choice-copy strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.rl-fb-choice-copy small {
  color: var(--fb-mute);
  font-size: 14.5px;
  line-height: 1.45;
}

.rl-fb-choice > .icon {
  width: 18px;
  height: 18px;
  color: var(--fb-violet);
}

.rl-fb-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 30px;
}

.rl-fb-code label {
  display: block;
  min-width: 0;
}

.rl-fb-code input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--fb-line);
  border-radius: 16px;
  color: var(--fb-ink);
  background: #fff;
  font: inherit;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rl-fb-code input::placeholder {
  color: #b9b3c8;
  font-weight: 550;
}

.rl-fb-code input:focus {
  border-color: var(--fb-violet);
  outline: 3px solid rgb(124 92 214 / 18%);
}

.rl-fb-code .solid-button {
  min-height: 56px;
  padding-inline: 24px;
  border-radius: 16px;
}

.rl-fb-error {
  margin: 12px 0 0;
  color: #b33a2f;
  font-size: 14px;
}

.rl-fb.is-sent {
  justify-items: center;
  padding-top: clamp(48px, 12vh, 120px);
  text-align: center;
}

.rl-fb.is-sent .rl-fb-sub {
  max-width: 440px;
}

.rl-fb-done {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 26px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(140deg, #57c7a0, #2f8872);
  box-shadow: 0 18px 40px -18px rgb(47 136 114 / 70%);
  animation: rl-fb-done 620ms var(--fb-spring) both;
}

.rl-fb-done .icon {
  width: 32px;
  height: 32px;
}

.rl-fb-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.rl-fb-actions .solid-button {
  min-height: 52px;
  padding-inline: 32px;
  border-radius: 999px;
}

/* Each screen rises in, a beat apart. */
.rl-fb [data-fb-rise] {
  animation: rl-fb-rise 520ms var(--fb-spring) both;
}

.rl-fb [data-fb-rise]:nth-of-type(2) { animation-delay: 40ms; }
.rl-fb [data-fb-rise]:nth-of-type(3) { animation-delay: 80ms; }
.rl-fb-choices > [data-fb-rise]:nth-child(1) { animation-delay: 120ms; }
.rl-fb-choices > [data-fb-rise]:nth-child(2) { animation-delay: 170ms; }
.rl-fb-choices > [data-fb-rise]:nth-child(3) { animation-delay: 220ms; }

@keyframes rl-fb-rise {
  from { opacity: 0; transform: translateY(14px); }
}

@keyframes rl-fb-done {
  from { opacity: 0; transform: scale(.6); }
}

/* For business sits at the top right of the overview. */
.me-for-business .icon {
  width: 16px;
  height: 16px;
}

@media (max-width: 640px) {
  .rl-fb-code {
    grid-template-columns: minmax(0, 1fr);
  }

  .rl-fb-choice {
    grid-template-columns: 44px minmax(0, 1fr) 16px;
    gap: 14px;
    padding: 16px;
  }

  .rl-fb-choice-icon {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rl-fb [data-fb-rise],
  .rl-fb-done {
    animation: none;
  }

  .rl-fb-choice {
    transition: none;
  }
}

/* The salon's request form, after the code (app.js renderForBusinessDetails). */
.rl-fb-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.rl-fb-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--fb-ink);
  font-size: 13.5px;
  font-weight: 650;
}

.rl-fb-field.is-wide {
  grid-column: 1 / -1;
}

.rl-fb-field b {
  color: var(--fb-violet);
}

.rl-fb-field :is(input, select, textarea) {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--fb-line);
  border-radius: 14px;
  color: var(--fb-ink);
  background: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
}

.rl-fb-field textarea {
  min-height: 110px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

.rl-fb-field :is(input, select, textarea):focus {
  border-color: var(--fb-violet);
  outline: 3px solid rgb(124 92 214 / 18%);
}

.rl-fb-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}

.rl-fb-photo {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  margin: 0;
  place-items: center;
  border-radius: 16px;
  background: #f3f0fa;
}

.rl-fb-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rl-fb-photo > button {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgb(28 24 48 / 70%);
  cursor: pointer;
}

.rl-fb-photo > button .icon,
.rl-fb-photo > button svg {
  width: 14px;
  height: 14px;
}

.rl-fb-photo.is-empty {
  gap: 4px;
  align-content: center;
  border: 1.5px dashed #cfc6e6;
  color: var(--fb-violet);
  background: #faf8fe;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
}

.rl-fb-photo.is-empty .icon,
.rl-fb-photo.is-empty svg {
  width: 20px;
  height: 20px;
}

.rl-fb-photo.is-uploading span {
  width: 26px;
  height: 26px;
  border: 3px solid #d9d1f0;
  border-top-color: var(--fb-violet);
  border-radius: 50%;
  animation: rl-fb-spin 800ms linear infinite;
}

@keyframes rl-fb-spin {
  to { transform: rotate(360deg); }
}

.rl-fb-actions.is-form {
  grid-column: 1 / -1;
  justify-content: flex-start;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .rl-fb-details {
    grid-template-columns: minmax(0, 1fr);
  }
}
