/*!
Theme Name: QA_lendingpage
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: qa_lendingpage
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

QA_lendingpage is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/


/* ================================
   GENERAL
================================ */

.col-n {
    font-size: 50px;
    font-weight: 800;
    color: #0f0f0f82;
}

.col-650 {
    max-width: 330px !important;
}

.col-575 {
    max-width: 575px !important;
}

.col-img-white {
    filter: brightness(0) invert(1) !important;
}


/* ================================
   CONTACT POPUP OVERLAY
================================ */

.contact-popup-overlay {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;

    z-index: 999999;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.contact-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}


/* ================================
   POPUP BOX
================================ */

.contact-popup {
    position: relative;

    width: 100%;
    max-width: 780px;

    height: 90vh;
    max-height: 95vh;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border-radius: 20px;

    overflow: hidden;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);

    transform: translateY(30px) scale(0.96);

    transition: transform 0.3s ease;
}

.contact-popup-overlay.active .contact-popup {
    transform: translateY(0) scale(1);
}


/* ================================
   POPUP HEADER
================================ */

.contact-popup-header {
    flex-shrink: 0;

    padding: 30px 60px 20px 35px;

    text-align: center;

    border-bottom: 1px solid #eeeeee;
}

.popup-small-title {
    display: inline-block;

    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    color: #ed1c24;
}

.contact-popup-header h2 {
    margin: 0 0 8px;

    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;

    color: #111111;
}

.contact-popup-header p {
    max-width: 500px;

    margin: 0 auto;

    font-size: 15px;
    line-height: 1.6;

    color: #666666;
}


/* ================================
   CLOSE BUTTON
================================ */

.contact-popup-close {
    position: absolute;

    top: 16px;
    right: 16px;

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid #eeeeee;
    border-radius: 50%;

    background: #f7f7f7;
    color: #222222;

    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    z-index: 20;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.contact-popup-close:hover {
    background: #ed1c24;

    border-color: #ed1c24;

    color: #ffffff;

    transform: rotate(90deg);

    box-shadow: 0 5px 15px rgba(237, 28, 36, 0.25);
}

.contact-popup-close:active {
    transform: rotate(90deg) scale(0.92);
}

.contact-popup-close:focus {
    outline: none;
}

.contact-popup-close:focus-visible {
    outline: 2px solid #ed1c24;
    outline-offset: 3px;
}


/* ================================
   FORM WRAPPER
================================ */

.contact-form-wrapper {
    flex: 1;

    width: 100%;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 5px 15px 15px;

    -webkit-overflow-scrolling: touch;
}


/* ================================
   FORM IFRAME
================================ */

.contact-form-wrapper iframe {
    display: block;

    width: 100% !important;

    min-width: 0 !important;

    border: none !important;

    border-radius: 8px;
}


/* ================================
   SCROLLBAR
================================ */

.contact-form-wrapper::-webkit-scrollbar {
    width: 6px;
}

.contact-form-wrapper::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.contact-form-wrapper::-webkit-scrollbar-thumb {
    background: #cccccc;

    border-radius: 10px;
}

.contact-form-wrapper::-webkit-scrollbar-thumb:hover {
    background: #ed1c24;
}


/* ================================
   BODY LOCK
================================ */

body.contact-popup-open {
    overflow: hidden;
}


/* ================================
   TABLET
================================ */

@media (min-width: 481px) and (max-width: 767px) {

    .contact-popup-overlay {
        padding: 10px;
    }

    .contact-popup {
        width: 100%;
        max-width: 600px;

        height: 95vh;
        max-height: 95vh;

        border-radius: 16px;
    }

    .contact-popup-header {
        padding: 22px 55px 18px 20px;
    }

    .contact-popup-header h2 {
        font-size: 26px;
    }

    .contact-popup-header p {
        font-size: 14px;
    }

    .contact-form-wrapper {
        height: auto;

        padding: 0 8px 10px;
    }

    .contact-form-wrapper iframe {
        width: 100% !important;

        height: 990px !important;
        min-height: 990px !important;
    }

    .contact-popup-close {
        top: 12px;
        right: 12px;

        width: 34px;
        height: 34px;

        font-size: 20px;
    }
}


/* ================================
   MOBILE
================================ */

@media (max-width: 480px) {

    .contact-popup-overlay {
        align-items: flex-start;

        padding: 8px;
    }

    .contact-popup {
        width: 100%;
        max-width: none;

        height: calc(100vh - 16px);
        max-height: calc(100vh - 16px);

        margin: 0;

        border-radius: 14px;

        display: flex;
        flex-direction: column;
    }


    /* Header */

    .contact-popup-header {
        flex-shrink: 0;

        padding: 22px 50px 15px 18px;
    }

    .popup-small-title {
        margin-bottom: 5px;

        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .contact-popup-header h2 {
        margin-bottom: 5px;

        font-size: 24px;
    }

    .contact-popup-header p {
        font-size: 13px;
        line-height: 1.4;
    }


    /* Close Button */

    .contact-popup-close {
        top: 10px;
        right: 10px;

        width: 34px;
        height: 34px;

        font-size: 20px;
    }


    /* Form */

    .contact-form-wrapper {
        flex: 1;

        width: 100%;

        height: auto;
        min-height: 0;

        overflow-y: auto;
        overflow-x: hidden;

        padding: 0 5px 10px;

        -webkit-overflow-scrolling: touch;
    }


    /* Iframe */

    .contact-form-wrapper iframe {
        display: block;

        width: 100% !important;

        min-width: 0 !important;

        height: 990px !important;
        min-height: 990px !important;

        border: none !important;
    }
}


/* ================================
   VERY SMALL MOBILE
================================ */

@media (max-width: 360px) {

    .contact-popup-overlay {
        padding: 5px;
    }

    .contact-popup {
        height: calc(100vh - 10px);
        max-height: calc(100vh - 10px);

        border-radius: 12px;
    }

    .contact-popup-header {
        padding: 18px 45px 12px 15px;
    }

    .popup-small-title {
        font-size: 9px;
    }

    .contact-popup-header h2 {
        font-size: 21px;
    }

    .contact-popup-header p {
        font-size: 12px;
    }

    .contact-popup-close {
        top: 9px;
        right: 9px;

        width: 32px;
        height: 32px;

        font-size: 19px;
    }

    .contact-form-wrapper {
        padding-left: 2px;
        padding-right: 2px;
    }

    .contact-form-wrapper iframe {
        width: 100% !important;

        height: 990px !important;
        min-height: 990px !important;
    }
}

@media (max-width: 767px) {
    .nav-full-width {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        justify-content: center !important;
        display: flex !important;
    }
    .col-d-none{
        display: none !important;
    }
    .col-575{
        max-width: 100% !important;
    }
    .col-p-0{padding: 0px !important;}
}