:root {
  --primary-100: #0c62d5;
  --primary-80: #357bd8;
  --primary-70: #5c95e1;
  --primary-60: #71a4e8;
  --primary-50: #8ab2e8;
  --primary-40: #a7c2e5;
  --background-color: #ffffff;
  --background-input: #d9d9d9;
  --font-color: #000000;
  --font-regular: "Lato", sans-serif;
  --secundary-100: #001127;
  --secundary-80: #10233a;
  --secundary-70: #172940;
  --secundary-60: #253851;
  --secundary-50: #3d516c;
  --secundary-40: #50627a;
  --incompleta: #a3a3a3;
  --heading-1: 32px;
  --heading-2: 20px;
  --heading-3: 16px;

  --font-texto: 16px;
}

body {
  width: 100%;
  box-sizing: border-box;
}

.switch {
  font-size: 15px;
  position: relative;
  display: inline-block;
  width: 100%;
  height: 3.2em;
  margin-top: -1rem;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background-color);
  color: #000;
  font-weight: 600;
  border-radius: 22px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "Pessoa Fisica";
  height: 100%;
  width: 50.2%;
  left: 0%;
  font-size: 20px;
  border-radius: 18px;
  background-color: var(--primary-100);
  color: var(--background-color);
  display: grid;
  align-content: center;
  justify-content: center;
  box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.2), 0 2px 4px 0 rgba(0, 0, 0, 0.2),
    0 -1px 0 0 rgba(0, 0, 0, 0.1) inset,
    0 -1.31em 1.31em -1.31em rgba(0, 0, 0, 0.3) inset,
    0 0 1px 0 rgba(0, 0, 0, 0.1);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.15);
  transition: 0.3s;
}

.slider:after {
  content: "";
  position: absolute;
  top: -7px;
  left: -7px;
  right: -7px;
  bottom: -7px;
  border-radius: 1.71em;
  background-image: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.06),
    rgba(0, 0, 0, 0.1)
  );
  z-index: -1;
}

.switch input:checked + .slider {
  background-color: var(--background-color);
  color: black;
}

.switch input:checked + .slider:before {
  content: "Pessoa Jurídica";
  transform: translateX(100%);
  color: var(--background-color);
}

.switch input {
  display: none;
}

.error {
  color: red;
}
/* =========================================== */

@media screen and (max-width: 490px) {
  .switch {
    font-size: 15px;
    position: relative;
    display: inline-block;
    width: 90%;
    height: 3.2em;
    margin: 0 5%;
  }

  .error {
    color: red;
  }

  main {
    display: flex;
    flex-direction: column;
  }
  aside {
    width: 100%;
    background-color: var(--primary-100);
    height: 300px;
    padding: 10px;
  }
  section {
    padding: 10px;
    padding-top: 70px;
    width: 100%;
    background-color: var(--secundary-80);
    color: white;
  }
  img {
    width: 70%;
    margin: 10px 15%;
  }

  #aside-img-carro {
    position: relative;
    bottom: 20px;
  }

  #aside-titulo,
  #aside-p {
    color: var(--background-color);
  }

  #aside-titulo {
    width: 100%;
    font-size: 1.1rem;
    text-align: center;
  }

  #aside-p {
    width: 100%;
    text-align: center;
    font-size: 16px;
  }

  /* section */

  .campo-form {
    color: var(--background-color);
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 5px auto;
  }

  .campo-form input:focus {
    border: 2px solid white;
    transition: 1s;
  }

  .campo-form input {
    color: var(--background-color);
    padding: 15px;
    border: 2px solid var(--secundary-40);
    border-radius: 6px;
    background-color: var(--secundary-80);
  }

  /* experiencia */

  #experiencia-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    padding: 0px;
  }

  /* conheceu */

  #conheceu-menu {
    display: flex;
    flex-direction: row;
    justify-content: left;
    width: 100%;
    padding: 0px;
  }

  #btn-enviar {
    background-color: var(--primary-100);
    color: var(--background-color);
    border: transparent;
    border-radius: 12px;
    padding: 15px;
    margin: 0px 20%;
  }

  .loading-button {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .loading {
    border: 4px solid var(--background-color);
    border-top: 4px solid var(--primary-100);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
  }

  .grupoParcelas {
    height: 150px;
  }
}

