/* FONTS & NORMALIZE */
@font-face {
    font-family: 'Nunito';
    src: url('/themes/prestamosia/static/site/static/fonts/Nunito.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
  }
   
   *,
   *::before,
   *::after {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
   }
   
   html,
   body {
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
     height: 100%;
     scroll-behavior: smooth;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
   }
   
   body {
     line-height: 1.5;
     background-color: #fff;
     color: #0f172a;
   }
   
   ul[role='list'],
   ol[role='list'] {
     list-style: none;
   }
   
   img,
   picture,
   video,
   canvas,
   svg {
     display: block;
     max-width: 100%;
   }
   
   input,
   button,
   textarea,
   select {
     font: inherit;
   }
   
   a {
     text-decoration: none;
     color: inherit;
   }
   
   
/* REUSABLE */
.container {
  width: 100%;
  padding: 0 16px;
  margin-left: auto;
  margin-right: auto;
}

.primary_button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 56px;
  width: 100%;
  background-color: #DC2626;
  color: #ffffff;
  text-transform: uppercase;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
  transition: background-color 0.3s ease;
  box-shadow: 0px 0px 15px rgba(220, 38, 38, 0.65);
}

/* FIRST SCREEN */
header {
  position: relative;
  z-index: 2;
  padding: 16px 0px;
  background-color: #ffffff;
  box-shadow: 0px 1px 4px rgba(12, 12, 13, 0.05), 0px 1px 4px rgba(12, 12, 13, 0.1);
}

.header_wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header_logo {
  height: 24px;
}

.header_actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header_button {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0px 24px;
  background-color: #172554;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  text-align: center;
  font-weight: 700;
  transition: background-color 0.3s ease, border 0.3s ease;
}

.header_button-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  border-radius: 8px;
  border: 1px solid #172554;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

.firstcreen_photo {
  display: none;
}

.firstscreen {
background-color: #EFF1F6;
padding-bottom: 36px;
}

.firstscreen_hero {
  position: relative;
  height: 192px;
}

.firstscreen_hero_img {
  height: 192px;
  position: absolute;
  top: 0;
  left: -16px;
  z-index: 0;
}

.firstscreen_hero_desk {
  display: none;
}

.firstscreen_heading_wrapper {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-top: 24px;
}

.firstscreen_heading {
position: relative;
z-index: 2;
font-size: 20px;
line-height: 24px;
font-weight: 800;
color: #172554;
}

.firstscreen_subheading_wrapper {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  padding-top: 8px;
  z-index: 2;
  height: 98px;
  background-color: rgba(23, 27, 84, 0.8);
}

.firstscreen_subheading {
font-size: 16px;
line-height: 24px;
color: #FFFFFF;
text-align: center;
}

.calculator {
  position: relative!important;
  z-index: 3!important;
  margin-top: -32px!important;
}

/* STEPS */
.steps {
  background-color: #EFF1F6;
  padding-bottom: 40px;
}

.steps_heading {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 24px;
  line-height: 28px;
  font-weight: 800;
  color: #172554;
}

.steps_items {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.steps_item-single {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid #CBD5E1;
}

.steps_item-single:last-child {
  border-bottom: none;
  padding-bottom: 12px;
}

.steps_item-image {
  height: 48px;
}

.steps_item-heading {
  font-size: 16px;
  line-height: 24px;
  font-weight: 800;
  color: #172554;
}

.steps_item-text {
  font-size: 14px;
  line-height: 20px;
  color: #4B5563;
  font-weight: 500;
}


.steps_button_wrapper {
  margin-top: 20px;
}

/* REVIEWS */
.reviews {
  background-color: #EFF1F6;
}

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

.reviews_heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 24px;
  line-height: 28px;
  font-weight: 800;
  color: #172554;
}

.reviews_heading::after {
  display: block;
  content: '';
  width: 24px;
  height: 24px;
  background-image: url("/themes/prestamosia/static/site/static/img/verification.svg");
}

.reviews_rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.reviews_rating-image {
  height: 170px;
}

.reviews_rating_values {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  align-items: center;
}

.reviews_rating_score {
  font-size: 54px;
  line-height: 54px;
  font-weight: 700;
  color: #172554;
}

.reviews_rating_stars {
  height: 24px;
}

