/* VOYOTRIP — THAILAND POPUP */

#vtpg-popup {
    position: fixed;
    inset: 0;
    width: min(800px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f3ef;
    color: #17243a;
    font-family: inherit;
}

#vtpg-popup,
#vtpg-popup * {
    box-sizing: border-box;
}

#vtpg-popup:not([open]) {
    display: none !important;
}

#vtpg-popup::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

#vtpg-popup .vtpg-scroll {
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

#vtpg-popup .vtpg-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

#vtpg-popup .vtpg-image {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

#vtpg-popup .vtpg-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    object-fit: fill;
}

#vtpg-popup .vtpg-content {
    min-width: 0;
    background: #f5f3ef;
}

#vtpg-popup .vtpg-heading {
    padding: 18px 40px 16px;
    text-align: center;
    background:
        linear-gradient(
            rgba(0, 74, 172, 0.90),
            rgba(0, 74, 172, 0.85)
        ),
        url("https://voyotrip.com/wp-content/uploads/2026/11/voyotrip-group-tour.jpeg")
        center 35% / cover;
}

#vtpg-popup #vtpg-title {
    margin: 0 0 12px;
    padding: 0;
    color: #fff;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

#vtpg-popup .vtpg-heading p {
    margin: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

#vtpg-popup .vtpg-body {
    padding: 14px 26px 18px;
}

#vtpg-popup .vtpg-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #0754b4;
    font: 27px/1 Arial, sans-serif;
    box-shadow: none;
    cursor: pointer;
}

#vtpg-popup .vtpg-close:focus-visible {
    outline: 2px solid #0754b4;
    outline-offset: 2px;
}

#vtpg-popup .wpforms-container,
#vtpg-popup .wpforms-form,
#vtpg-popup .wpforms-field-container {
    margin: 0 !important;
    padding: 0 !important;
}

#vtpg-popup .wpforms-field {
    max-width: 100%;
    margin: 0 !important;
    padding: 5px 0 9px !important;
}

#vtpg-popup .wpforms-field-label {
    display: block;
    margin: 0 0 6px !important;
    color: #195b96 !important;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

#vtpg-popup input[type="text"],
#vtpg-popup input[type="tel"],
#vtpg-popup input[type="number"],
#vtpg-popup input[type="email"],
#vtpg-popup select {
    width: 100% !important;
    max-width: 100% !important;
    height: 38px !important;
    min-height: 38px !important;
    border: 1px solid #dedee3 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #17243a !important;
    font-family: inherit;
    font-size: 14px !important;
    box-shadow: none !important;
}

#vtpg-popup .iti {
    width: 100%;
}

#vtpg-popup .wpforms-submit-container {
    margin: 0 !important;
    padding: 10px 0 0 !important;
}

#vtpg-popup button.wpforms-submit {
    display: block;
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: #0b55b3 !important;
    color: #fff !important;
    font-family: inherit;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(0, 74, 172, 0.15);
    cursor: pointer;
}

#vtpg-popup button.wpforms-submit::after {
    content: " →";
    font-size: 20px;
}

#vtpg-popup .vtpg-note {
    position: static;
    margin: 12px 0 0;
    padding: 0;
    color: #171717;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

html.vtpg-scroll-lock {
    overflow: hidden !important;
}

/* Mobile */
@media (max-width: 700px) {
    #vtpg-popup .vtpg-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    #vtpg-popup .vtpg-image img {
        position: static;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    #vtpg-popup .vtpg-heading {
        display: none !important;
    }

    #vtpg-popup .vtpg-body {
        padding: 18px 22px 22px;
    }

    #vtpg-popup input[type="text"],
    #vtpg-popup input[type="tel"],
    #vtpg-popup input[type="number"],
    #vtpg-popup input[type="email"],
    #vtpg-popup select {
        font-size: 16px !important;
    }
}