/*====================================================
POPUP OVERLAY
====================================================*/

.custom-popup-overlay{
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    background: rgba(0,0,0,.7);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 999999;
    overflow-y: auto;
}

.custom-popup-overlay.active{
    opacity: 1;
    visibility: visible;
}

/*====================================================
POPUP
====================================================*/

.custom-popup{
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    transform: translateY(30px);
    transition: .3s;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    box-sizing: border-box;
}

.custom-popup-overlay.active .custom-popup{
    transform: translateY(0);
}

/*====================================================
CLOSE BUTTON
====================================================*/

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: 45px !important;
    line-height: 40px !important;
    color: #000;
    padding: 0 !important;
}

.popup-close:hover{
    color:#000;
}

body.popup-open{
    overflow:hidden;
}

/*====================================================
TYPOGRAPHY
====================================================*/

.speak-founders .mf-input-wrapper,
.sfp-desc p,
.sfp-title{
    margin-bottom:20px;
}

/*====================================================
FORM LAYOUT
====================================================*/

.form-flex{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:20px;
}

.form-flex > *{
    width:100% !important;
    max-width:100% !important;
    min-width:0;
}

/*====================================================
FULL WIDTH FIELDS
Add these classes in Elementor if needed:
message-field
submit-field
full-width
====================================================*/

.form-flex > .message-field,
.form-flex > .submit-field,
.form-flex > .full-width{
    grid-column:1 / -1;
}

/*====================================================
FORM INPUTS
====================================================*/

.form-flex input,
.form-flex textarea,
.form-flex select{
    width:100%;
    box-sizing:border-box;
}

.sfp-title h2 {
    font-size: 28px !important;
    margin-bottom: 10px;
}

.sfp-desc p {
    font-size: 16px !important;
    margin-bottom: 30px;
}

.sfarea textarea{
    height: 130px !important;
}

.sfbtn button.metform-btn.metform-submit-btn {
    color: #fff !important;
    background-color: #10BC69 !important;
    border: 1px solid #10BC69 !important;
    box-shadow: none !important;
}

.sfbtn button.metform-btn.metform-submit-btn:hover{
    color: #10BC69 !important;
    background-color: #fff !important;
    border: 1px solid #10BC69 !important;

}

.form-flex .mf-input,
.sf-msg .mf-input,
.sf-phone .mf-input
{
    background: #fff !important;
    border-radius: 10px !important;
}

span.mf-error-message {
    color: #d82020 !important;
}

/*====================================================
MOBILE
====================================================*/

@media (max-width:767px){

    .custom-popup-overlay{
        align-items:flex-start;
        padding:20px 15px;
    }

    .custom-popup{
        width:100%;
        max-width:100%;
        padding:25px 20px;
        max-height:none;
        margin:20px 0;
    }

    .form-flex{
        grid-template-columns:1fr;
        gap:15px;
    }

    .form-flex > .message-field,
    .form-flex > .submit-field,
    .form-flex > .full-width{
        grid-column:auto;
    }
}