.reviews_rating_description {
  font-size: 14px;
  color: #4B5563;
  font-weight: 550;
}

.reviews_testimonials_wrapper {
  background-color: #ffffff;
  padding: 20px 0px 36px 0px;
  box-shadow: 0px -1px 4px rgba(12, 12, 13, 0.05), 0px -1px 4px rgba(12, 12, 13, 0.1);
}

.testimonials {
  padding-top: 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-left: 16px;
  padding-right: 16px;
  scroll-padding-left: 32px;
}

.testimonials::-webkit-scrollbar {
  display: none;
}

.testimonials_item {
  flex: 0 0 auto;
  width: calc(80vw - 24px);
  scroll-snap-align: start;
  padding: 12px;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #E5E7EB;
}

.testimonials_header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonials_header_avatar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 40px;
  width: 40px;
  border-radius: 9999px;
  color: #ffffff;
  font-size: 20px;
  line-height: 20px;
  font-weight: 700;
}

.testimonials_header_name {
  font-size: 14px;
  font-weight: 700;
}

.testimonials_stars {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0px;
}

.testimonials_header_sum {
  font-size: 14px;
  color: #9CA3AF;
  font-weight: 500;
}

.testimonials_stars_image {
  height: 12px;
}

.testimonials_stars_date {
  font-size: 12px;
  font-weight: 550;
  color: #9CA3AF;
}

.testimonials_text {
  font-size: 14px;
  line-height: 20px;
  font-weight: 550;
}

.testimonials_likes {
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 2px;
}

.testimonials_likes_image {
  height: 20px;
}

.testimonials_likes_counter {
  font-size: 12px;
  padding-top: 2px;
  font-weight: 600;
  color: #757780;
}

/* REQUIREMENTS */
.requirements {
  padding: 36px 0px 40px 0px;
  background-color: #EFF1F5;
}

.requirements_content {
  margin-top: 12px;
}

.requirements_image {
  height: 158px;
  margin: 0 auto;
}

.requirements_heading {
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
  color: #172554;
  margin-bottom: 12px;
}

.requirements_text {
  font-size: 16px;
}

.requirements_list {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-top: 16px;
}

.requirements_bullet {
  padding-top: 3px;
}

.requirements_list_text {
  font-weight: 700;
  color: #172554;
}

/* FAQ */
.faq_heading {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 24px;
  margin-top: 24px;
}

.faq {
  background-color: #ffffff;
  box-shadow: 0px 4px 4px rgba(12, 12, 13, 0.05), 0px 0px 32px rgba(12, 12, 13, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.faq_item {
  border-bottom: 1px solid #E5E7EB;
}

.faq_item:last-child {
border-bottom: none;
}

.faq_question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 16px;
  width: 100%;
  color: #172554;
  transition: color 0.3s ease;
  text-align: left;
  transition: color 0.3s ease;
}

.faq_icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq_answer {
  max-height: 0;
  overflow: hidden;
  background-color: #F9FAFB;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.3s ease;
  padding: 0px 16px;
  opacity: 0;
}

.faq_item.open .faq_answer {
  max-height: 500px;
  opacity: 1;
  padding: 16px;
  border-top: 1px solid #E5E7EB;
}

.faq_item.open .faq_icon {
  content: url("/themes/prestamosia/static/site/static/img/plus_filled.svg");
}

/* LEGAL TEXT */
.legal_text {
  padding: 32px 0px;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
  color: #4B5563;
}

/* FOOTER */
footer {
  padding: 24px 0px;
  background-color: #F3F4F6;
}

.footer_logo {
  margin: 0 auto;
}

.footer_links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.footer_link {
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #9ca3af;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.3s ease;
}

.copyright {
  padding-top: 24px;
  font-size: 14px;
  text-align: center;
  color: #4b5563;
}

/* Tablet S */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  .testimonials_item {
    width: calc(45vw - 24px);
  }
  .firstscreen_hero_img {
    left: -10%
  }
  .firstscreen_heading_wrapper {
    justify-content: center;
  }
  .firstscreen_heading {
    font-size: 24px;
    line-height: 28px;
  }
}

