* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #e4e9f7;
  color: #333;
  overflow-x: hidden;
}

/* --- Site Header --- */
.site-header {
  background-color: #000;
  padding: 15px 1.5rem;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}
.logo img {
  display: block;
  padding-left: 175px;
}
.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
}
.main-nav a {
  /*
    NOTE: 'uniformregular_2' is not a standard web font.
    It will only display correctly if installed on the user's system
    or loaded via @font-face.
  */
  font-family: "uniformregular_2", sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease-in-out;
  padding: 0 15px;
  display: block;
  line-height: 1;
}

.main-nav a.home-link-color {
  color: #ff8921;
}

.main-nav a:hover,
.main-nav a.active {
  color: #f58220;
}

/* ADDED: Nav Toggle Button (Hamburger) */
.nav-toggle {
  display: none; /* Hidden by default on desktop */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  z-index: 110; /* Ensure it's above other elements */
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #fff; /* White bars for dark header */
  border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- Animated Background --- */
.blob-c {
  position: fixed; /* Changed to fixed to stay in viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}
.blob:nth-child(1) {
  width: 400px;
  height: 400px;
  background: #c3aed6;
  top: -150px;
  left: -150px;
  animation: move 25s infinite alternate;
}
.blob:nth-child(2) {
  width: 350px;
  height: 350px;
  background: #a9d4f3;
  bottom: -100px;
  right: -100px;
  animation: move 30s infinite alternate-reverse;
}
.blob:nth-child(3) {
  width: 250px;
  height: 250px;
  background: #a9f3e4;
  bottom: 100px;
  left: 100px;
  animation: move 22s infinite alternate;
}
@keyframes move {
  from {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  to {
    transform: translate(100px, 50px) rotate(90deg) scale(1.2);
  }
}

/* --- Page Wrapper --- */
.page-wrapper {
  max-width: 500px;
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: max-width 0.4s ease;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  margin: 3rem auto; /* Center wrapper on the page */
}

/* --- Layout Columns --- */
.image-column {
  display: block;
  height: 200px;
}
.sticky-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content-column {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* --- Content Screens --- */
.intro-card,
.form-wrapper {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
}
#form-screen,
#success-screen {
  display: none;
}
.intro-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #4b2994;
  margin-bottom: 1rem;
  text-align: center;
  line-height: 1.2;
}
.intro-text p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: #4a5568;
  text-align: center;
}
#join-waitlist-btn {
  padding: 0.8rem 1.5rem;
  background-color: #6a32f7;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(106, 50, 247, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}
#join-waitlist-btn:hover {
  background-color: #5520c9;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(106, 50, 247, 0.3);
}
#join-waitlist-btn svg {
  width: 20px;
  height: 20px;
}
.progress-bar {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}

/* --- FIXED PROGRESS LINE POSITIONING --- */
.progress-bar::before {
  content: "";
  position: absolute;
  top: 17.5px; /* Half of icon height (35px) */
  left: 0;
  transform: translateY(-50%);
  height: 3px;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 3px;
}
.progress-bar .progress-line {
  position: absolute;
  top: 17.5px; /* Half of icon height (35px) */
  left: 0;
  transform: translateY(-50%);
  height: 3px;
  width: 0%;
  background-color: #6a32f7;
  z-index: 2;
  transition: width 0.4s ease-out;
  border-radius: 3px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #999;
  position: relative;
  z-index: 3;
  text-align: center;
  font-weight: 500;
}
.progress-step .step-icon {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background-color: #fff;
  border: 2px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: all 0.4s ease;
  margin-bottom: 0.5rem;
}
.progress-step.active .step-icon {
  background-color: #6a32f7;
  color: white;
  border-color: #6a32f7;
  box-shadow: 0 0 0 4px rgba(106, 50, 247, 0.15);
}
.progress-step.active {
  color: #4b2994;
  font-weight: 600;
}

/* --- Form --- */
form {
  width: 100%;
}
.form-steps {
  position: relative;
}
.form-step {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.5s ease-in-out;
}
.form-step.active-step {
  display: flex;
}

/* --- Floating Labels & Inputs --- */
.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
}
.form-group input,
.form-group select {
  padding: 1rem 0.8rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  font-family: "Inter", sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: rgba(255, 255, 255, 0.5);
}
.form-group label {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  font-size: 1rem;
  color: #666;
  pointer-events: none;
  transition: all 0.2s ease-out;
  font-weight: 500;
  background: transparent;
}
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #6a32f7;
  box-shadow: 0 0 0 3px rgba(106, 50, 247, 0.15);
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group select:focus + label,
.form-group select:valid + label {
  top: 0.2rem;
  left: 0.8rem;
  font-size: 0.75rem;
  color: #6a32f7;
  font-weight: 600;
}
.form-group input.input-error {
  border-color: #e74c3c;
}
.form-group input.input-error:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}
.form-group input.input-error + label {
  color: #e74c3c;
}
select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
}
.helper-text {
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}
input[disabled] {
  background-color: #f0f0f0 !important;
  cursor: wait;
}

