/**
Include icons in scss/css.
Usage: 
 @include icon(close);
*/
/*
Media query mixin.
Usage: 
@include media($bp-l, min)
*/
/*
Mixin to add loading spinner to button/element.
Usage: 
@include loading()
*/
.waitlist {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.waitlist::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1;
}

.waitlist.active {
  opacity: 1;
  visibility: visible;
}

.waitlist__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.waitlist__bg-image--desktop {
  display: none;
}
@media only screen and (min-width: 768px) {
  .waitlist__bg-image--desktop {
    display: block;
  }
}
.waitlist__bg-image--mobile {
  display: block;
}
@media only screen and (min-width: 768px) {
  .waitlist__bg-image--mobile {
    display: none;
  }
}

.waitlist-close-btn {
  position: absolute;
  right: 40px;
  top: 32px;
  font-weight: 400;
  font-size: 12px;
  line-height: 140%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  z-index: 10;
}

.waitlist-close-btn::after {
  content: "";
  display: block;
  width: calc(100% - 12px);
  height: 1px;
  background: #fff;
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s;
}

.waitlist-close-btn:hover::after {
  width: 0%;
}

.waitlist-container {
  width: 100%;
  height: 100%;
  max-width: 580px;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  padding: 40px 20px;
}

.waitlist-form-container {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}
.waitlist-form-container::-webkit-scrollbar {
  display: none;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  width: 100%;
  padding: 40px 0;
  transition: opacity 0.3s, visibility 0.3s;
}
waitlist-modal[success] .waitlist-form {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  pointer-events: none;
}

.waitlist-heading {
  font-weight: 400;
  font-size: 48px;
  line-height: 120%;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
}

.waitlist-field {
  position: relative;
}

.waitlist-input {
  border: none;
  font-family: "F Grotesk", Arial, serif;
  border-bottom: 1px solid rgba(242, 242, 242, 0.2);
  padding: 24px 0 10px;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  background: transparent;
  outline: none;
  color: #fff;
  width: 100%;
}

.waitlist-input::placeholder {
  color: transparent;
}

.waitlist-floating-label {
  position: absolute;
  left: 0;
  top: 18px;
  font-size: 14px;
  font-weight: 400;
  color: #ccc;
  pointer-events: none;
  transition: transform 0.2s ease, font-size 0.2s ease;
  transform-origin: left top;
}

.waitlist-input:focus ~ .waitlist-floating-label,
.waitlist-input:not(:placeholder-shown) ~ .waitlist-floating-label {
  transform: translateY(-14px);
  font-size: 11px;
}

.waitlist-button {
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  padding: 16px 40px;
  max-width: 335px;
  width: 100%;
  height: 46px;
  margin: 24px auto 0;
  transition: opacity 0.2s;
  border: none;
}
waitlist-modal[loading] .waitlist-button {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.waitlist-label {
  color: #ccc;
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  text-align: left;
}

.waitlist-textarea-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.waitlist-textarea {
  background: transparent;
  border: none;
  outline: none;
  border-bottom: 1px solid rgba(242, 242, 242, 0.2);
  color: #fff;
  resize: none;
  font-family: "F Grotesk", Arial, serif;
  font-size: 16px;
}

.char-count {
  font-weight: 400;
  font-size: 12px;
  line-height: 100%;
  text-transform: capitalize;
  text-align: right;
  color: #fff;
}

.social-field {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.social-field .waitlist-input {
  border-bottom: none;
  width: 100%;
  padding-bottom: 10px;
}

.social-field:focus-within {
  border-color: rgba(255, 255, 255, 0.8);
}

.social-label {
  font-size: 14px;
  color: #ccc;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  display: block;
  text-align: left;
}

.social-options {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.social-option {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: #ccc;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.01em;
  user-select: none;
}

.social-option input[type=checkbox] {
  appearance: none;
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 0;
  background: #757575;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}

.social-option input[type=checkbox]:checked {
  background: #fff;
  border-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.66671 2L3.00004 5.66667L1.33337 4' stroke='black' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.social-handle-input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 300;
  padding: 8px 0 0;
  caret-color: #fff;
}

.social-handle-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.waitlist-success-message {
  display: flex;
  flex-direction: column;
  text-align: center;
  color: #fff;
  width: calc(100% - 40px);
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  padding: 80px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s 0.15s, visibility 0.3s 0.15s;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
@media only screen and (min-width: 768px) {
  .waitlist-success-message {
    height: 75vh;
  }
}
waitlist-modal[success] .waitlist-success-message {
  opacity: 1;
  visibility: visible;
}

.waitlist-success-heading {
  font-weight: 400;
  font-size: 24px;
  line-height: 120%;
  text-transform: uppercase;
  color: #fff;
  max-width: 250px;
  margin-bottom: 24px;
  text-align: left;
}
@media only screen and (min-width: 768px) {
  .waitlist-success-heading {
    max-width: unset;
    font-size: 48px;
    text-align: center;
  }
}

.waitlist-success-description {
  font-weight: 400;
  font-size: 14px;
  line-height: 160%;
  color: #fff;
  margin-bottom: 24px;
  text-align: left;
}
@media only screen and (min-width: 768px) {
  .waitlist-success-description {
    font-size: 16px;
    text-align: center;
  }
}

.waitlist-success-button {
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  color: #000;
  background: #fff;
  width: 100%;
  max-width: 335px;
  max-height: 46px;
  margin: auto auto 0;
  transition: opacity 0.2s;
  border: none;
  text-decoration: none;
}

.waitlist-error-message {
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scaleY(0.8);
  transform-origin: top;
  transition: all 0.15s;
  text-align: center;
}
.waitlist-error-message small {
  color: #ff6b6b;
  font-size: 13px;
}
waitlist-modal[error] .waitlist-error-message {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
  height: auto;
  margin-top: 4px;
}

@media only screen and (max-width: 767px) {
  .waitlist-form {
    width: 100%;
    padding: 40px 0;
    justify-content: start;
  }
  .waitlist-container {
    width: 100%;
  }
  .waitlist-heading {
    font-size: 24px;
    text-align: left;
    width: 50%;
  }
  .waitlist-close-btn {
    top: 24px;
    right: 20px;
  }
}
