@media (max-width: 1600px) {
    :root {
        --max-width: 85%;
    }
}

@media (max-width: 1150px) {
    :root {
        --max-width: 95%;
    }

    .main-nav ul {
        display: none;
    }
    .drawer {
        display: block;
    }
    .hamburger {
        float: right;
        display: inline-block;
    }

    .hero {
        height: auto;
        padding: 30px 0;
    }

    .hero span {
        z-index: 10;
        font-size: 18px;
        flex: none;
        box-sizing: border-box;
        padding: 2em;
        display: block;
        width: 100%;
        transform: unset !important;
    }

    .hero h1 {
        font-size: 1.6em;
    }

    .container {
        display: block;
        z-index: 10;
        flex: none;
    }

    .hero form {
        box-sizing: border-box;
        width: 100%;
        padding: 30px;
        border-left: 4px solid var(--primary-color);
        display: block;
    }

    .logo {
        float: left;
    }

    .left_content,
    .right_content {
        padding: 15px;
    }
}

@media (max-width: 600px) {
    .cards-section {
        flex-direction: column;
        gap: 15px;
    }

    .card {
        width: 100%;
        margin: 15px 0;
    }

    .card-content h3 {
        font-size: 16px;
    }

    .card-content p {
        font-size: 13px;
    }

    .logo img {
        height: 50px;
    }

    .top-bar .left-info {
        display: none;
    }

    .hero span {
        padding: 1em;
    }

    .left_content, .right_content {
        position: relative;
        top: unset;
      }

      button {
        display: block;
        box-sizing: border-box;
        width: 100%;
        margin: 0 0 0.5em 0!important;
      }


      .finance_form {
        position: relative;
        top: 0;
        transition: 1s all;
        left: 0;
        transform: unset;
        background: linear-gradient(to bottom, #f4f4f4, white);
        width: 100%;
        z-index: 1005;
        box-sizing: border-box;
        padding: 15px;
        margin: 0 auto;
        text-align: center;
        clip-path: none;
      }
      .form-row {
        display: block;
        /* gap: 20px; */
      }
      
      .form-group {
        box-sizing: border-box;
        padding: 8px;
        display: block;
        flex: unset;
        width: 100%;
      }
      .close_form {
        display: none;
      }
      .underlay {
        display: none;
      }
      .drawer .material-icons {
        font-size: 12px;
        color: var(--alternate-hover);
        margin-right: 8px;
      }

}