/* Tablet M */
@media (min-width: 640px) {
  .container {
    max-width: 600px;
  }
  .testimonials_item {
    width: calc(40vw - 24px);
  }
  .steps_button_wrapper {
    display: flex;
    justify-content: center;
  }
  .primary_button {
    width: fit-content;
    padding: 0px 80px;
  }
}

/* Tablet L */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  .firstscreen {
    padding-bottom: 40px;
  }
  .steps_items {
    padding-top: 40px;
  }
  .steps_item-single {
    align-items: center;
  }
  .steps_item_bottom {
    text-align: center;
  }
  .steps_item-heading {
    font-size: 18px;
  }
  .steps_item-counter {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
  }
  .steps_button_wrapper {
    margin-top: 32px;
  }
}

/* Laptop */
@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
  .calculator {
    margin-top: 0px;
  }
  .firstscreen {
    position: relative;
    padding-bottom: 0px;
    overflow: hidden;
    border-bottom: 4px solid #ffffff;
  }
  .first_screenwrapper {
    display: flex;
    justify-content: space-between;
    padding: 64px 0px;
  }
  .firstscreen_hero {
    position: static;
    height: auto;
  }
  .firstscreen_subheading_wrapper {
    position: static;
    background: none;
    width: 100%;
    transform: none;
  }
  .firstscreen_heading_wrapper {
    padding-top: 0px;
  }
  .firstscreen_heading {
    font-size: 56px;
    line-height: 64px;
    margin-bottom: 8px;
  }
  .firstscreen_subheading {
    font-size: 20px;
    text-align: left;
    color: #172554;
  }
  .firstscreen_hero_img {
    display: none;
  }
  .firstscreen_hero_desk {
    display: block;
    position: absolute;
    top: auto;
    bottom: 0;
    left: 15%;
    height: 256px;
  }
  .steps {
    padding-top: 40px;
  }
  .steps_heading {
    font-size: 32px;
    line-height: 38px;
  }
  .steps_items {
    flex-direction: row;
    padding-top: 40px;
  }
  .steps_item-single {
    text-align: center;
    border-bottom: 0px;
  }
  .reviews {
    padding: 40px 0px;
  }
  .testimonials {
    max-width: 960px;
    margin: auto auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow: visible;
    padding-top: 40px;
  }
  .testimonials_item {
    width: 100%;
  }
  .requirements {
    padding-top: 0px;
  }
  .reqirements_wrapper {
    display: flex;
    align-items: center;
    gap: 56px;
  }
  .requirements_heading {
    font-size: 32px;
    line-height: 40px;
  }
  .requirements_content {
    margin-top: 0px;
    max-width: 50%;
  }
  .requirements_image {
    height: 320px;
  }
  .is--2nd {
    justify-content: flex-start;
  }
  .faq_heading {
    font-size: 32px;
    line-height: 40px;
    margin-bottom: 32px;
    margin-top: 40px;
  }
  .faq {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto auto;
  }
}

/* Desktop */
@media (min-width: 1280px) {
  .container {
    max-width: 1024px;
  }
  .firstscreen {
    position: relative;
    padding-bottom: 0px;
  }
  .firstscreen_hero_desk {
    display: block;
    position: absolute;
    top: auto;
    bottom: 0;
    left: 20%;
    height: 270px;
  }
}

/* Large Desktop */
@media (min-width: 1440px) {
  .container {
    max-width: 1120px;
  }
  .firstscreen {
    overflow: hidden;
  }
  .steps {
    margin-top: 0px;
    padding-top: 56px;
  }
  .firstscreen::after {
    background-image: url("/themes/prestamosia/static/site/static/img/wave_desktop.svg");
  }
}

/* HOVER EFFECTS */
@media (hover: hover) and (pointer: fine) {
  .primary_button:hover {
    background-color: #ef4444;
  }
  .header_button:hover {
    background-color: #1e3a8a;
  }
  .header_button-icon:hover {
    background-color: #eff6ff;
  }
  .calculator_button:hover {
    background-color: #ef4444;
  }
  .calculator_amount_select:hover {
    background-color: #dbeafe;
}
.calculator_term_select:hover {
    background-color: #dbeafe;
}
.faq_question:hover {
  color: #dc2626;
}
.footer_link:hover {
  text-decoration-color: #dc2626;
}
}
