@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --ff-primary: "Poppins";
  --clr-primary: #051E46;
  --clr-secondary: #0059E0;
  --light-blue: #EEF3FF;
  --dark-blue: #1D1D1B;
  --slider-clr: #E4ECFF;
  --box-shadow: 0 0 15px 0 #97B6FF;
  --divider: 90px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--ff-primary), sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 16px;
  color: var(--clr-primary);
  overflow-x: hidden !important;
  text-wrap: balance;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

a:hover {
  color: #000000;
}

p {
  margin: 0;
}

.bold {
  font-weight: 700;
}

.custom-container {
  --max-width: 1240px;
  --padding: 2rem;
  width: min(var(--max-width), 100% - (2 * var(--padding)));
  margin-inline: auto;
}

.cta {
  display: flex;
  gap: 20px;
  background-color: var(--clr-secondary);
  font-size: 20px;
  color: white;
  font-weight: 600;
  border-radius: 25px;
  border: none;
  padding: 15px 25px;
  transition: scale .3s ease;
}

.cta:hover {
    background-color: var(--clr-primary);
    scale: 1.05;
}

.cta img {
  max-height: 30px;
}

/* hero */
.hero {
  position: relative;
  background: linear-gradient(151deg, #809DA5 20.08%, #A7B6B3 67.76%);
}

.hero::after {
  content: "";
  position: absolute;
    bottom: -245px;
    left: 0;
    width: 100%;
    height: 400px;
  background-image: url('/img/building.png');
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-content {
  padding-top: 80px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.hero-info__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
  max-width: 575px;
}

.hero__wrapper {
  position: relative;
  z-index: 0;
}

.hero__wrapper::before {
  content: "";
  position: absolute;
  top: -115px;
  left: -216px;
  width: 700px;
  height: 700px;
  border-radius: 725px;
  background: #FFF;
  filter: blur(150px);
  opacity: 0.8;
  z-index: -1;
}

.logo {
  z-index: 2;
  margin-bottom: 35px;
}

.hero-info {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.reduzir-prestacao p {
  font-size: 24px;
}

.poupanca {
  margin-bottom: 20px;
}

.poupanca p {
  font-size: 22px;
}

.reduzir-prestacao span {
  color: var(--clr-secondary);
  font-size: 44px;
  line-height: 45px;
}

.poupanca .valor {
  font-size: 100px;
  line-height: 1;
}

.hero .cta {
  margin-bottom: 160px;
}

.form__wrapper {
  width: 100%;
  max-width: 480px;
  z-index: 2;
}

form {
  border-radius: 30px;
  background: #FFF;
  box-shadow: var(--box-shadow);
}

.form__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 55px 40px;
}

.form-title {
  color: var(--clr-secondary);
  font-size: 25px;
  margin-bottom: 30px;
}

.question {
  line-height: 1.2;
  font-size: 18px;
  font-weight: 500;
  text-wrap: auto;
}

/* sliders */
.value-display {
  margin-bottom: 22px;
  border-bottom: 2px solid var(--dark-blue);
  display: flex;
  justify-content: center;
  align-items: center;
}

.value-display img {
  margin-left: 10px;
}

#prestValue {
  color: var(--clr-secondary);
  font-size: 50px;
  line-height: 1;
}

#prestValue:focus-visible {
  outline: none;
}

.form-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  margin-block: 30px;
}

.slider {
  width: 100% !important;
  margin: 10px 0 !important;
  height: auto !important;
}

.slider_values {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 12px;
}

.slider_values p {
  font-size: 14px;
  line-height: 1.1;
}

input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  margin: 10px 0;
  height: 8px;
  border-radius: 15px;
  background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 15px;
  background: linear-gradient(to right, var(--dark-blue) 0%, var(--dark-blue) var(--slider-value, 0%), var(--slider-clr) var(--slider-value, 0%), var(--slider-clr) 100%);
}

input[type=range]::-moz-range-track {
  height: 8px;
  border-radius: 15px;
  background: linear-gradient(to right, var(--dark-blue) 0%, var(--dark-blue) var(--slider-value, 0%), var(--slider-clr) var(--slider-value, 0%), var(--slider-clr) 100%);
}

input[type=range]::-ms-track {
  height: 8px;
  border-radius: 15px;
  background: transparent;
  border: none;
  color: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50px;
  background: var(--clr-secondary);
  border: none;
  cursor: pointer;
  margin-top: -8px;
}

input[type=range]::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50px;
  background: var(--clr-secondary);
  border: none;
  cursor: pointer;
  margin-top: -8px;
}

input[type=range]::-ms-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50px;
  background: var(--clr-secondary);
  border: none;
  cursor: pointer;
  margin-top: -8px;
}

