/* ==========================================
   Form Popup
========================================== */

.fp-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .25s ease, visibility .25s ease;
}

.fp-popup.fp-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.fp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(3px);
}

.fp-modal {
    position: relative;
    z-index: 2;

    width: calc(100% - 32px);
    max-width: 520px;

    background: #fff;
    border-radius: 12px;

    padding: 32px;

    box-shadow:
        0 20px 60px rgba(0,0,0,.25);

    transform: translateY(20px) scale(.96);
    opacity: 0;

    transition: all .25s ease;
}

.fp-popup.fp-open .fp-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.fp-close {

    position: absolute;
    top: 12px;
    right: 12px;

    border: 0!important;

   	background-color: transparent!important;

    cursor: pointer;

    font-size: 28px!important;
    line-height: 1;

    color: #000!important;

    transition: .2s;
	
	padding: 0!important;
}

.fp-close:hover {
   filter: brightness(.95);
}

.fp-field {
    margin-bottom: 18px;
}

.fp-field label {

    display: block;

    margin-bottom: 6px;

    font-size: 14px;

    font-weight: 600;

    color: #222;

}

.fp-field input {

    width: 100%;

    padding: 12px 14px;

    border: 1px solid #DDD;

    border-radius: 8px;

    font-size: 15px;

    transition: .2s;

    outline: none;

    box-sizing: border-box;

}

.fp-field input:focus {

    border-color: #f7c212;

    box-shadow: 0 0 0 4px rgba(247,194,18,.18);

}

#fp-submit {

    width: 100%;

    height: 48px;

    border: none;

    border-radius: 8px;

    background: #f7c212;

    color: #000;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: .25s;

}

#fp-submit:hover {

    filter: brightness(.95);

}

#fp-submit:disabled {

    opacity: .7;

    cursor: not-allowed;

}

/* ==========================================
   Loading
========================================== */

#fp-submit.loading {

    position: relative;

    color: transparent;

}

#fp-submit.loading::after {

    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 18px;
    height: 18px;

    margin-left: -9px;
    margin-top: -9px;

    border-radius: 50%;

    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #FFF;

    animation: fp-spin .8s linear infinite;

}

@keyframes fp-spin {

    to {
        transform: rotate(360deg);
    }

}

/* ==========================================
   Toast
========================================== */

.fp-toast {

    position: fixed;

    top: 24px;
    right: 24px;

    z-index: 9999999;

    min-width: 300px;

    max-width: 420px;

    padding: 16px 20px;

    border-radius: 10px;

    color: #FFF;

    font-weight: 600;

    box-shadow: 0 12px 30px rgba(0,0,0,.2);

    transform: translateX(120%);

    transition: .35s;

}

.fp-toast.show {

    transform: translateX(0);

}

.fp-toast.success {

    background: #16a34a;

}

.fp-toast.error {

    background: #dc2626;

}

/* ==========================================
   Scroll Lock
========================================== */

body.fp-lock {

    overflow: hidden;

}

/* ==========================================
   Mobile
========================================== */

@media (max-width:640px){

    .fp-modal{

        padding:24px;

        width:calc(100% - 20px);

    }

    .fp-toast{

        left:12px;
        right:12px;

        top:12px;

        min-width:auto;

        max-width:none;

    }

}