/* =====================================================
LUMACODING LEAD POPUP
===================================================== */

.lc-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* OPEN STATE */

.lc-popup.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =====================================================
OVERLAY
===================================================== */

.lc-popup-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.76);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


/* =====================================================
POPUP BOX
===================================================== */

.lc-popup-dialog {
    position: relative;
    z-index: 2;

    width: min(100%, 650px);
    max-height: calc(100vh - 48px);
    overflow-y: auto;

    padding: 38px;

    border: 1px solid var(--line, rgba(255,255,255,.12));
    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.015)
        ),
        #0d120d;

    box-shadow:
        0 30px 100px rgba(0,0,0,.55);

    transform: translateY(18px) scale(.98);

    transition:
        transform .25s ease;
}


.lc-popup.is-open .lc-popup-dialog {
    transform: translateY(0) scale(1);
}


/* =====================================================
CLOSE BUTTON
===================================================== */

.lc-popup-close {
    position: absolute;
    top: 16px;
    right: 18px;

    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;

    background: rgba(255,255,255,.04);

    color: #fff;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}


.lc-popup-close:hover {
    background: rgba(255,255,255,.09);
    border-color: var(--lime, #c9ff6a);
    transform: rotate(5deg);
}


/* =====================================================
HEADER
===================================================== */

.lc-popup-header {
    padding-right: 45px;
    margin-bottom: 28px;
}


.lc-popup-eyebrow {
    display: inline-block;

    margin-bottom: 10px;

    color: var(--lime, #c9ff6a);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: .12em;
    text-transform: uppercase;
}


.lc-popup-header h2 {
    margin: 0 0 10px;

    color: #fff;

    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.08;
}


.lc-popup-header p {
    max-width: 520px;

    margin: 0;

    color: rgba(255,255,255,.66);

    font-size: 15px;
    line-height: 1.6;
}


/* =====================================================
FORM
===================================================== */

.lc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 18px;
}


.lc-field {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.lc-field-full {
    grid-column: 1 / -1;
}


.lc-field label {
    color: rgba(255,255,255,.82);

    font-size: 13px;
    font-weight: 600;
}


.lc-field label span {
    color: var(--lime, #c9ff6a);
}


/* =====================================================
INPUTS
===================================================== */

.lc-field input,
.lc-field select,
.lc-field textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;

    outline: none;

    background: rgba(255,255,255,.045);

    color: #fff;

    font: inherit;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.lc-field input,
.lc-field select {
    min-height: 48px;

    padding: 0 14px;
}


.lc-field textarea {
    min-height: 105px;

    padding: 13px 14px;

    resize: vertical;
}


.lc-field input::placeholder,
.lc-field textarea::placeholder {
    color: rgba(255,255,255,.32);
}


.lc-field input:focus,
.lc-field select:focus,
.lc-field textarea:focus {
    border-color: var(--lime, #c9ff6a);

    background: rgba(255,255,255,.065);

    box-shadow:
        0 0 0 3px rgba(201,255,106,.08);
}


/* SELECT DROPDOWN */

.lc-field select option {
    background: #111611;
    color: #fff;
}


/* =====================================================
ERRORS
===================================================== */

.lc-field input.error,
.lc-field select.error,
.lc-field textarea.error {
    border-color: #ff6b6b;
}


.lc-error {
    display: block;

    min-height: 0;

    color: #ff8585;

    font-size: 12px;
    line-height: 1.35;
}


.lc-error:empty {
    display: none;
}


/* =====================================================
FORM MESSAGE
===================================================== */

.lc-form-message {
    display: none;

    margin-top: 18px;
    padding: 12px 14px;

    border-radius: 9px;

    font-size: 13px;
    line-height: 1.5;
}


.lc-form-message.error {
    display: block;

    border: 1px solid rgba(255,107,107,.3);

    background: rgba(255,107,107,.08);

    color: #ffaaaa;
}


.lc-form-message.success {
    display: block;

    border: 1px solid rgba(201,255,106,.25);

    background: rgba(201,255,106,.07);

    color: var(--lime, #c9ff6a);
}


/* =====================================================
SUBMIT BUTTON
===================================================== */

.lc-submit {
    width: 100%;

    margin-top: 22px;

    justify-content: center;

    cursor: pointer;
}


.lc-submit:disabled {
    opacity: .6;
    cursor: wait;
}


/* =====================================================
PRIVACY
===================================================== */

.lc-form-privacy {
    margin: 13px 0 0;

    color: rgba(255,255,255,.42);

    font-size: 11px;
    line-height: 1.5;

    text-align: center;
}


/* =====================================================
HONEYPOT
===================================================== */

.lc-hp-field {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;

    white-space: nowrap !important;
}


/* =====================================================
PREVENT BODY SCROLL
===================================================== */

body.lc-popup-open {
    overflow: hidden;
}


/* =====================================================
MOBILE
===================================================== */

@media (max-width: 650px) {

    .lc-popup {
        padding: 12px;
        align-items: flex-start;

        overflow-y: auto;
    }


    .lc-popup-dialog {
        width: 100%;

        max-height: none;

        margin: 12px 0;

        padding: 28px 20px 24px;

        border-radius: 16px;
    }


    .lc-popup-header {
        padding-right: 35px;

        margin-bottom: 22px;
    }


    .lc-popup-header h2 {
        font-size: 27px;
    }


    .lc-form-grid {
        grid-template-columns: 1fr;

        gap: 15px;
    }


    .lc-field-full {
        grid-column: auto;
    }


    .lc-popup-close {
        top: 12px;
        right: 12px;

        width: 36px;
        height: 36px;

        font-size: 24px;
    }

}