.form-input input {
  width: 100%;
  height: 50px;
  border-radius: 20px;
  border: 2px solid var(--clr-primary);
  font-size: 16px;
  color: var(--clr-primary) !important;
  font-weight: 400 !important;
  padding: 0 20px 0 50px;
  -webkit-appearance: none;
  text-align: left !important;
  margin: 5px auto;
  line-height: 1;
}

.form-input input:focus-visible {
  outline: none !important;
}

::-webkit-input-placeholder {
  color: rgba(0, 0, 0, 0.4);
}

:-moz-placeholder {
  color: rgba(0, 0, 0, 0.4);
  opacity: 1;
}

::-moz-placeholder {
  color: rgba(0, 0, 0, 0.4);
  opacity: 1;
}

:-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.4);
}

::-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.4);
}

::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

.form-input input {
  --icon: url('/img/icons/person_add.svg');
  --icon-error: url('/img/icons/error.svg');
  --icon-valid: url('/img/icons/check.svg');
  background-image: var(--icon);
  background-position: 5% center;
  background-size: 20px;
  background-repeat: no-repeat;
}

.form-input input.error {
  border-color: var(--red);
  background-image: var(--icon), var(--icon-error);
  background-position: 5% center, 96% center;
  background-size: 20px;
  background-repeat: no-repeat;
}

.form-input input.valid {
  border-color: var(--clr-secondary);
  background-image: var(--icon), var(--icon-valid);
  background-position: 5% center, 96% center;
  background-size: 20px;
  background-repeat: no-repeat;
}

.form-check {
  text-align: center;
  padding: 0;
  margin: 5px 0 0 0;
}

.form-check label {
  margin: 0;
  position: relative;
  padding-left: 18px;
  cursor: pointer;
  line-height: 1;
  font-size: 11px;
  font-weight: 300;
}

.form-check input[type=checkbox] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  position: absolute;
  top: -1px;
  left: 0;
  height: 12px;
  width: 12px;
  background-color: transparent;
  border: 1px solid var(--clr-secondary);
  border-radius: 3px;
  padding-right: 5px;
  color: var(--clr-secondary);
}

.form-check input[type=checkbox]:checked+.checkmark::after {
  content: "\2713";
  display: block;
  text-align: center;
  line-height: 12px;
  margin-left: 0px;
  margin-top: 0px;
  font-size: 14px;
}

#politica-link {
  text-decoration: none;
  font-weight: 700;
}

#politica-link:hover {
  color: var(--clr-secondary);
  text-decoration: underline;
}

.hero form .cta {
  margin-bottom: 0;
  gap: 10px;
}

/* solucao credito */
.solucao-credito {
  margin-top: 290px;
}

.solucao-credito .header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.title {
  font-size: 35px;
}

.description {
  font-size: 25px;
}

.solucoes__wrapper {
  margin-top: 50px;
}

.box {
  display: flex;
  align-items: center;
  gap: 30px;
  border-radius: 40px;
  background: #FFF;
  box-shadow: var(--box-shadow);
  padding: 25px 30px;
  margin-block: 20px;
  margin-inline: auto;
  width: 90%;
  transition: transform .3s ease;
}

.box p {
  font-size: 20px;
  line-height: 23px;
}

.box:hover {
    transform: scale(1.05);
}

/* Dots do slider */
.custom-dots,
.custom-dots-reviews {
  text-align: center;
  margin-top: 20px;
}

.custom-dots .slick-dots,
.custom-dots-reviews .slick-dots {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
}

.custom-dots .slick-dots li,
.custom-dots-reviews .slick-dots li {
  margin: 0 5px;
}

.custom-dots .slick-dots li button,
.custom-dots-reviews .slick-dots li button {
  background-color: var(--light-blue);
  border: none;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: block;
  padding: 0;
  cursor: pointer;
  font-size: 0;
  transition: all 0.5s ease;
}

.custom-dots .slick-dots li.slick-active button,
.custom-dots-reviews .slick-dots li.slick-active button {
  background-color: var(--clr-secondary);
}

/* Reviews */
#reviews {
  margin-top: var(--divider);
}

.block__wrapper {
  background-color: var(--light-blue);
  border-radius: 40px;
  padding: 50px;
}

.reviews-slider {
  margin-top: 35px;
}

.review__wrapper .title {
  text-align: center;
}

.review {
  border-radius: 30px;
  background: #FFF;
  box-shadow: var(--box-shadow);
  padding: 25px;
  position: relative;
  margin: 50px 20px 10px;
  transition: transform .3s ease;
  cursor: pointer;
}

.review:hover {
    transform: scale(1.02);
}
.review .person {
  height: 80px;
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
}

.review-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-block: 25px;
}

.review p {
  text-align: center;
  font-size: 16px;
  line-height: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dots-reviews .slick-dots li button {
  background-color: white;
}

/* nossos parceiros */
.nossos-parceiros {
  text-align: center;
  margin-top: var(--divider);
}

.partner-wrapper {
  position: relative;
  overflow: hidden;
  margin-top: 70px;
}

.partner-slider::before,
.partner-slider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 4;
}

