/* Reset styles */
html,
body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100%;
}

body {
  background: linear-gradient(to bottom, black, #4b0082, white);
  overflow: hidden;
}

/* Main Onboarding Page Styles */
.onboarding-container h1 {
  color: #ffffff;
  margin-bottom: 48px;
}

.onboarding-title {
  color: #ffffff;
  margin-bottom: 48px;
}

/* Onboarding styles */
.onboarding-container {
  width: 100vw;
  min-height: 100vh;
  background: linear-gradient(
    180deg,
    #000000 15.24%,
    #650ba4 40%,
    rgba(255, 255, 255, 0) 85%
  );
  padding: 30px 32px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

/* Fixed Bottom Container */
body .fixed-bottom-container {
  position: fixed;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 75vh !important;
  max-height: 900px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 24px 24px 0 0;
  padding: 40px 24px 32px 24px !important;
  box-shadow: 0px -4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
  body .fixed-bottom-container {
    bottom: 0px;
    height: 38vh !important;
    padding: 24px 16px !important;
  }

  /* Keep step items horizontal on mobile */
  .step-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
  }

  /* Maintain icon positioning */
  .step-icon.google,
  .step-icon.melody {
    margin-left: -16px;
  }

  .step-icon.data {
    margin-left: 8px;
  }

  /* Maintain content positioning */
  .step-content {
    flex: 1;
    text-align: left;
  }

  /* Adjust container padding */
  .steps-container {
    padding-left: 24px;
  }
}

/* Content wrapper */
.fixed-bottom-content {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Steps section */
.steps-section {
  width: 100%;
  margin-top: -24px;
}

/* Steps container */
.steps-container {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 24px; /* Add padding to align with fixed bottom content */
}

/* Fixed bottom container's steps container */
.fixed-bottom-container .steps-container {
  padding-left: 0; /* Reset padding for fixed bottom */
  margin-left: -15px; /* Move content left */
}

/* Step content in fixed bottom */
.fixed-bottom-container .step-content {
  max-width: 400px;
}

/* Default step item layout */
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

/* Default step icon styles */
.step-icon {
  display: flex;
  width: 40px;
  height: 40px;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

/* Specific icon adjustments */
.step-icon.google,
.step-icon.melody {
  margin-left: -16px; /* Move both icons left */
}

.step-icon.data {
  margin-left: 8px; /* Keep data icon position */
  width: 81px;
  height: 81px;
}

/* Step content adjustments to maintain spacing */
.step-item .step-icon.google + .step-content,
.step-item .step-icon.melody + .step-content {
  margin-left: 8px; /* Keep existing right shift */
}

/* Make data icon image fill the container */
.step-icon.data img {
  width: 81px;
  height: 81px;
  transform: scale(1);
  transform-origin: center;
  margin: -10px;
}

/* Specific spacing for data step */
.step-item .step-icon.data + .step-content {
  margin-left: -16px;
  max-width: 400px;
}

.step-icon img,
.step-icon svg {
  width: 40px;
  height: 40px;
}

/* Make data icon larger */
.step-icon.data svg {
  width: 76px; /* Increased from 52px */
  height: 76px; /* Increased from 52px */
  margin: -16px; /* Adjusted for larger size */
}

/* Step content */
.step-content {
  flex: 1;
  margin-left: -8px;
  max-width: 400px;
}

/* Step content text styles - remove redundant typography */
.step-content h2 {
  color: #ffffff;
  margin: 0 0 4px 0;
}

.step-content p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Bottom container specific styles */
.fixed-bottom-container .step-content h2 {
  color: #111827;
}

.fixed-bottom-container .step-content p {
  color: var(--theme-neutral-darker, #293141);
  margin-top: 4px;
}

/* Footer styles */
.onboarding-footer {
  padding: 24px;
  margin-top: auto; /* Push footer to bottom */
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999; /* Ensure it's above other content */
}

/* Keep existing Google button styles */
.google-button-container {
  margin-bottom: 8px;
}

/* Ensure content doesn't get hidden */
.min-h-screen {
  padding-bottom: 200px;
}

/* Make sure all content stays within bounds */
* {
  box-sizing: border-box;
}

/* Steps section in fixed bottom container */
.fixed-bottom-container .steps-section {
  width: 100%;
  padding-top: 40px; /* Added padding to top */
  margin-top: -24px;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
  .fixed-bottom-container .steps-section {
    padding-top: 24px; /* Adjusted padding for mobile */
  }
}

/* Step icon wrapper */
html body .steps-section .steps-container .step-item .step-icon-wrapper {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: relative;
  z-index: 10000;
  height: 80px;
}

/* Add centered vertical line using pseudo-element */
html body .steps-section .steps-container .step-item .step-icon-wrapper::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48px;
  transform: translateX(-50%) translateX(-8px); /* Added offset to move left */
  height: 32px;
  border-left: 2.5px dashed #ffffff !important;
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
  html
    body
    .steps-section
    .steps-container
    .step-item
    .step-icon-wrapper
    .vertical-line-new {
    display: none !important;
  }
}
