



/* ========================================
   FREX WEBSITE - MAIN STYLES
   ======================================== */

/* Import common styles and utilities */
@import url('css/common.css');

/* ========================================
   APP DOWNLOAD MODAL
   ======================================== */
.app-download-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.app-download-modal.active {
  display: flex;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: -1;
}

.app-download-modal .app-download-container {
  position: relative;
  z-index: 1;
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.app-download-modal.active .app-download-container {
  transform: scale(1);
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* ========================================
   HERO SECTION
   ======================================== */
.top-container {
  height: 752px;
  padding: var(--spacing-4xl) var(--spacing-5xl);
  margin-top: 100px;
  width: 100%;
  background: var(--white);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.top-container .content-background {
  width: 100%;
  height: 100%;
  background-image: url('assets/images/Group.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.content-background .left-container {
  width: 548px;
  /* height: 318px; */
  gap: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.top-left-container {
  width: 548px;
  height: 214px;
  gap: var(--spacing-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.top-left-container-text-1 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-5xl);
  line-height: var(--line-height-snug);
  letter-spacing: 2%;
  width: 548px;
  height: 114px;
  margin: 0;
  color: var(--text-primary);
}

.top-left-container-text-2 {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-normal);
  letter-spacing: 2%;
  width: 548px;
  height: 84px;
  margin: 0;
  color: var(--text-secondary);
}

.bottom-left-container {
  width: 190px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--accent-color);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

.bottom-left-container-text {
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  letter-spacing: 0px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.content-background .right-container {
  width: 440px;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-background .right-container img {
  max-width: 100vw;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ========================================
   CONTENT SECTION
   ======================================== */
.content-section {
  height: 512px;
  padding: var(--spacing-4xl) var(--spacing-5xl);
  background: var(--secondary-color);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.content-section-left {
  width: 583px;
  height: 260px;
  gap: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content-section-left-text {
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-snug);
  letter-spacing: 2%;
  width: 583px;
  height: 156px;
  color: var(--white);
}

.content-section-left-button {
  width: 148px;
  height: 56px;
  gap: var(--spacing-lg);
  border-radius: var(--radius-md);
  background: var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-section-left-button-text {
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  letter-spacing: 0px;
  height: 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.content-section-right {
  width: 454px;
  height: 320px;
  border-radius: var(--radius-lg);
  border-width: 3px;
  background: white;
  border: 3px solid var(--White, rgba(255, 255, 255, 1));

  .content-section-right-row {
    /* width: 454px; */
    height: 160px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: self-start;

    .content-section-right-row-image {
      height: 24px;
    }

    .content-section-right-row-image-frex {
      height: 28px;
    }

    .content-section-right-row-container {
      width: 100%;
      height: 59px;
      justify-content: space-between;
      display: flex;
      flex-direction: row;
      align-items: normal;

      .content-section-right-row-container-image {
        width: 96px;
        height: 40px;
      }

      .content-section-right-row-rate-container-text {
        height: 32px;
        font-family: var(--font-family);
        font-weight: 600;
        font-style: var(--font-weight-semibold);
        font-size: 28px;
        line-height: 110%;
        letter-spacing: 4%;
        text-align: right;
        color: var(--text-primary);
      }

      .content-section-right-row-rate-container {
        /* width: 172px; */
        height: 60px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-end;


        .content-section-right-row-rate-container-text-2 {
          height: 20px;
          font-family: var(--font-family);
          font-weight: 500;
          font-style: var(--font-weight-semibold);
          font-size: 14px;
          line-height: 130%;
          letter-spacing: 2%;
          text-align: center;
          color: var(--Red-Semantic, rgba(207, 15, 0, 1));
        }
      }
    }
  }

  .yellow-background {
    background: rgba(255, 233, 0, 1);
    border-radius: var(--radius-lg);
    /* width: 448px; */
    height: 160px;
  }
}

/* ========================================
   RATES SECTION
   ======================================== */
.rates-section {
  height: 584px;
  padding: var(--spacing-4xl) var(--spacing-5xl);
  gap: var(--spacing-3xl);
  background: var(--white);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.rates-section-left {
  width: 340px;
  /* height: 242px; */
  gap: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rates-section-left-top {
  width: 340px;
  /* height: 138px; */
  gap: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rates-section-left-top-text-1 {
  width: max-content;
  /* height: 104px; */
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-snug);
  letter-spacing: 2%;
}

.rates-section-left-top-text-2 {
  font-family: var(--font-family);
  width: 340px;
  height: 26px;
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  letter-spacing: 2%;
}

.rates-section-left-top-text-2-text {
  font-family: var(--font-family);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  letter-spacing: 2%;
}

.rates-section-left-button {
  width: 148px;
  height: 56px;
  gap: var(--spacing-lg);
  border-radius: var(--radius-md);
  background: var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.rates-section-left-button-text {
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  letter-spacing: 0px;
  height: 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.rates-section-right {
  width: 716px;
  height: 392px;
  gap: var(--spacing-md);
}

/* ========================================
   STEPS SECTION
   ======================================== */
.steps-section {
  height: 752px;
  padding: var(--spacing-4xl) var(--spacing-5xl);
  background: var(--bg-screen);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.steps-section-left {
  width: 583px;
  height: 260px;
  gap: var(--spacing-2xl);
  display: flex;
  flex-direction: column;
}

.steps-section-left-text {
  font-family: var(--font-family);
  width: 583px;
  height: 156px;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-snug);
  letter-spacing: 2px !important;
}

.steps-section-left-button {
  width: 148px;
  height: 56px;
  gap: var(--spacing-lg);
  border-radius: var(--radius-md);
  background: var(--accent-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.steps-section-left-button-text {
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  line-height: var(--line-height-relaxed);
  letter-spacing: 0px;
  height: 24px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  margin: 0;
}

.steps-section-right {
  width: 448px;
  height: 560px;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
  height: 626px;
  padding: var(--spacing-4xl) var(--spacing-5xl);
  gap: var(--spacing-2xl);
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.testimonials-section-heading {
  width: 1122px;
  height: 52px;
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-4xl);
  line-height: var(--line-height-snug);
  letter-spacing: 2%;
}

.testimonials-cards {
  width: 1122px;
  height: 334px;
  gap: var(--spacing-lg);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.testimonial-card {
  width: 358px;
  height: 334px;
  gap: var(--spacing-md);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  border-width: 1px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-light);
}

.testimonial-card-image {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
}

.testimonial-card-text {
  width: 294px;
  height: 30px;
  gap: 2px;
  font-family: var(--font-family);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-xl);
  line-height: var(--line-height-tight);
  letter-spacing: 0%;
  text-align: center;
}

.testimonial-card-rating {
  width: 128px;
  height: 24px;
  gap: 2px;
}

.testimonial-card-review {
  width: 294px;
  height: 96px;
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-extra-loose);
  letter-spacing: 0%;
  text-align: center;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1200px) {
  .top-container,
  .content-section,
  .rates-section,
  .steps-section,
  .testimonials-section {
    padding: var(--spacing-4xl) var(--spacing-4xl);
  }
  
  .top-left-container-text-1,
  .top-left-container-text-2 {
    width: 100%;
    max-width: 500px;
  }
  
  .content-section-left-text {
    width: 100%;
    max-width: 500px;
  }
  
  .rates-section-left-top-text-1,
  .rates-section-left-top-text-2 {
    width: 100%;
    max-width: 300px;
  }
  
  .steps-section-left-text {
    width: 100%;
    max-width: 500px;
  }
}

@media (max-width: 768px) {
  .top-container,
  .content-section,
  .rates-section,
  .steps-section,
  .testimonials-section {
    padding: var(--spacing-4xl) var(--spacing-lg);
    flex-direction: column;
    gap: var(--spacing-2xl);
    height: auto;
  }
  
  .top-container {
    margin-top: 64px;
  }

  .content-section-left-button {
    width: 128px !important;
    height: 48px !important;
  }

  .content-section-left-button-text {
    font-size: 14px !important;
  }

  .rates-section-left-button {
    width: 128px !important;
    height: 48px !important;
  }

  .rates-section-left-button-text {
    font-size: 14px !important;
  }

  .steps-section-left-button {
    width: 128px !important;
    height: 48px !important;
  }

  .steps-section-left-button-text {
    font-size: 14px !important;
  }
  
  .content-background {
    gap: var(--spacing-2xl);
  }
  
  .left-container,
  .content-section-left,
  .rates-section-left,
  .steps-section-left {
    width: 100%;
    max-width: 100%;
    height: auto;
    gap: var(--spacing-lg);
  }
  
  .top-left-container {
    width: 100%;
    height: auto;
  }
  
  .top-left-container-text-1,
  .top-left-container-text-2,
  .content-section-left-text,
  .rates-section-left-top-text-1,
  .rates-section-left-top-text-2,
  .steps-section-left-text {
    width: 100%;
    height: auto;
  }
  
  .right-container,
  .content-section-right,
  .rates-section-right,
  .steps-section-right {
    width: 100%;
    max-width: 400px;
    height: auto;
  }
  
  .testimonials-cards {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: var(--spacing-lg);
    height: 348px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0 var(--spacing-lg);
    box-sizing: border-box;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
  }
  
  .testimonials-cards::-webkit-scrollbar {
    display: none; /* WebKit browsers (Chrome, Safari, Edge) */
  }
  
  .testimonial-card {
    width: 300px;
    min-width: 300px;
    height: 334px;
    flex-shrink: 0;
  }
  
  .testimonial-card-review {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .testimonials-section-heading {
    width: 100%;
  }

  .bottom-left-container {
    width: 166px !important;
    height: 48px !important;
    /* padding: 12px 18px !important; */
  }

  .bottom-left-container-text {
    font-size: 14px !important;
  }
}

@media (max-width: 480px) {
  .top-container .content-background {
    flex-direction: column-reverse;
  }

  .rates-section-left {
    gap: var(--spacing-lg);
  }

  .top-container,
  .content-section,
  .rates-section,
  .steps-section,
  .testimonials-section {
    padding: var(--spacing-2xl) var(--spacing-md);
  }
  
  .top-left-container-text-1 {
    font-size: var(--font-size-3xl);
  }
  
  .content-section-left-text,
  .rates-section-left-top-text-1,
  .steps-section-left-text,
  .testimonials-section-heading {
    font-size: var(--font-size-2xl);
  }
  
  .top-left-container-text-2,
  .rates-section-left-top-text-2 {
    font-size: var(--font-size-lg);
  }
}


.rates-section-right-top-container {
  width: 480px;
  /* height: 392px; */
  gap: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  .rates-section-right-container {
    height: 352px;
    border-radius: 12px;
    border-width: 1px;
    background: var(--White, rgba(255, 255, 255, 1));
    border: 1px solid rgba(241, 241, 242, 1);
    box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    .rates-section-right-container-top-row {
      width: 520px !important;
      height: 64px;
      gap: 8px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      border-radius: 8px;
      border-width: 3px;

      background: var(--Secondary-Color, rgba(122, 0, 245, 1));
      border: 3px solid rgba(255, 255, 255, 1);
      box-shadow: 0px 2px 6px 0px rgba(0, 0, 0, 0.24);
    }

    .rates-section-right-container-rows {
      width: 480px;
      height: 64px;
      gap: 8px;
      border-bottom-width: 1px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }

    .rates-section-right-container-headings-row-items {
      height: 44px;
      gap: 4px;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;

      .rates-section-right-container-headings-row-items-text {
        font-family: var(--font-family);
        font-weight: 700;
        font-style: Bold;
        font-size: 16px;
        line-height: 140%;
        letter-spacing: 0px;
        text-align: center;
        vertical-align: middle;
      }

      .rates-section-right-container-headings-row-items-text-secondary {
        font-family: var(--font-family);
        font-weight: 400;
        font-style: Regular;
        font-size: 12px;
        line-height: 130%;
        letter-spacing: 0px;
        text-align: center;
        width: 100%;
      }

      .rates-section-right-container-headings-row-items-text-secondary--align-end {
        text-align: right !important;
      }
    }


    .rates-section-right-container-row-items {
      /* width: 182px; */
      height: 64px;
      padding: 16px 24px;
      gap: 10px;
      text-align: center;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .rates-section-right-container-row-items-text {
      font-family: var(--font-family);
      font-style: SemiBold;
      font-size: 20px;
      line-height: 130%;
      letter-spacing: 2%;
      text-align: center;
      font-weight: 600;
    }

    .rates-section-right-container-row-items-text--white {
      color: var(--White, rgba(255, 255, 255, 1));
    }

    .rates-section-right-container-row-image {
      max-width: 100px !important;
      max-height: 40px !important; /* Add explicit height constraint */
      width: auto !important;
      height: auto !important;
      object-fit: contain !important;
      -webkit-object-fit: contain !important; /* Safari prefix */
      display: block !important;
      flex-shrink: 0 !important; /* Prevent flex shrinking */
      align-self: center !important; /* Center within flex container */
    }

    .row-separator {
      width: 480px;
      height: 0px;
      opacity: 1;
      border-width: 1px;
      border: 1px solid rgba(241, 241, 242, 1)
    }
  
    .rates-section-right-container-headings {
      width: 480px;
      height: 64px;
      gap: 8px;
      border-radius: 8px;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      background: var(--BG-Screen, rgba(247, 248, 249, 1));
      padding: 16px 24px;
    
      .rates-section-right-container-headings-text {
        width: 182px;
        height: 64px;
        padding: 10px 24px;
        gap: 10px;

        font-family: var(--font-family);
        font-weight: 500;
        font-style: Medium;
        font-size: 16px;
        line-height: 130%;
        letter-spacing: 2%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
      }
    }
  }

  .rates-section-right-updated-at-section-text {
    height: 24px;
    font-family: var(--font-family);
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-transform: capitalize;
    color: rgba(112, 112, 123, 1);
  }
}

@media (max-width: 480px) {
  .rates-section-right-container {
    width: 100%;
    height: auto;
  }

  .rates-section-right-container-headings {
    width: 328px !important;
  }

  .rates-section-right-container-rows {
    width: 328px !important;
  }

  .row-separator {
    width: 328px !important;
  }

  .rates-section-right-top-container {
    width: 328px !important;
  }

  .rates-section-right-container-headings {
    height: 64px !important;
    padding: 8px 16px !important;
  }

  .rates-section-right-container-headings-row-items-text {
    font-size: 14px !important;
  }

  .rates-section-right-container-headings-row-items-text-secondary {
    font-size: 10px !important;
  }


  .rates-section-right-top-container .rates-section-right-container .rates-section-right-container-top-row {
    width: 364px !important;
  }  
}

/* Safari flexbox fixes */
.rates-section-right-container-rows {
  -webkit-box-align: center;
  -webkit-box-pack: justify;
}

/* Ensure proper image loading in Safari */
.rates-section-right-container-row-image {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

/* Add these new CSS classes for dynamic coloring */
.content-section-right-row-rate-container-text-2.positive {
  color: #2E7D32 !important; /* Green color for positive differences */
}

.content-section-right-row-rate-container-text-2.negative {
  color: #CF0F00 !important; /* Red color for negative differences */
}

.content-section-right-row-rate-container-text-2.neutral {
  color: var(--text-secondary) !important; /* Neutral color for same values */
}