@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;600;700&display=swap');

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Nunito Sans", sans-serif;
}

body {
  background: #f9f9f9;
  padding: 0px 200px;
}

.header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 10px;
}

#sendCodeBtn{
  background-color: #F3D90B;
  color: black;
}

.form-container {
  width: 90%;
  max-width: 650px;
  background: white;
  margin: 30px auto;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.show-password-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;     
    margin-top: 10px;
    gap: 5px;                
}

#showPassword {
    width: 50px;
}

.progress-bar {
  display: flex;
  height: 10px;
  background: #ddd;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 25px;
}

.progress {
  height: 10px;
  width: 0%;
  background: #0b6623;
  transition: width 0.6s ease-in-out; 
}


.form-step {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
    display: none !important;
}




#thirdChoiceContainer {
    display: block;
}
#thirdChoiceContainer.hidden {
    display: none;
}


.form-step input,
.form-step select {
  width: 100%;
  padding: 10px;
  margin: 8px 0 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.form-step select option {
  background-color: #333;
  color: white;
}

.btn-container {
  display: flex;
  justify-content: space-between;
}

    #req{
        color: red;
    }

button {
  padding: 10px 20px;
  border: none;
  background: #0b6623;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  opacity: 0.9;
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}


.success-message {
  text-align: center;
  color: #0b6623;
  font-size: 18px;
  font-weight: bold;
}


@media (max-width: 1024px) {
  body {
    padding: 20px;
  }
  .form-container {
    width: 80%;
  }
  .card{
    box-shadow: none;
  }
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }

  .form-container {
    width: 100%;
    padding: 20px;
  }

  .header {
    flex-direction: row;
    text-align: center;
    gap: 10px;
  }

  .header img {
    width: 50px;
    height: 50px;
  }

  .header h2 {
    font-size: 16px;
  }

  button {
    width: 48%;
    font-size: 15px;
  }

    .card{
    box-shadow: none;
  }
}

@media (max-width: 480px) {
  body {
    padding: 10px;
  }

  .form-container {
    width: 100%;
    padding: 15px;
  }

  button {
    width: 100%;
    margin-top: 10px;
  }


  .header h2 {
    font-size: 14px;
  }

    .card{
    box-shadow: none;
  }

    .btn-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.btn-container button {
  width: 48%;
}

.header button{
  width: 28%;
}

#sendCodeBtn{
  width: 15%;
}

.password-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.password-field {
  flex: 1;
}

.password-container {
  position: relative;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.password-container input {
  width: 100%;
  padding: 10px 40px 10px 10px;
  border: none;
  outline: none;
  border-radius: 5px;
}

.password-container button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
}

.toggle-password {
    right: -60px;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}
}

@media (max-width: 768px) {
  .password-row {
    flex-direction: column;
    gap: 10px;
  }
}
/* --- Global layout fix overrides --- */
body {
  padding-left: clamp(12px, 4vw, 80px);
  padding-right: clamp(12px, 4vw, 80px);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.header {
  flex-wrap: wrap;
}

.form-container {
  width: 100%;
}

.password-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.password-field {
  flex: 1;
  min-width: 0;
}

.password-container {
  position: relative;
}

.password-container input {
  width: 100%;
}

.toggle-password {
  right: 10px;
}

@media (max-width: 768px) {
  .password-row {
    flex-direction: column;
    gap: 10px;
  }

  .btn-container {
    flex-wrap: wrap;
  }

  .btn-container button {
    width: 100%;
  }
}
