@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Estilos globais */

body{
    font-family: "montserrat", sans-serif;
    overflow: hidden;
    margin: 0;
}

.page_size{
    display: flex;
}

.form_size{
    display: flex;
    flex-direction: column;
    margin: 50px 0 0 0;
    align-items: center;
}

.result_container, .deduction_container, .effort_rate_container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 35px;
}

.result_item, .deduction_item, .effort_rate_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgb(204, 204, 204);
}

.section_title {
  font-size: 24px;
  background: white;
  text-align: left;
}

.result_item_title{
  font-weight: 600;
  width: 60%;
}

.simulator_result{
  width: 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: aliceblue;
  height: 30px;
}

/* ALERTAS */
#simulator_alert{
  ul{
    background-color: #fff5dd; 
    color: #db7700;
    border: 1px solid #db7700;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    margin: 10px 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
  }
  li{
    list-style: none;
    margin: 15px 0;
  }
}


/* Secção do Formulário */

.questions_form{
  display: flex;
  flex-direction: column;
  margin-bottom: 50px;
  width: 100%;
}


.question_text{
  margin-bottom: 15px;
  position: relative;
}

.submit_btn{
  font-family: "montserrat", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  align-items: center;
  appearance: none;
  background-image: radial-gradient(100% 100% at 100% 0, #5adaff 0, #5468ff 100%);
  border: 0;
  box-shadow: rgba(45, 35, 66, .4) 0 2px 4px,rgba(45, 35, 66, .3) 0 7px 13px -3px,rgba(58, 65, 111, .5) 0 -3px 0 inset;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  line-height: 1;
  list-style: none;
  overflow: hidden;
  padding-left: 16px;
  padding-right: 16px;
  position: relative;
  text-align: left;
  text-decoration: none;
  transition: box-shadow .15s,transform .15s;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  will-change: box-shadow,transform;
  font-size: 15px;
}

.submit_btn:focus {
  box-shadow: #3c4fe0 0 0 0 1.5px inset, rgba(45, 35, 66, .4) 0 2px 4px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset;
}

.submit_btn:hover {
  box-shadow: rgba(45, 35, 66, .4) 0 4px 8px, rgba(45, 35, 66, .3) 0 7px 13px -3px, #3c4fe0 0 -3px 0 inset;
  transform: translateY(-2px);
}

.submit_btn:active {
  box-shadow: #3c4fe0 0 3px 7px inset;
  transform: translateY(2px);
}

.input_text{
  border: 0;
  background: aliceblue;
  height: 30px;
  width: 70px;
  text-align: center;

  &:active{
      border:1px solid;
  }
}



      /* Secção do Rendimento Líquido */

      .income_pos{
        display: flex;
        justify-content: space-evenly;
      }

      .income_result_item{
        display: flex;
        flex-direction: column;
        align-items: center;
        border-bottom: 1px solid rgb(204, 204, 204); /* Same border as table rows */

        .result_item_title{
            display: flex;
            justify-content: center;
        }
      }

      .income_simulator_result{
        background: aliceblue;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 5px;
        width: 200px;
        height: 30px;
      }


      /* Secção de Deduções */

      .calc_title{
        width: 42%;
      }

      .simulator_calc{
        background: white;
        font-size: 12px;
        width: 18%;
      }


      /* Secção de Resultados do Simulador */

      .final_simulator_result{
        background: aliceblue;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 5px;
        width: 100%;
        height: 30px;
      }

      .result_container{
        .result_item_title{
            width: 100%;
        }
      }

      .final_result{

        .income_pos{
          display: flex;
          flex-direction: column;
        }

        .income_result_item:nth-of-type(2) {
          margin-top: 35px; 
        }
      }





/* Responsividade mobile */

@media screen and (max-width: 700px) {
  /* Dispositivos Tablet e mobile */

    .form_size {
        padding: 15px;
    }

    .input_text, .submit_btn {
        font-size: 14px;
    }

    .question_text{
      display: flex;
      justify-content: space-between;

      label{
        font-size: 14px;
        width: 75%;
      }
    }

  .submit_btn {
      width: 100%;
      padding: 12px;
      font-size: 16px;
      margin-top: 15px;
  }

  .section_title {
      font-size: 20px;
      text-align: center;
  }

  .result_item_title, .simulator_result {
      font-size: 14px;
      padding: 10px 0;
      width: 70%;
  }

  .simulator_result {
      width: 22%;
      font-size: 14px;
      padding: 8px 0;
  }

.calc_title{
  width: 55%;
}

.income_result_item{
  margin-bottom: 15px;
}

  .final_simulator_result, .income_simulator_result{
    width: 100%;
  }

  .income_pos{
    flex-direction: column;
  }

  .effort_rate_container{
    .simulator_result{
      width: 90%;
    }
  }
}

@media screen and (max-width: 480px) {
  /* Dispositivos Mobile com ecrãs pequenos */

  .form_size {
      margin: 10px;
      padding: 5px;
  }

  .input_text {
      font-size: 12px;
      padding: 8px;
  }

  .submit_btn {
      font-size: 14px;
      padding: 10px;
  }

  .section_title {
      font-size: 18px;
  }

  .simulator_result {
      font-size: 12px;
  }
}