/* Instagram Prefix */
.input-prefix-group {
  --prefix-width: 155px;
  position: relative;
}
.input-prefix-group .input-prefix {
  position: absolute;
  top: 0.85rem;
  left: 0.8rem;
  font-size: 1rem;
  color: #888;
  pointer-events: none;
}
.input-prefix-group input {
  padding-left: var(--prefix-width);
}
.input-prefix-group > label {
  left: var(--prefix-width);
}
.input-prefix-group input:focus + label,
.input-prefix-group input:not(:placeholder-shown) + label {
  left: var(--prefix-width);
}

/* --- Tags --- */
.content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tag {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid #ccc;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  font-weight: 500;
}
.tag:hover {
  transform: translateY(-2px);
  border-color: #999;
}
.tag.active {
  background: #6a32f7;
  color: white;
  border-color: #6a32f7;
  font-weight: 600;
}

/* **FIXED** Content Tags Grouping */
.form-group-tags {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1.5rem 0.8rem 0.8rem;
  transition: border-color 0.3s;
  margin-top: 1rem; /* Added margin to separate from top */
}
.form-group-tags .static-label {
  position: absolute;
  top: -0.6em; /* Position it on top of the border */
  left: 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6a32f7;
  padding: 0 4px; /* Create space around the text */
  background: white; /* Cut through the border */
}
.form-group-tags.input-error {
  border-color: #e74c3c;
}
.form-group-tags.input-error .static-label {
  color: #e74c3c;
}

/* --- Terms & Conditions --- */
.terms-box {
  max-height: 150px;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  color: #4a5568;
  margin-top: 1rem;
  transition: border-color 0.3s;
}
.terms-box.input-error {
  border-color: #e74c3c;
}
.terms-box h4 {
  margin-bottom: 0.5rem;
  color: #333;
}
.terms-box ol {
  padding-left: 1.2rem;
}
.terms-box li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.form-group-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.form-group-checkbox input[type="checkbox"] {
  width: auto;
  accent-color: #6a32f7;
}
.form-group-checkbox label {
  position: static;
  color: #333;
  font-size: 0.9rem;
}
.form-group-checkbox input.input-error + label {
  color: #e74c3c;
}

/* Navigation Buttons */
.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}
.form-nav button {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.form-nav button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.form-nav button:disabled:hover {
  background-color: #ccc;
}
.form-nav button:hover {
  transform: translateY(-2px);
}
.form-nav button svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}
#prev-btn {
  background: #e9ecef;
  color: #333;
}
#prev-btn:hover {
  background: #dee2e6;
}
#prev-btn svg {
  transform: rotate(180deg);
}
#next-btn {
  background: #6a32f7;
  color: white;
}
#next-btn:hover {
  background: #5520c9;
}
#next-btn:hover svg {
  transform: translateX(3px);
}
#prev-btn.hidden {
  display: none;
}

/* Success Screen & Animations */
#success-screen {
  gap: 1rem;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  animation: fadeIn 0.5s ease-in-out;
}
#success-screen h2 {
  font-size: 2.25rem;
  color: #4b2994;
}
#success-screen p {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 400px;
  text-align: center;
  line-height: 1.6;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
/* MODIFIED: Mobile Menu Styles */
@media (max-width: 1024px) {
  .header-container {
    flex-direction: row; /* Override original column direction */
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }

  .logo img {
    padding-left: 0; /* Remove desktop-only padding */
  }

  .nav-toggle {
    display: flex; /* Show hamburger button */
  }

  .main-nav {
    position: absolute;
    top: 100%; /* Position below the header */
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

    /* Use max-height for a smooth dropdown animation */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
  }

  .main-nav.is-open {
    max-height: 500px; /* Animate to this height when open */
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    flex-wrap: nowrap;
  }

  .main-nav li {
    border-bottom: 1px solid #f0f0f0;
  }
  .main-nav li:last-child {
    border-bottom: none;
  }

  .main-nav a {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #333;
    text-transform: none;
    padding: 15px 20px;
    width: 100%;
    border-left: 4px solid transparent;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  }

  .main-nav a:hover,
  .main-nav a.active {
    color: #00a9e0; /* A teal color inspired by the image */
    background-color: #f8f9fa;
    border-left-color: #00a9e0; /* Active indicator */
  }

  /* Animate hamburger button to 'X' when open */
  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
  }
  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
  }
}

@media (min-width: 820px) {
  .page-wrapper {
    flex-direction: row;
    max-width: 1000px;
    min-height: 650px;
    margin: 4rem auto;
  }
  .image-column {
    flex-basis: 40%;
    height: auto;
  }
  .content-column {
    flex-basis: 60%;
  }
  .intro-text h1,
  .intro-text p {
    text-align: left;
  }
  #join-waitlist-btn {
    margin: 0;
  }
}
