/* Waitlist Form Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 4, 27, 0.95);
  backdrop-filter: blur(0.52vw);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal.show {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(
    to bottom,
    rgba(0, 20, 50, 0.95),
    rgba(0, 4, 27, 0.95)
  );
  border: 0.05vw solid rgba(114, 221, 255, 0.2);
  border-radius: 1.5em;
  padding: 2em 2.5em;
  width: 90%;
  max-width: 28vw;
  position: relative;
  animation: slideUp 0.3s ease;
  box-shadow: 0 1.85vh 3.13vw rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
  from {
    transform: translateY(4.63vh);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  color: rgba(255, 255, 255, 0.6);
  position: absolute;
  top: 1em;
  right: 1em;
  font-size: 1.8vw;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s ease;
  line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
  color: #fcff66;
}

.modal-title {
  font-family: "Chillax-Medium", sans-serif;
  font-size: 2vw;
  letter-spacing: -0.06vw;
  color: #fff;
  margin-bottom: 1em;
  text-align: center;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.4em;
  margin-bottom: 1.2em;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4em;
  border-radius: 0.8em;
  border: 0.05vw solid rgba(255, 255, 255, 0.075);
}

.tab-button {
  flex: 1;
  padding: 0.6em 1.2em;
  font-family: "Inter", sans-serif;
  font-size: 0.9vw;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  border-radius: 0.5em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.tab-button.active {
  color: #000;
  background: #fcff66;
}

/* Tab Content */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

/* Form Styles */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.form-group label {
  font-family: "Chillax-Medium", sans-serif;
  font-size: 0.9vw;
  color: #fff;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7em 0.9em;
  font-family: "Inter", sans-serif;
  font-size: 0.9vw;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 0.05vw solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5em;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(114, 221, 255, 0.5);
  box-shadow: 0 0 0 0.16vw rgba(114, 221, 255, 0.1);
}

.form-group textarea {
  resize: none;
  min-height: 6vh;
}

.submit-btn {
  width: 100%;
  padding: 0.8em 1.8em;
  font-family: "Inter", sans-serif;
  font-size: 0.9vw;
  font-weight: 600;
  color: #000;
  background: #fcff66;
  border: none;
  border-radius: 3em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5em;
}

.submit-btn:hover {
  background: #f5f959;
  transform: translateY(-0.19vh);
  box-shadow: 0 0.74vh 1.04vw rgba(252, 255, 102, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Success Message */
.success-message {
  display: none;
  padding: 0.8em;
  background: linear-gradient(
    135deg,
    rgba(72, 207, 173, 0.2),
    rgba(72, 207, 173, 0.1)
  );
  border: 0.05vw solid rgba(72, 207, 173, 0.3);
  border-radius: 0.5em;
  color: #48cfad;
  font-family: "Inter", sans-serif;
  font-size: 0.85vw;
  text-align: center;
  margin-top: 0.5em;
  animation: fadeIn 0.3s ease;
}

.success-message.show {
  display: block;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .modal {
    padding: 0.5em;
    align-items: center;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    padding: 1.5em 1.2em 1.2em 1.2em;
    border-radius: 1em;
    margin: auto;
  }

  .modal-title {
    font-size: 5.5vw;
    letter-spacing: -0.15vw;
    margin-bottom: 0.8em;
  }

  .close-modal {
    font-size: 6vw;
    top: 0.8em;
    right: 0.8em;
  }

  .tabs {
    gap: 0.25em;
    padding: 0.25em;
    margin-bottom: 1em;
  }

  .tab-button {
    padding: 0.6em 0.9em;
    font-size: 3.5vw;
  }

  .waitlist-form {
    gap: 0.8em;
  }

  .form-group {
    gap: 0.3em;
  }

  .form-group label {
    font-size: 3.5vw;
  }

  .form-group input,
  .form-group textarea {
    font-size: 3.5vw;
    padding: 0.7em 0.9em;
  }

  .form-group textarea {
    min-height: 7vh;
    resize: none;
  }

  .submit-btn {
    font-size: 3.5vw;
    padding: 0.8em 1.5em;
    margin-top: 0.3em;
  }

  .success-message {
    font-size: 3.2vw;
    padding: 0.7em;
    margin-top: 0.3em;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 1.3em 1em 1em 1em;
  }

  .modal-title {
    font-size: 6vw;
    margin-bottom: 0.7em;
  }

  .close-modal {
    font-size: 6.5vw;
    top: 0.7em;
    right: 0.7em;
  }

  .tabs {
    margin-bottom: 0.8em;
  }

  .tab-button {
    font-size: 3.8vw;
    padding: 0.55em 0.8em;
  }

  .waitlist-form {
    gap: 0.7em;
  }

  .form-group label {
    font-size: 3.8vw;
  }

  .form-group input,
  .form-group textarea {
    font-size: 3.8vw;
    padding: 0.65em 0.85em;
  }

  .form-group textarea {
    min-height: 6vh;
  }

  .submit-btn {
    font-size: 3.8vw;
    padding: 0.75em 1.4em;
  }

  .success-message {
    font-size: 3.5vw;
  }
}
