/* Main Background And Card */
body {
  margin-top: 1.25rem;
  background-color: #0f121d;
  font-family: "Inter";
  overflow-x: hidden;
}

.container {
  padding-left: 1rem;
  padding-right: 1rem;
}

input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.container {
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  flex-direction: column;
  padding-bottom: 6.25rem;
}

.mh {
  margin-top: 0;
  align-items: center;
  color: #78aaff;
  font-size: 3.125rem; /* 50px */
  font-weight: 1000;
  margin-left: 1rem; /* add some left margin */
  margin-right: 1rem;
  text-align: center;
}

._gap {
  color: #0f121d;
}

.card {
  border-radius: 20px;
  width: 600px; /* 37.5rem */
  max-width: 100%; /* prevent overflow */
  margin: 0 1.5rem; /* 24px horizontal margin */
  background-color: #1a1d2b;
  padding-bottom: 30px; /* 1.875rem */
  margin: 0 auto; /* center horizontally */
  width: 600px;
}

.steps-bar {
  margin: 1.875rem 4.375rem 0rem 5rem;
  display: flex;
  justify-items: center;
  width: 70%;
  align-content: center;
  justify-content: space-around;
  align-items: center;
}

.step {
  /* font-family: monoscape; */
  display: flex;
  font-size: 1.875rem;
  margin: 0.0625rem;
  width: 2.8125rem;
  height: 2.8125rem;
  border-radius: 50%;
  color: white;
  background-color: #0f121d;
  align-items: center;
  justify-content: center;
}

.line {
  /* display: none; */
  width: 15%;
  height: 0.0625rem;
  background-color: white;
}

.step1,
.step2 {
  margin: 2.5rem 4.375rem;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  height: 100%;
  row-gap: 1.5rem;
}

.step2,
.step3,
.step4 {
  display: none;
}

.name {
  display: flex;
  column-gap: 0.625rem;
}

.name input {
  flex: 1;
}

input {
  height: 2.5rem;
  border-radius: 0.3125rem;
  border: 1px solid #2a2e45;
  padding: 0.3125rem 0.625rem;
  background-color: #141823;
  color: white;
}

input::placeholder {
  color: #6b7280;
}

input:focus {
  border: 0.125rem solid #2e6bf6;
  outline: none;
}

#phone,
.iti {
  width: 100%;
}

.iti input {
  background-color: #141823 !important;
  color: white !important;
  border: 1px solid #2a2e45 !important;
  padding: 0.3125rem 3.25rem !important;
  border-radius: 0.3125rem !important;
  height: 2.8125rem !important;
}

.iti input::placeholder {
  color: #6b7280 !important;
}

.iti__flag-container {
  background-color: #141823;
  border-right: 1px solid #2a2e45;
}

.iti__selected-flag {
  padding: 0 0.625rem;
  height: 2.1875rem;
}

.iti input:focus {
  border: 0.125rem solid #2e6bf6 !important;
  outline: none;
}

.iti__country-list {
  background-color: #1a1d2b;
  color: white;
  border: 1px solid #2a2e45;
}

input[type="date"] {
  color: white;
  background-color: #141823;
  border: 1px solid #2a2e45;
  height: 2.1875rem;
  padding: 0.3125rem 0.625rem;
  border-radius: 0.3125rem;
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
}

.gender-input {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.gender-input input[type="radio"] {
  accent-color: #2e6bf6;
  cursor: pointer;
  margin: 0;
}

.gender-input label {
  color: white;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.step3 {
  margin-top: 1.875rem;
  margin-bottom: 1.875rem;
  flex-direction: column;
  row-gap: 1rem;
  justify-content: center;
  align-items: center;
  height: 9.375rem;
  padding: 0 1.25rem;
}

.theme-switcher {
  width: 100%;
  max-width: 25rem;
  display: flex;
  border: 0.125rem solid #2e6bf6;
  border-radius: 0.5rem;
  overflow: hidden;
  user-select: none;
}

.theme-switcher input[type="radio"] {
  display: none;
}

.theme-switcher label {
  padding: 0.625rem 1.25rem;
  cursor: pointer;
  color: white;
  background-color: #1a1d2b;
  flex: 1;
  text-align: center;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.theme-switcher input[type="radio"]:checked + label {
  background-color: #2e6bf6;
  color: white;
}

.theme-switcher label:not(:last-child) {
  border-right: 1px solid #2e6bf6;
}

.toggle-switch {
  margin-top: -1.875rem;
  width: 3.75rem;
  height: 1.875rem;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch label {
  position: relative;
  display: inline-block;
  width: 3.125rem;
  height: 1.5rem;
  background-color: #555;
  border-radius: 0.75rem;
  cursor: pointer;
}

.toggle-switch label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.25rem;
  transform: translateY(-50%);
  width: 1.125rem;
  height: 1.125rem;
  background-color: white;
  border-radius: 50%;
  transition: 0.3s;
}

.toggle-switch input:checked + label {
  background-color: #2e6bf6;
}

.toggle-switch input:checked + label::before {
  left: calc(100% - 1.375rem);
}

.email-preference {
  background-color: #2a2e45;
  width: 65%;
  max-width: 25rem;
  border-radius: 0.625rem;
  padding: 0.625rem 1.25rem;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.step4 {
  margin-top: 1.875rem;
  margin-bottom: 1.875rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.step4 h2 {
  margin-top: -0.625rem;
  color: white;
  font-size: 1.875rem;
  font-weight: bold;
}

.step4 p {
  margin-top: -0.625rem;
  width: 70%;
  color: white;
  text-align: center;
}

.step4 input {
  width: 5.625rem;
  height: 2.1875rem;
  border-radius: 0.625rem;
  background-color: #2e6bf6;
  color: white;
  outline: none;
  cursor: pointer;
}

.step4 input:hover {
  opacity: 70%;
}

.buttons {
  margin: 0 4.375rem;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: space-between;
}

#nav-button {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  border: none;
  color: #0f121d;
  background-color: #2e6bf6;
  font-size: 1.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.button-prev {
  display: inline-block;
  transform: rotate(180deg);
}

/* Responsive tweak for smaller screens */
@media (max-width: 600px) {
  .mh {
    font-size: 2rem; /* scale down headline */
  }
}

@media (max-width: 530px) {
  .name-fields {
    flex-direction: column;
    gap: 1rem;
  }

  .step1, .step2{
    margin: 1.5rem 1.5rem;
    row-gap: 0.5rem;
  }
  
  .name-fields input {
    width: 100%;
  }
}

@media (max-width: 470px) {
  .card {
    margin: 1rem;
    padding: 1.5rem;
  }

  .steps-bar{
    margin: 0.5rem 1rem 0 3rem;
  }

  /* .line{
    display: none;
  } */
  
  .step1, .step2{
    margin: 1rem 1rem;
    row-gap: 0.7rem;
  }
  .mh {
    font-size: 2rem;
  }
}

@media(max-width: 426px){
  .step{
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.9rem;
  }
  
}

@media (max-width: 320px) {
  .sh{
    display:none;
  }

  .ste

  .card{
    margin: 10px 10px;
  }
  .step1, .step2{
    margin: 1.2rem 0.2rem;
  }
}

@media (max-width: 500px) {
  .card {
    margin: 0 1rem 0 1rem; /* or 5vw if you want more fluid spacing */
  }
}

@media (max-width: 323px){
  .step1, .step2{
    margin: 1.2rem 0.2rem;
  }

}