/** @format */

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --yellow: #f8d10b;
  --blue: #1392db;
  --blue-drim: #0c74b0;
  --dark: #000;
  --light: #f2f5f9;
  --white: #fff;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.container {
  position: relative;
  max-width: 800px;
  width: 100%;
  border-radius: 6px;
  padding: 30px;
  margin: 0 15px;
  background-color: #fff;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
.container header {
  position: relative;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}
.container header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 3px;
  width: 30px;
  border-radius: 8px;
  background-color: var(--blue);
  margin-left: 5px;
}
.container form {
  position: relative;
  margin-top: 16px;
  min-height: 410px;
  background-color: #fff;
  overflow: hidden;
}
.container form .form {
  position: absolute;
  background-color: #fff;
  transition: 0.3s ease;
}
.container form .form.second {
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
}
form.secActive .form.second {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
form.secActive .form.first {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
}
.container form .title {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 500;
  margin: 6px 0;
  color: #333;
}
.container form .fields {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
form .fields .input-field {
  display: flex;
  width: calc(100% / 2 - 17px);
  flex-direction: column;
  margin: 7px 0;
}
.input-field label {
  font-size: 15px;
  font-weight: 500;
  color: #2e2e2e;
}
.input-field input,
select {
  outline: none;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  border-radius: 5px;
  border: 1px solid #aaa;
  padding: 0 15px;
  height: 42px;
  margin: 8px 0;
}
.input-field input:focus,
.input-field select:focus {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.13);
  border: 1px solid var(--blue);
}
.input-field select,
.input-field input[type="date"] {
  color: #707070;
}
.input-field input[type="date"]:valid {
  color: #333;
}
.container form button,
.backBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 45px;
  max-width: 200px;
  width: 100%;
  border: none;
  outline: none;
  color: #fff;
  border-radius: 5px;
  margin: 25px 0;
  background-color: var(--blue);
  transition: all 0.3s linear;
  cursor: pointer;
}
.container form .btnText {
  font-size: 14px;
  font-weight: 400;
}
form button:hover {
  background-color: var(--blue);
}
form button i,
form .backBtn i {
  margin: 0 6px;
}
form .backBtn i {
  transform: rotate(180deg);
}
form .buttons {
  display: flex;
  align-items: center;
}
form .buttons button,
.backBtn {
  margin-right: 14px;
}

#select {
  background: #fff;
}

#logo {
  width: 40px;
  margin-right: 10px;
}

.nextBtn:hover {
  background-color: var(--blue-drim);
}

header {
  margin-bottom: 30px;
}

header a {
  text-decoration: none;
  color: #333;
}

* {
  box-sizing: border-box;
}

.country-selector {
  position: relative;
  width: 300px;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

input:focus {
  border-color: var(--blue);
}

.country-selector {
  position: relative;
  width: 300px;
}

.drop-down {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  border-top: none;
  background-color: #fff;
  display: none;
  z-index: 1000;
  font-size: 16px;
}

.drop-down div {
  padding: 10px;
  cursor: pointer;
}

.drop-down div:hover {
  background-color: #f0f0f0;
}

.show {
  display: block;
}

#dropdown {
  display: none;
  position: absolute;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #ccc;
  background-color: #fff;
  z-index: 1000;
}
#dropdown.show {
  display: block;
}
#dropdown div {
  padding: 10px;
  cursor: pointer;
}
#dropdown div:hover {
  background-color: #f0f0f0;
}
.country-selector {
  position: relative;
  width: 100%;
}

#btn {
  width: 125px;
  height: 35px;
  position: absolute;
  margin-top: 10px;
}

#btn i {
  margin-left: -5px;
  margin-right: 5px;
}

#back {
  color: #0c74b0;
  float: right;
  position: relative;
  margin-top: 20px;
  margin-right: 2rem;
}

#back a {
  color: #0c74b0;
  text-decoration: none;
  transition: 0.3s;
}

#back a:hover {
  text-decoration: underline;
}

/* new */

form input:hover {
  cursor: default;
}

form .fields .input-field {
  display: flex;
  width: calc(100% / 3 - 17px);
  flex-direction: column;
  margin: 3px 0;
}

form .fields .input-fields {
  display: flex;
  width: calc(100% / 2 - 17px);
  flex-direction: column;
  margin: 7px 0;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

input:focus {
  border-color: var(--blue);
}

@media (max-width: 850px) {
  .container {
    box-shadow: none;
    border: 1px solid rgba(128, 128, 128, 0.254);
    margin-top: -3rem;
  }
  /* #btn{
    width: 100%;
    margin-left: 2rem;
  } */

  .input-field label,
  .input-fields label {
    font-size: 15px;
  }

  body {
    overflow-y: hidden;
  }
  .container header {
    margin-top: 15px;
  }

  #back {
    margin-right: auto;
  }
}

@media (max-width: 850px) and (orientation: landscape) {
  body {
    overflow-y: scroll;
  }
  .container {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 750px) {
  .container form {
    overflow-y: scroll;
  }
  .container form::-webkit-scrollbar {
    display: none;
  }
  form .fields .input-field,
  form .fields .input-fields {
    margin-bottom: 5px;
  }
  form .fields .input-field,
  form .fields .input-fields {
    width: calc(100% / 2 - 15px);
  }

  form input,
  form select {
    width: 100%;
  }
  .input-field label {
    font-size: 15px;
  }
}

@media (max-width: 550px) {
  form .fields .input-field,
  form .fields .input-fields {
    width: 100%;
  }
  .input-field label {
    font-size: 15px;
  }
}