.partner-slider::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.partner-slider::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.partner-outer img {
  max-width: 80%;
  margin: 0 auto;
  height: 50px;
  object-fit: contain;
}

/* Google evaluations e Banco Portugal */
.evaluation {
  margin-top: var(--divider);
}

.evaluation__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 10px
}

.evaluation-box {
  border-radius: 30px;
  background: #FFF;
  box-shadow: var(--box-shadow);
  padding: 15px;
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  transition: transform .3s ease
}

.evaluation-box:hover {
    transform: scale(1.05);
}

.evaluation-box .texto h6 {
  font-size: 18px;
  line-height: 1;
}

.evaluation-box .texto p {
  font-size: 13px;
  line-height: 1;
}

.num-avaliacoes {
  color: var(--clr-secondary);
  font-weight: 700;
}

.evaluation-box .stars {
  height: 15px;
}

.banco {
  justify-content: flex-start;
  gap: 15px;
}

.footer__wrapper {
  margin-block: var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.footer__text {
  max-width: 535px;
}

#section-ads {
  text-align: center;
  padding-block: 25px;
  background: #FFF;
  box-shadow: var(--box-shadow);
}

@media (max-width: 1200px) {
  .box {
    gap: 15px;
    height: 120px;
    max-width: 330px;
  }

  .box p {
    font-size: 18px;
  }

  .box img {
    height: 45px;
  }
}

@media (max-width: 991px) {
  .poupanca .valor {
    font-size: 70px;
  }

  .reduzir-prestacao span {
    font-size: 25px;
    line-height: 1.2;
  }

  .reduzir-prestacao p {
    font-size: 18px;
  }

  .poupanca p {
    font-size: 18px;
  }

  .box img {
    height: 45px;
  }

  .evaluation-box .texto h6 {
    font-size: 16px;
    line-height: 1;
  }

  .evaluation-box .texto p {
    font-size: 11px;
    line-height: 1;
  }

  .evaluation-box .stars {
    height: 10px;
  }
}

@media (max-width: 768px) {
  .cta {
    font-size: 18px;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero .cta {
    margin-bottom: 20px;
  }

  .form__wrapper {
    order: 1;
  }

  .hero__wrapper {
    width: 100%;
    text-align: center;
  }

  .hero__wrapper::before {
    top: -100px;
    left: 0;
    width: 100%;
    height: 700px;
  }

  .hero-info {
    width: 100%;
  }

  .hero-info__wrapper {
    max-width: 100%;
  }

  .hero-info {
    align-items: center;
  }

  .form__wrapper {
    max-width: 100%;
  }

  form {
    max-width: 480px;
    margin-inline: auto;
  }

  .hero-content {
    padding-top: 40px;
  }

  .box {
    height: 105px;
  }

  .title {
    font-size: 28px;
  }

  .description {
    font-size: 20px;
    line-height: 1.2;
  }

  .review {
    max-width: 90%;
    margin-inline: auto;
  }

  .block__wrapper {
    padding: 50px 35px;
  }

  .review__wrapper {
    padding: 50px 35px 25px;
  }

  .evaluation__inner {
    grid-template-columns: 1fr;
  }

  .footer__wrapper {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .custom-container {
    --padding: 20px;
  }

  .cta {
    font-size: 16px;
  }

  .reduzir-prestacao p {
    font-size: 18px;
  }

  .poupanca {
    margin-bottom: 0px;
  }

  .poupanca .valor {
    font-size: 55px;
  }

  .form__inner {
    padding: 40px 30px;
  }

  .form-title {
    font-size: 22px;
    margin-bottom: 20px;
  }

  .question {
    font-size: 16px;
  }

  #prestValue {
    font-size: 40px;
  }

  .box p {
    font-size: 18px;
  }

  .title {
    font-size: 25px;
  }

  .description {
    font-size: 18px;
  }

  .solucoes__wrapper {
    margin-top: 35px;
  }

  .reviews-slider {
    margin-top: 20px;
  }

  .review-body {
    gap: 10px;
    margin-block: 15px;
  }

  .review .person {
    height: 60px;
    top: -30px;
  }

  .review p,
  .review span {
    font-size: 15px;
  }

  .review .stars {
    height: 16px;
  }

  .evaluation-box {
    flex-direction: column;
    text-align: center;
  }

  .evaluation-box .texto h6 {
    margin: 5px;
  }

  .evaluation-box .texto p {
    font-size: 12px;
    line-height: 1.2;
  }

  .google-icon {
    height: 30px;
    margin-bottom: 5px;
  }

  .banco .texto p {
    max-width: 90%;
    margin-inline: auto;
  }
}

@media (max-width: 375px) {
  .title {
    font-size: 22px;
  }

  .description {
    font-size: 16px;
  }

  .box p {
    font-size: 16px;
  }
}