
/* ==========================================
   FREE SAMPLE SLIDE POPUP - VGDS
   Font: DM Sans
   Primary: #0067FF
========================================== */

#fs-popup-root,
#fs-popup-root * {
    font-family: 'DM Sans', sans-serif;
    box-sizing: border-box;
}

/* ==========================================
   OVERLAY
========================================== */

.fs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 35, 0.72);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 99998;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.fs-overlay.fs-active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================
   POPUP CONTAINER
========================================== */

.fs-popup {
    position: fixed;
    top: 50%;
    left: 50%;

    width: min(900px, calc(100% - 36px));
    max-height: calc(100vh - 40px);

    overflow-y: auto;
    overflow-x: hidden;

    background: #ffffff;
    border-radius: 18px;

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transform: translate(-50%, -46%);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}

.fs-popup.fs-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%);
}

body.fs-popup-open {
    overflow: hidden;
}

/* ==========================================
   CLOSE BUTTON
========================================== */

.fs-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;

    z-index: 100000 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 2px solid #ffffff !important;
    border-radius: 50% !important;

    background: #0067FF !important;
    color: #ffffff !important;

    font-family: Arial, sans-serif !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    text-align: center !important;
    opacity: 1 !important;
    visibility: visible !important;

    cursor: pointer !important;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2) !important;
    transition: background 0.2s ease;
}

.fs-close:hover {
    background: #0054D1 !important;
    color: #ffffff !important;
}

.fs-close:focus-visible {
    outline: 3px solid #80B8FF !important;
    outline-offset: 3px !important;
}

/* ==========================================
   POPUP GRID
========================================== */

.fs-popup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 510px;
}

/* ==========================================
   LEFT PANEL
========================================== */

.fs-left {
    padding: 55px 42px;

    background: linear-gradient(
        145deg,
        #00324E 0%,
        #000B11 100%
    );

    color: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-radius: 18px 0 0 18px;
}

.fs-eyebrow {
    display: inline-block;

    color: #80B8FF;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;

    margin-bottom: 22px;
}

.fs-left h2 {
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;

    color: #ffffff;

    margin: 0 0 20px;
}

.fs-left h2 span {
    color: #4D9AFF;
}

.fs-left > p {
    font-size: 14px;
    line-height: 1.8;

    color: #d4e0e8;

    margin: 0 0 28px;
}

/* Benefits */

.fs-benefits {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fs-benefit {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 14px;
    font-weight: 500;

    color: #ffffff;
}

.fs-benefit span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;
    min-width: 22px;

    border-radius: 50%;

    background: #0067FF;
    color: #ffffff;

    font-weight: 700;
}

/* Left bottom note */

.fs-note {
    border-left: 3px solid #0067FF;

    padding-left: 14px;
    margin-top: 35px;

    color: #c3d3df;

    font-size: 12px;
    line-height: 1.7;
}

/* ==========================================
   RIGHT PANEL
========================================== */

.fs-right {
    padding: 48px 42px 35px;

    background: #ffffff;

    border-radius: 0 18px 18px 0;
}

.fs-right h3 {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.3;

    color: #10283C;

    margin: 0 0 8px;
}

.fs-form-subtitle {
    font-size: 13px;
    line-height: 1.6;

    color: #75818c;

    margin: 0 0 25px;
}

/* ==========================================
   FORM FIELDS
========================================== */

.fs-field {
    margin-bottom: 17px;
}

.fs-field label {
    display: block;

    font-size: 12px;
    font-weight: 600;

    color: #273B4B;

    margin-bottom: 7px;
}

.fs-field input {
    display: block;

    width: 100%;
    height: 46px;

    padding: 0 13px;

    border: 1px solid #dce2e8;
    border-radius: 7px;

    background: #ffffff;
    color: #152b3d;

    font-size: 13px;
    font-weight: 400;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.fs-field input:focus {
    border-color: #0067FF;

    box-shadow: 0 0 0 3px rgba(0, 103, 255, 0.08);
}

.fs-field input::placeholder {
    color: #a5afb8;
    opacity: 1;
}

/* ==========================================
   PRIVACY CONSENT
========================================== */

.fs-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin: 18px 0;
}

.fs-consent input {
    width: 15px;
    height: 15px;

    margin-top: 3px;

    accent-color: #0067FF;
    flex-shrink: 0;
}

.fs-consent label {
    color: #6b7782;

    font-size: 11px;
    line-height: 1.6;

    cursor: pointer;
}

/* ==========================================
   SUBMIT BUTTON
========================================== */

.fs-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    min-height: 48px;

    padding: 12px 18px;

    border: none;
    border-radius: 7px;

    background: #0067FF;
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.fs-submit:hover {
    background: #0054D1;
    color: #ffffff;
}

.fs-submit:active {
    transform: scale(0.99);
}

.fs-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.fs-submit span {
    font-size: 18px;
}

/* Privacy note */

.fs-privacy-note {
    font-size: 10px;
    line-height: 1.5;

    color: #929ca5;

    text-align: center;

    margin: 12px 0 0;
}

/* Error message */

.fs-error {
    color: #c62828;

    font-size: 12px;
    line-height: 1.5;

    margin-top: 12px;
}

/* ==========================================
   HONEYPOT
========================================== */

.fs-honeypot {
    position: absolute !important;
    left: -9999px !important;

    width: 1px;
    height: 1px;

    overflow: hidden;
}

/* ==========================================
   SUCCESS MESSAGE
========================================== */

.fs-success {
    min-height: 390px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.fs-success[hidden] {
    display: none !important;
}

.fs-success-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e6f7ed;
    color: #168647;

    font-size: 32px;

    margin-bottom: 20px;
}

.fs-success p {
    max-width: 280px;

    color: #75818c;

    font-size: 14px;
    line-height: 1.7;
}

.fs-success button {
    margin-top: 18px;

    padding: 13px 22px;

    border: none;
    border-radius: 7px;

    background: #0067FF;
    color: #ffffff;

    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.fs-success button:hover {
    background: #0054D1;
}

/* ==========================================
   TABLET RESPONSIVE
========================================== */

@media (max-width: 767px) {

    .fs-popup {
        width: calc(100% - 24px);
        max-height: calc(100vh - 24px);
    }

    .fs-popup-content {
        grid-template-columns: 1fr;
    }

    .fs-left {
        padding: 32px 25px;

        border-radius: 18px 18px 0 0;
    }

    .fs-left h2 {
        font-size: 27px;
    }

    .fs-left > p {
        margin-bottom: 18px;
    }

    .fs-benefits {
        gap: 10px;
    }

    .fs-note {
        margin-top: 20px;
    }

    .fs-right {
        padding: 30px 25px;

        border-radius: 0 0 18px 18px;
    }

    .fs-close {
        top: 10px !important;
        right: 10px !important;
    }

    .fs-success {
        min-height: 280px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 380px) {

    .fs-left {
        padding: 28px 20px;
    }

    .fs-right {
        padding: 25px 20px;
    }

    .fs-left h2 {
        font-size: 24px;
    }

    .fs-right h3 {
        font-size: 22px;
    }

}

/* ==========================================
   REDUCED MOTION
========================================== */

@media (prefers-reduced-motion: reduce) {

    .fs-popup,
    .fs-overlay,
    .fs-submit,
    .fs-close {
        transition: none !important;
    }

}
