/* 320px — 480px: Mobile devices 
481px — 768px: iPads, Tablets
769px — 1024px: Small screens, laptops
1025px — 1200px: Desktops, large screens */

/* This page only has styling for laptops and Mobile Devices */

@media only screen and (max-width:768px){

    /* Setting colour and fonts variables */
    :root{
      --blue: #243765;
      --black: #292D36;
      --green: #43AE6D;
      --offwhite: #F6F6F6;
      --white: #FFFFFF; 
      --boxwhite: #EEEEF0;
      --lightgrey: #E0E5F0;
      --grey: #636262;
      --primary-font: 'Lato', sans-serif;
    }

    /* Default Styles */

    header{
      background-color: var(--blue);
      height: 90px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 0 30px;
  }
  
    /* Header Images */
    .logo img,
    .recap img {
        max-height: 5vh;
        max-width: 100%;
        display: block;
    }

    .footer-content{
      width: auto;
      text-align: center;
    }
  
    footer {
      display: flex;
      justify-content: center;
      align-items: center;
      background: var(--black);
      color: white;
      padding: 10px;
      font-size: 90%;
      font-family: var(--primary-font);
      text-align: center;
      height: 90px;
    }

    /* Fonts and headings */
    h1{
      font-size: 30pt;
      font-family: var(--primary-font);
    }
  
    h2{
      font-size: 18pt;
      font-family: var(--primary-font);
    }
    h3{
      font-size: 16pt;
      font-family: var(--primary-font);
      margin: 0;
    }
  
    h4{
      font-size: 14pt;
      font-family: var(--primary-font);
      padding: 5px;
      font-weight: normal;
    }
  
    p{
      font-size: 14pt;
      font-family: var(--primary-font);
      line-height: 1.2;
      margin: 0;
    }

    a {
      color: rgb(0, 0, 0);
    }

    /* Text below the button for all screens */
    .demo-text{
      font-style: italic;
      margin: 10px;
    }
  
    body{
      border: 0;
      font-size: 100%;
      font-family: var(--primary-font);
      margin: 0;
      padding: 0;
      line-height: 1;
      overflow-x: hidden; /* Stops screen moving when dragging the slidersg */
      min-height: 100vh;
    }

    /* Intro styles (Above the container content) */
    .intro{
      padding: 20px;
      display: flex;
      justify-content: space-evenly;
      flex-direction: column;
      align-items: center;
     }

    .intro-dropdown {
      display: flex;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
      line-height: 1;
      }
  
    .intro-dropdown p{
      text-align: center;
      color: var(--grey);
      font-size: 12pt;
    }
      
    /* Dropdown intro chevron styles */
    #myBtn {
        background: "{{ url_for('static', filename='img/chevron.svg') }} no-repeat";  /* Use the downward chevron initially */
        min-height: 35px;
        min-width: 35px;
        background-position: center;
      }

    
    /* Default container wrapper for all screens */
    .default-container-wrapper {
      display: flex;
      flex-direction: column; 
      flex-wrap: wrap;
      align-items: center; /* Center content horizontally */
      justify-content: center; /* Center content vertically */
      min-height: 90vh;
      background: var(--offwhite);
      padding: 20px; 
      margin: 0 auto; 
      align-content: center;
      text-align: center; /* Optional: Center text */
      overflow-x: hidden;
    }
  
    /* Default container (Screens: idv, signing ,payments, congrats, error, form, help) */
    .default-container{
      display: flex;
      flex-direction: column;
      text-align: center; 
      align-items: center;
      justify-content: center;
      max-width: 500px; /* Ensure content doesn't exceed container width */
      box-shadow: 0 1px 10px rgba(25, 25, 25, 0.1);
      padding: 30px 50px;
      border-radius: 10px;
      background-color: var(--white);
      min-height: 400px;
    }

    /* Button used on all screens */
    button{
      display: inline-block;
      cursor: pointer;
      font-size: 14pt;
      min-width: 250px;
      margin: 1em 0;
      font-weight: 500;
      color: var(--white) !important;
      text-align: center !important;
      text-decoration: none;
      background-color: var(--green);
      border: 1px solid var(--green);
      border-radius: 30px;
      height: 45px;
      box-shadow: 0 10px 10px rgba(25, 25, 25, 0.1);
      font-family: var(--primary-font);
    }

  /* Shawdow on button */
  .next-page-button{
    box-shadow: 0 10px 10px rgba(25, 25, 25, 0.1);
  }

  /* Hiding the wallet and calendar icon in mobile view */
  #wallet-icon, #calendar-icon{
    display: none;
  }
  /* Offer Page Styling */
  /* Tooltip icon style */
  .fas.fa-info-circle{
    color: black;  /* D7B354 */
  }
  /* Tooltip Styles */
  .tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
    padding: 2px; 
    font-size: 12pt;
    white-space: normal;
  }
  /* Change icon color to black on hover */
  .tooltip:hover i {
    color: black;
  }

  /* Style for the tooltip text */
  .tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    transform: translateX(-50%);
    background-color: #8AD1A6; /* Lighter background for tooltip information*/
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12pt;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.1s ease,
      transform 0.1s ease,
      visibility 0s 0.1;
    z-index: 1;
    width: 140px;
    white-space: normal;
    margin-left: -20px;
    font-weight: 400;
    pointer-events: none;
  }

  /* Show the tooltip text when hovering */
  .tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: 120%;
  }

  /* Buttons on either side of sliders */
  button.more-months, button.less-months, button.more-amount, button.less-amount{
    align-items: center;
    cursor: pointer;
    font-size: 125%;
    min-width: 35px;
    height: 35px;
    margin: 1em 0.2em;
    /* font-weight: 500; */
    color: var(--lightgrey) !important;
    background-color:  var(--white);
    border: 1px solid var(--lightgrey);
    border-radius: 20px;
  }

  .slider-and-buttons{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    order: 3;
    grid-column: span 2;
  }
  .slider-container .slider {
    margin-bottom: 20px;
    position: relative;
    align-items: center;
    gap:10px;
    display: flex;
    width: 100%; /* Set the slider to take full width of the container */
    max-width: 200px; /* Set a max width for the slider */
    align-items: center;
  }
  .slider-container-wrapper{
    display: grid;
    justify-content: center;
  }

  .slider-label {
    margin-right: 10px;
    text-align: center;
  }

  /* Offer sliders styling and layout */
  #range-slider.slider-container{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 1.5em;
  }

    /* Offer page accept button  */
    input[type="submit"],
    .btn,
    button,
    .btn i {
      -webkit-transition: all 0.3s ease;
      -moz-transition: all 0.3s ease;
      -ms-transition: all 0.3s ease;
      -o-transition: all 0.3s ease;
      transition: all 0.3s ease;
    }
  
    /* Style the slider */
    input[type="range"] {
      -webkit-appearance: none; /* Remove default appearance */
      appearance: none;
      width: 100%; /* Make the slider full width */
      height: 8px; /* Height of the track */
      background: #ddd; /* Default track color (gray for the unfilled part) */
      border-radius: 5px; /* Optional: rounded track corners */
      outline: none; /* Remove default outline */
      transition: background 0.3s ease; /* Smooth transition for background */
    }
  
    /* Change the filled track color dynamically */
    input[type="range"]:focus {
      outline: none;
    }
  

        
  /* Outputs from the slider values */
  .results-container {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .daily-box-wrapper{
    background-color: var(--white);
  }

  .slider-title{
    order: 1; /* Sets the text to be next to the amount in mobile */
    display: flex;
    align-items: flex-start;
    }

  .slider-title h4{
    font-weight: 600;
  }

  .box-title {
    display: flex;
    font-size: 12pt;
    font-weight: bold;
  }

  .advance-title {
    display: flex;
    font-family: var(--primary-font);
    font-size: 12pt;
    font-weight: bold;
  }

  .advance-box{
    background-color: var(--boxwhite);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 2em;
    border-radius: 5px;
    padding: 8px;
    text-align: center;
    align-items: center;
    margin: 0px 10px 10px 10px; /* There is 0px for the top as the daily-payments has a margin on the bottom which creates 2x margin. */
    max-height: 70px;
  }
  .daily-payments {
    background-color: var(--white);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 2em;
    border: 1px solid black;
    border-radius: 5px;
    padding: 8px;
    text-align: center;
    align-items: center;
    margin: 10px;
    max-height: 70px;
  }

  .offer-container{
    display: grid;
    justify-items: center;
    justify-content: center;
    padding: 20px;
    justify-content: center;
    background-color: var(--white);
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 1px 10px rgba(25, 25, 25, 0.1);
  }

  .amount-box, .months-box{
    display: flex;
    align-items: center;
    justify-content: right;
    padding: 10px;
    width: 100%;
    font-size: 16pt; /*Needs to match the advance heading*/
    font-weight: 600;
    order: 2; /* Sets the amunt to be next to the text in mobile */

  }

  .terms-text{
    text-align: left;
    margin-left: 5%;
    margin-top: 10px;
  }
  /* Congrats Icon */
  .img-congrats{
    width: 144px;
    height: 144px;
    padding-bottom: 30px;

  }
  /* Popup Screen Styles (IDV/SUMSUB) */
  /* These screens are used for the idv popup and contracts contact details popup */

  .popup-container-wrapper{
    display: flex;
    flex-direction: column; 
    align-items: center; 
    min-height: 90vh;
    background-color: var(--offwhite);
    padding: 20px; 
    margin: 0 auto; 
    justify-content: center;
  }

  .popup-container {
    text-align: center; /* Optional: Center text */
    box-shadow: 0 1px 10px rgba(25, 25, 25, 0.1);
    min-width: 260px;
    padding: 30px 50px;
    border-radius: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    display: flex;
    max-height: 90%; /* Prevents the popup from becoming too large */
    overflow-y: auto; /* Adds scroll if content exceeds max height */
    z-index: 1000;
  }

  .required-box {
      display:flex;
      align-items:flex-start;
      flex-direction: column;
      padding: 0px 10px;
  }

  .required-box .check-block {
      display: flex;
      align-items: flex-start;
      flex-direction: column;
  }

  .required-box .check-block .check-points {
      gap:5px;
      display: flex;
      flex-direction: row;
      align-items: center;
      text-align:start;
  }

  .id-screen{
    width: 100%;
  }

  /* .main-content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  } */

  /* Images and Icons */
  .img-icons{
    height: 144px;
    width: 144px;
  }

  .img-checked{
    padding:10px;
    }
    
    /* Blur out the background when popup is displayed */
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: block;
      z-index: 101;
      backdrop-filter: blur(2px);
    }
  
    /* Form Page Specific Styles Different to Contracts Page */
    /* Grid styled page */
  
    /* Apply box-sizing to all elements */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }
  
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea {
      width: 100%;
    }
  
    .form-grid .form-item {
      display: flex;
      padding: 6px 7px 6px 12px;
      max-width: 100%;
      margin: 0 0 7px;
      text-align: right;
      border: 1px solid var(--boxwhite);
      align-items: center;
      justify-content: space-between;
    }
  
    .field-title{
      text-align: left;
      padding: 10px;
    }
    .form-item.clicker {
        display: block;
        padding: 0;
        padding-bottom:10px;
        margin-top: 20px !important;
        border-radius: 0px 0px 5px 5px;
      }
  
      .company-form{
        display: flex;
        flex-direction: column;
      }
  
    /* Contracts Page Styles */
  
    .contract-container-wrapper{
      display: flex;
      flex-direction: column; 
      flex-wrap: wrap;
      align-items: center; /* Center content horizontally */
      justify-content: center; /* Center content vertically */
      min-height: 90vh;
      background-color: var(--offwhite);
      padding: 20px; 
      margin: 0 auto; 
      align-content: center;
    }
  
    .contract-container {
      text-align: center; 
      max-width: 100%; /* Ensure content doesn't exceed container width */
      box-shadow: 0 1px 10px rgba(25, 25, 25, 0.1);
      padding: 20px 40px;
      border-radius: 10px;
      background-color: var(--white);
    }

    /* Spacing between the paragraph text and the search bar */
    .contract-component-search{
      margin: 10px;
    }
  
    .input-block{
      border: 1px solid black;
      border-radius: 15px;
      width: 95%;
      height:30px;
      }

  
    ::placeholder {
      color:  #9DAFC2 !important; 
      font-weight: 300;
      opacity: 1; /* By default, browsers like Chrome might reduce the opacity */
    }
      
    input {
      color: black !important;  
      padding-left: 10px;
    }
    input:not(:placeholder-shown) {
      background: var(--boxwhite) !important;        
      border: none;
      padding: 10px;
      font-size: 12pt; /* font size to match the text size */
    }
  
    .text-and-icons{
      display: flex;
      justify-content: space-between; /* Distributes space between text and image */
      align-items: center; /* Aligns items vertically to the center */
    }
    .headings{
      text-align: center;
      font-size: 20pt;
    }
  
  
    /* Range Slider */
  
    .rangeslider,
    .rangeslider__fill {
      display: flex;
      align-items: center;
      border-radius: 15px;
    }
  
    .rangeslider {
      background-color: #BDC9D6;
      border: 1px solid var(--lightgrey);
      position: relative;
    }
  
    .rangeslider--vertical {
      width: 10px;
      min-height: 150px;
      max-height: 100%;
      margin: 0 auto;
    }
  
    .rangeslider--horizontal {
      width: 95%;
      min-height: 10px;
      max-width: 95%;
      margin: 0 auto;
    }
  
    .rangeslider--disabled {
      filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=40);
      opacity: 0.4;
    }
  
    .rangeslider__fill {
      background-color: var(--grey);
      position: absolute;
    }
  
    .rangeslider--vertical .rangeslider__fill {
      bottom: 0;
      width: 100%;
    }
  
    .rangeslider--horizontal .rangeslider__fill {
      left: 0;
      height: 100%;
    }
  
    .rangeslider__handle {
      background: white;
      cursor: pointer;
      display: inline-block;
      width: 34px;
      height: 34px;
      position: absolute;
      background: var(--green);
      -moz-border-radius: 50%;
      -webkit-border-radius: 50%;
      border-radius: 50%;
      box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.25);
    }
  
    .rangeslider__handle:after {
      content: "";
      width: 12px;
      height: 12px;
      position: absolute;
      top: 11px;
      left: 11px;
      z-index: +1;
      background: var(--green);
      -moz-border-radius: 50%;
      -webkit-border-radius: 50%;
      border-radius: 50%;
    }
  
    .rangeslider__handle:active,
    .rangeslider--active .rangeslider__handle {
      background: var(--green);
    }
  
    .rangeslider--vertical .rangeslider__handle {
      left: -12px;
      touch-action: pan-x;
      -ms-touch-action: pan-x;
    }
  
    .rangeslider--horizontal .rangeslider__handle {
      touch-action: pan-y;
      -ms-touch-action: pan-y;
    }
  
    .range-sliders button:hover {
      color: #b9c2d6;
      border-color: #b9c2d6;
    }
  
    .range-sliders button.less-amount,
    .range-sliders button.less-months {
      position: absolute;
      left: 0px;
      top: 35px;
    }
  
    .range-sliders button.more-amount,
    .range-sliders button.more-months {
      position: absolute;
      right: 0px;
      top: 35px;
    }
  
  
    .results {
      display: flex;
      margin: 0 0 22px;
      flex-direction: column;
      grid-column-gap: 4px;
      font-weight: 700;
    }
  
    .results.added {
      grid-template-columns: repeat(4, 1fr);
    }
  
    .results .title {
      font-weight: 700;
      font-size: 14pt;
      padding: 0;
      color: rgb(0, 0, 0);
      line-height: 18px;
    }
  
    .amount-box output:before {
      content: "€";
    }
  
    #monthsOutput:after {
      content: "Months";
      margin-left: 5px;
    }
  
    .results-container .value{
      display: flex;
      justify-content: center;
      background-color: var(--white);
      width:100%;
      padding: 5px;
      border-radius: 5px;
      font-weight: bold;
      }
  
    #estimated_repayment.value, #repayment_percentage.value{
      background-color: var(--boxwhite);
    }
  
    .paragraph-text{
      padding: 10px;
      margin: 10px;
    }

    .block{
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    /* Zoho Sign Page Styles */
    .img-zoho-sign{
      width: 100%;
      height: 300px;
    }
  }
  
  
  /* Laptop size, Desktop size */
  @media only screen and (min-width: 769px) {

    /* Setting colour and fonts variables */
    :root{
      --blue: #243765;
      --black: #292D36;
      --green: #43AE6D;
      --offwhite: #F6F6F6;
      --white: #FFFFFF; 
      --boxwhite: #EEEEF0;
      --lightgrey: #E0E5F0;
      --grey: #636262;
      --primary-font: 'Lato', sans-serif;
    }

    /* Default Styles */
    header{
      border: 0;
      font-size: 100%;
      margin: 0;
      background: var(--blue);
      z-index: 100;
      text-align: left;
      display: flex;
      box-shadow: 0 1px 5px rgb(25 25 25 / 20%);
      height: 90px;
      justify-content: space-between;
      align-items: center;
      padding: 0 30px;    
    }
    
    /* Header Images */
    .logo img,
    .recap img {
        max-height: 5vh;
        max-width: 100%;
        display: block;
    }
  
    footer{
      display: flex;
      justify-content: center;
      align-items: center;
      background: var(--black); 
      color: white;
      padding: 10px;
      font-size: 90%;
      font-family: var(--primary-font);
      text-align: center;
      height: 90px;
    }
  
    /* Fonts and headings */
    h1{
      font-size: 40pt;
      font-family: var(--primary-font);
    }
  
    h2{
      font-size: 20pt;
      font-family: var(--primary-font);
    }
    h3{
      font-size: 18pt;
      font-family: var(--primary-font);
      margin: 0;
    }
  
    h4{
      font-size: 16pt;
      font-family: var(--primary-font);
      padding: 5px;
      font-weight: normal;
    }
  
    p{
      font-size: 14pt;
      font-family: var(--primary-font);
      line-height: 1.2;
      margin: 0;
    }

    a {
      color: rgb(0, 0, 0);
    }

    /* Text below the button for all screens */
    .demo-text{
      font-style: italic;
      margin: 10px;
    }
  
    body{
      border: 0;
      font-size: 100%;
      font-family: var(--primary-font);
      margin: 0;
      padding: 0;
      line-height: 1;
      overflow-x: hidden; /* Stops screen moving when dragging the slidersg */
      min-height: 100vh;
    }
  
    /* Container style for the Congrats */
    .default-container{
      display: flex;
      flex-direction: column;
      text-align: center; 
      align-items: center;
      justify-content: center;
      max-width: 700px; /* Ensure content doesn't exceed container width */
      background-color: white;
      box-shadow: 0 1px 10px rgba(25, 25, 25, 0.1);
      padding: 30px 50px;
      border-radius: 10px;
      box-sizing: border-box; /* Include padding and border in the element's width */
      margin: 0 auto; /* Center horizontally */
      min-height: 400px;
    }
  
    .default-container-wrapper {
      display: flex;
      flex-direction: column; 
      align-items: center; /* Center content horizontally */
      justify-content: center; /* Center content vertically */
      background-color: var(--offwhite);
      padding: 50px; 
      margin: 0 auto; /* Center the container horizontally */
      box-sizing: border-box;
      align-content: center;
      min-height: 90vh;
    }
    
    /* Intro styles (Above the container content) */

    .intro{
      padding: 20px;
      display: flex;
      justify-content: space-evenly;
      flex-direction: column;
      align-items: center;
    }
    .intro-dropdown {
      display: flex;
      flex-wrap: nowrap;
      justify-content: center;
      align-items: center;
      max-width: 700px;
      line-height: 1;
    }
    .intro-dropdown p{
      text-align: center;
      color: var(--grey);
    }
      
    /* Dropdown intro chevron styles */
    #myBtn {
      background: "{{ url_for('static', filename='img/chevron.svg') }} no-repeat";  /* Use the downward chevron initially */
      min-height: 35px;
      min-width: 35px;
      background-position: center;
    }

    /* Button used on all screens */
    button{
      display: inline-block;
      cursor: pointer;
      font-size: 18pt;
      min-width: 300px;
      margin: 1em 0;
      font-weight: 500;
      color: var(--white) !important;
      text-align: center !important;
      text-decoration: none;
      background-color:  var(--green);
      border: 1px solid var(--green);
      border-radius: 30px;
      height: 50px;
      font-family: var(--primary-font);
    }
    .next-page-button{
      box-shadow: 0 10px 10px rgba(25, 25, 25, 0.1);
    }

    /* Offer Page Styles */
    #loading_container{
      width: 700px;
      text-align: center;
    }
  
    .terms-text{
      text-align: left;
      margin-left: 4.5%;
      margin-top: 10px;
    }
  
  
    /* Offer Page Styling */
    .slider-container .slider {
      margin-bottom: 20px;
      align-items: center;
      gap:10px;
      display: flex;
      width: 100%; /* Set the slider to take full width of the container */
      max-width: 200px; /* Set a max width for the slider */
      align-items: center;
    }
    .slider-container-wrapper{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-column-gap: 2em;
      justify-items: stretch;
      position: relative;
    }
  
    .slider-label {
      margin-right: 10px;
      text-align: center;
    }
  
    #range-slider.slider-container{
      display: flex;
      flex-direction: column;
      align-items: center;
    }
  
    .results-container {
      display: flex;
      justify-content: space-between;
      gap: 2em;
      margin: 22px 0px;  }
  
    .advance-box-wrapper {
      display: flex;
      background-color: var(--boxwhite);
      padding: 15px;
      text-align: center;
      border-radius: 5px;
      height: 100px; /* Setting the height to the same as the daily payments box */
      border: 2px solid var(--boxwhite);
      align-items: center;
      width: 50%;
    }
    .daily-box-wrapper{
      display: flex;
      background-color: var(--white);
      border-color: black;
      padding: 15px;
      text-align: center;
      border-radius: 5px;
      height: 100px; /* Setting the height to the same as the daily payments box */
      border: 1px solid black;
      align-items: center;
      width: 50%;
    }
  
    .slider-title{
      display: flex;
      align-items: flex-start;
      justify-content: center;
    }
  
    .slider-title h4{
      font-weight: 600;
    }
    .box-title {
      font-family: var(--primary-font);
      display: flex;
      font-size: 12pt;
      font-weight: bold;
    }
    p.daily-payments{
      line-height: normal;
    }
  
    .advance-title {
      display: flex;
      font-family: var(--primary-font);
      font-size: 12pt;
      font-weight: bold;
    }
  
    .daily-value {
      background-color: var(--boxwhite);
      width:80px;
      padding: 5px;
      border-radius: 5px;
      text-align: center;
    }
    .advance-value{
      background-color: var(--white);
      width:80px;
      border-radius: 5px;
    }
  
    .advance-box{
      background-color: var(--boxwhite);
      padding:8px;
      width: 150px;
      height: 80px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-direction: column;
    }
    .daily-payments {
      background-color: var(--white);
      padding:8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-direction: column;
      text-align: center;
      width: 150px;
      height: 80px;
    }
  
    .offer-container{
      display: grid;
      justify-items: center;
      justify-content: center;
      background-color: var(--white);
      border-radius: 10px;
      max-width: 770px;
      padding: 38px 32px;
      text-align: center;
      box-shadow: 0 1px 10px rgba(25, 25, 25, 0.1);
    }
    .amount-box, .months-box{
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1px solid black;
      padding: 15px;
      width: 100%;
      border-radius: 20px;
      font-size: 18pt;
      font-weight: 600;
      height: 50px;
      gap: 10px;
    }
  
    input[type="submit"],
    .btn,
    button,
    .btn i {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    }
  
    /* Style the slider */
    input[type="range"] {
    -webkit-appearance: none; /* Remove default appearance */
    appearance: none;
    width: 100%; /* Make the slider full width */
    height: 8px; /* Height of the track */
    background: #ddd; /* Default track color (gray for the unfilled part) */
    border-radius: 5px;
    outline: none; /* Remove default outline */
    transition: background 0.3s ease; /* Smooth transition for background */
    }
  
    /* Change the filled track color dynamically */
    input[type="range"]:focus {
    outline: none;
    }
  
    button.more-months, button.less-months, button.more-amount, button.less-amount{
      align-items: center;
      cursor: pointer;
      font-size: 125%;
      min-width: 35px;
      height: 35px;
      margin: 1em 0.2em;
      color: var(--lightgrey) !important;
      background-color:  var(--white);
      border: 1px solid var(--lightgrey);
      border-radius: 20px;
  
    }
  
    .slider-and-buttons{
      display: flex;
      align-items: center;
      justify-content: center;
      width: 334px;
    }
  
    /* Range Slider */
  
    .rangeslider,
    .rangeslider__fill {
      display: flex;
      align-items: center;
      border-radius: 15px;
    }
  
    .rangeslider {
      background-color: #BDC9D6;
      border: 1px solid var(--lightgrey);
      position: relative;
    }
  
    .rangeslider--vertical {
      width: 10px;
      min-height: 150px;
      max-height: 100%;
      margin: 0 auto;
    }
  
    .rangeslider--horizontal {
      width: 95%;
      min-height: 10px;
      max-width: 95%;
      margin: 0 auto;
    }
  
    .rangeslider--disabled {
      filter: progid: DXImageTransform.Microsoft.Alpha(Opacity=40);
      opacity: 0.4;
    }
  
    .rangeslider__fill {
      background-color: var(--grey);
      position: absolute;
    }
  
    .rangeslider--vertical .rangeslider__fill {
      bottom: 0;
      width: 100%;
    }
  
    .rangeslider--horizontal .rangeslider__fill {
      left: 0;
      height: 100%;
    }
  
    .rangeslider__handle {
      background: white;
      cursor: pointer;
      display: inline-block;
      width: 34px;
      height: 34px;
      position: absolute;
      background: var(--green);
      -moz-border-radius: 50%;
      -webkit-border-radius: 50%;
      border-radius: 50%;
      box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.25);
    }
  
    .rangeslider__handle:after {
      content: "";
      width: 12px;
      height: 12px;
      position: absolute;
      top: 11px;
      left: 11px;
      z-index: +1;
      background: var(--green);
      -moz-border-radius: 50%;
      -webkit-border-radius: 50%;
      border-radius: 50%;
    }
  
    .rangeslider__handle:active,
    .rangeslider--active .rangeslider__handle {
      background: var(--green);
    }
  
    .rangeslider--vertical .rangeslider__handle {
      left: -12px;
      touch-action: pan-x;
      -ms-touch-action: pan-x;
    }
  
    .rangeslider--horizontal .rangeslider__handle {
      touch-action: pan-y;
      -ms-touch-action: pan-y;
    }
  
    .range-sliders button:hover {
      color: #b9c2d6;
      border-color: #b9c2d6;
    }
  
    .range-sliders button.less-amount,
    .range-sliders button.less-months {
      position: absolute;
      left: 0px;
      top: 35px;
    }
  
    .range-sliders button.more-amount,
    .range-sliders button.more-months {
      position: absolute;
      right: 0px;
      top: 35px;
    }
  
    .results {
      display: flex;
      margin: 0 0 22px;
      flex-direction: column;
      grid-column-gap: 4px;
      font-weight: 700;
    }
  
    .results.added {
      grid-template-columns: repeat(4, 1fr);
    }
  
    .results .title {
      font-weight: 700;
      font-size: 14pt;
      padding: 0;
      color: rgb(0, 0, 0);
      line-height: 18px;
    }
  
    .amount-box output:before {
      content: "€";
    }
  
    #monthsOutput:after {
      content: "Months";
      margin-left: 5px;
    }
  
    .results-container .value{
      display: flex;
      justify-content: center;
      background-color: var(--white);
      width:100%;
      padding: 5px;
      border-radius: 5px;
      font-weight: bold;
      }
  
    #estimated_repayment.value, #repayment_percentage.value{
      background-color: var(--boxwhite);
    }
  
    /* Tooltip icon styles */
    .fas.fa-info-circle{
      color: black;  /* D7B354 */
    }
      /* Tooltip Styles */
    .tooltip {
      position: relative;
      display: inline-block;
      cursor: pointer;
      padding: 2px; 
      font-size: 12pt;
      white-space: normal;
    }
    /* Change icon color to black on hover */
    .tooltip:hover i {
      color: black;
    }
  
    /* Style for the tooltip text */
    .tooltip::after {
      content: attr(data-tooltip);
      position: absolute;
      left: 50%;
      bottom: 100%; /* initial position */
      transform: translateX(-50%) translateY(10px); /* start 10px lower */
      background-color: #8AD1A6;
      color: white;
      padding: 5px 10px;
      border-radius: 5px;
      font-size: 12pt;
      white-space: normal;
      opacity: 0;
      visibility: hidden;
      transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        visibility 0s 0.3s;
      z-index: 1;
      font-weight: 400;
      pointer-events: none; /* prevent flicker when moving mouse quickly */
      min-width: 140px;
      max-width:180px;
    }
  
    /* Show the tooltip text when hovering */
  .tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
  }

    /* Congrats Icon */
    .img-congrats{
      width: 180px;
      height: 180px;
      padding-bottom: 30px;
    }


    /* Popup Screen Styles (IDV) */
    /* These screens are used for the idv popup and contracts contact details popup */
  
    .popup-container-wrapper{
      display: flex;
      flex-direction: column; 
      align-items: center; /* Center content horizontally */
      min-height:90vh;
      background-color: var(--offwhite);
      padding: 20px; 
      margin: 0 auto; /* Center the container horizontally */
      justify-content: center;
    }
  
    .popup-container {
      text-align: center; 
      box-shadow: 0 1px 10px rgba(25, 25, 25, 0.1);
      padding: 30px 50px;
      border-radius: 10px;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background-color: white;
      width: 600px;
      display: flex;
      z-index: 1000;
      max-height: 90%;
    }
  
    .required-box {
      display:flex;
      align-items:flex-start;
      flex-direction: column;
      padding: 0px 10px 0px 10px;
    }
  
    .required-box .check-block {
      display: flex;
      align-items: flex-start;
      flex-direction: column;
    }
  
    .required-box .check-block .check-points {
      gap:5px;
      display: flex;
      flex-direction: row;
      align-items: center;
      text-align:start;
    }
    .img-checked{
    padding:10px;
    }

    .id-screen{
      width: 100%;
    }
    
    /* .main-content-container {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100%;
    } */
  
    /* Images and Icons */
  .img-icons{
    height: 144px;
    width: 144px;  
  }
   
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: block;
      z-index: 101;
      backdrop-filter: blur(2px);
    }
  
  
    /* Form Page Specific Styles Different to Contracts Page */
    /* Apply box-sizing to all elements */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }
  
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea {
      width: 100%;
    }
  
    .form-grid{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-column-gap: 1.5em;
      grid-row-gap: 1em;
      margin-bottom: 20px;
    }

    .form-item{
      display: flex;
      width: 300px;
      flex-direction: column;
      text-align: left;
    }
  
    .form-item.clicker {
        display: block;
        padding: 0;
        padding-bottom:10px;
        margin-top: 20px !important;
        border-radius: 0px 0px 5px 5px;
      }
  
    .field-title{
      padding: 10px 10px 10px 0px ;
      font-size: 14pt;
    }
    
    .company-form{
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      grid-column-gap: 1.5em;
      grid-row-gap: 1em;
      min-width: 400px;
      }
      .company-form .form-item{
      flex-direction: column;
          padding: 0px 10px;
          margin: 0;
          border: none;
          align-items: flex-start;
      }
  

    /* Contracts Page Styles */
  
    .contract-container-wrapper{
      display: flex;
      flex-direction: column; 
      flex-wrap: wrap;
      align-items: center; /* Center content horizontally */
      justify-content: center; /* Center content vertically */
      min-height: 90vh;
      background-color: var(--offwhite);
      padding: 20px; 
      margin: 0 auto; 
    }
    .contract-container {
      background: white;
      clear: both;
      padding: 20px;
      margin: 10px;
      position: relative;
      box-shadow: 0 1px 10px rgba(25, 25, 25, 0.1);
      border-radius: 10px;
      max-width: 760px;
      min-height:100px;
      display: flex;
      flex-direction:column;
      align-items: center;
    }
    /* .contract-component{
      width: 100%;
      padding: 10px;
      margin:1px;
    } */
  
    .company-search{
      display: flex;
      flex-direction:column;
      align-items: center;
      margin-bottom: 10px;
    }
    /* Spacing between the paragraph text and the search bar */
    .contract-component-search{
      margin: 10px;
    }
  
    .paragraph-text{
      padding: 10px;
      margin: 10px;
    }
    
    .block{
      display: flex;
      flex-direction: column;
      flex: 1;
    }
  
    ::placeholder {
      color:  #9DAFC2 !important; 
      font-weight: 300;
      opacity: 1; /* By default, browsers like Chrome might reduce the opacity */
    }
  
    input {
        color: black !important;
        padding-left: 10px;
    }
    input:not(:placeholder-shown) {
        background: var(--boxwhite) !important;        
        border: none;
        padding: 10px;
        font-size: 12pt; /* font size to match the text size */
        font-family: var(--primary-font);
    }
  
    .text-and-icons{
    display: flex;
    justify-content: space-between; /* Distributes space between text and image */
    align-items: center; /* Aligns items vertically to the center */
    }
  
  
    .address{
    text-align: center;
    }
  
    .headings{
    text-align: center;
    font-size: 20pt;
    }

    /* Zoho Sign Page Styles */
    .img-zoho-sign{
      width: 100%;
      padding: 20px;
    }
  }