@media screen and (min-width: 490px) and (max-width: 768px) {
  .switch {
    font-size: 15px;
    position: relative;
    display: inline-block;
    width: 90%;
    height: 3.2em;
    margin: 0 5%;
  }

  .error {
    color: red;
  }

  main {
    display: flex;
    flex-direction: column;
  }
  aside {
    width: 100%;
    background-color: var(--primary-100);
    height: 300px;
    padding: 10px;
  }
  section {
    padding: 10px;
    padding-top: 70px;
    width: 100%;
    background-color: var(--secundary-80);
    color: white;
  }
  img {
    width: 70%;
    margin: 10px 15%;
  }

  #aside-img-carro {
    position: relative;
    bottom: 20px;
  }

  #aside-titulo,
  #aside-p {
    color: var(--background-color);
  }

  #aside-titulo {
    width: 100%;
    font-size: 1.1rem;
    text-align: center;
  }

  #aside-p {
    width: 100%;
    text-align: center;
    font-size: 16px;
  }

  /* section */

  .campo-form {
    color: var(--background-color);
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 5px auto;
  }

  .campo-form input:focus {
    border: 2px solid white;
    transition: 1s;
  }

  .campo-form input {
    color: var(--background-color);
    padding: 15px;
    border: 2px solid var(--secundary-40);
    border-radius: 6px;
    background-color: var(--secundary-80);
  }

  /* experiencia */

  #experiencia-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    padding: 0px;
  }

  /* conheceu */

  #conheceu-menu {
    display: flex;
    flex-direction: row;
    justify-content: left;
    width: 100%;
    padding: 0px;
  }

  #btn-enviar {
    background-color: var(--primary-100);
    color: var(--background-color);
    border: transparent;
    border-radius: 12px;
    padding: 15px;
    margin: 0px 20%;
  }

  .loading-button {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .loading {
    border: 4px solid var(--background-color);
    border-top: 4px solid var(--primary-100);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
  }

}

/* =========================================== */

@media screen and (min-width: 768px) {
  main {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
  }

  /* aside */

  aside {
    width: 40%;
    color: var(--background-color);
    background-color: var(--primary-100);
  }

  #aside-container {
    width: 90%;
    margin: 1em auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

  #aside-img-logo {
    width: 40%;
  }

  #aside-titulo {
    width: 90%;
    font-size: 2.5em;
    font-weight: bold;
  }

  #aside-p {
    font-size: 1.25em;
    width: 90%;
    font-weight: bold;
  }

  #aside-img-carro {
    width: 80%;
    margin: 0 10%;
  }

  /* section */

  section {
    width: 60%;
    color: var(--background-color);
    background-color: var(--secundary-80);
  }

  #section-container {
    width: 80%;
    margin: 1em auto;
    display: flex;
    flex-direction: column;
    gap: 1em;
  }

  .section-subtitulo {
    font-size: 1.5em;
  }

  .section-opcoes {
    margin: auto;
    width: 24%;
    color: var(--background-color);
    padding: 20px 0px;
    border: 2px solid var(--secundary-40);
    border-radius: 6px;
    background-color: var(--secundary-80);
    list-style: none;
    text-align: center;
  }

  .section-opcoes:hover {
    background-color: var(--secundary-40);
    transition: 0.2s;
  }
  /* container input */

  #container-input {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .campo-form {
    color: var(--background-color);
    display: flex;
    flex-direction: column;
    width: 47%;
    margin: 5px auto;
  }

  .campo-form input:focus {
    border: 2px solid white;
    transition: 1s;
  }

  .campo-form input {
    color: var(--background-color);
    padding: 15px;
    border: 2px solid var(--secundary-40);
    border-radius: 6px;
    background-color: var(--secundary-80);
  }

  /* experiencia */

  #experiencia-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    padding: 0px;
  }

  /* conheceu */

  #conheceu-menu {
    display: flex;
    flex-direction: row;
    justify-content: left;
    width: 100%;
    padding: 0px;
  }

  #btn-enviar {
    background-color: var(--primary-100);
    color: var(--background-color);
    border: transparent;
    border-radius: 12px;
    padding: 15px;
  }

  .loading-button {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .loading {
    border: 4px solid var(--background-color);
    border-top: 4px solid var(--primary-100);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
}
