/* Wagon Tour Enquiry Popup – frontend and Elementor preview */
.wte-root, .wte-root *, .wte-portal-host, .wte-portal-host * { box-sizing: border-box; }
.wte-root.is-headless { display: contents; }
.wte-trigger, .wte-submit, .wte-close {
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}
.wte-trigger {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
    border: 1px solid transparent;
    padding: 12px 16px;
    border-radius: 7px;
    background-color: #b80000;
    color: #fff;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    text-align: center;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.wte-trigger:hover, .wte-trigger:focus-visible { background-color: #900000; color: #fff; }
.wte-trigger-icon { display: inline-flex; align-items: center; justify-content: center; }
.wte-trigger-icon svg { width: 1em; height: 1em; fill: currentColor; }

.wte-portal-host, .wte-portal-shell { display: contents !important; }
.wte-overlay[hidden] { display: none !important; }
.wte-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483000 !important;
    display: grid;
    place-items: center;
    padding: 24px;
    margin: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background-color: rgba(1, 16, 36, .75);
    -webkit-backdrop-filter: blur(9px);
    backdrop-filter: blur(9px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.wte-overlay.is-visible { opacity: 1; visibility: visible; }
.wte-dialog {
    position: relative;
    isolation: isolate;
    margin: auto;
    display: block;
    width: 100%;
    max-width: 520px;
    max-height: calc(100dvh - 48px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid rgba(210, 220, 232, .75);
    border-radius: 20px;
    background-color: #fff;
    box-shadow: 0 28px 75px rgba(0, 21, 44, .24);
    color: #243850;
    transform: translateY(12px) scale(.986);
    transition: transform .2s ease;
}
.wte-overlay.is-visible .wte-dialog { transform: translateY(0) scale(1); }
.wte-dialog-content { padding: 35px 38px; }
.wte-dialog button:focus-visible, .wte-dialog input:focus-visible, .wte-dialog textarea:focus-visible {
    outline: 2px solid #0b5395;
    outline-offset: 2px;
}
.wte-close {
    position: absolute;
    z-index: 1;
    top: 15px;
    right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background-color: #f0f4f8;
    color: #47637f;
    transition: background .2s ease, transform .2s ease;
}
.wte-close:hover { background-color: #e4eaf0; transform: rotate(90deg); }
.wte-eyebrow {
    padding-right: 35px;
    color: #be0000;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.2px;
    line-height: 1.4;
    text-transform: uppercase;
    margin: 0 0 9px;
}
.wte-title {
    margin: 0 35px 10px 0;
    color: #084886;
    font-size: clamp(24px, 4vw, 29px);
    line-height: 1.22;
    font-weight: 700;
    letter-spacing: -.6px;
}
.wte-intro {
    margin: 0 0 20px;
    color: #687688;
    font-size: 13.5px;
    line-height: 1.65;
    font-weight: 400;
}
.wte-selected-tour {
    background-color: #f2f6fa;
    padding: 13px 15px;
    border-radius: 9px;
    margin-bottom: 20px;
    border-left: 3px solid #b80000;
}
.wte-post-label {
    display: block;
    margin: 0 0 5px;
    color: #b80000;
    font-weight: 700;
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.wte-post-title { font-size: 15px; line-height: 1.45; color: #074987; font-weight: 650; }
.wte-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.wte-field { margin: 0; display: flex; flex-direction: column; gap: 7px; }
.wte-label {
    display: block;
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 600;
    color: #183b5d;
}
.wte-required { color: #b80000; }
.wte-input, .wte-dialog .wte-input {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 13px 14px;
    margin: 0;
    min-height: 47px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #1b3550;
    background-color: #fff;
    border: 1px solid #d8e1e9;
    border-radius: 9px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.wte-input::placeholder { color: #97a4b3; opacity: 1; }
.wte-input:focus { border-color: #0b5395; box-shadow: 0 0 0 3px rgba(11, 83, 149, .09); outline: none; }
.wte-dialog textarea.wte-textarea { min-height: 90px; resize: vertical; }
.wte-consent { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: #46566d; line-height: 1.55; cursor: pointer; }
.wte-consent input { width: 15px; height: 15px; margin: 3px 0 0; flex-shrink: 0; accent-color: #084886; }
.wte-submit, .wte-dialog .wte-submit {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 49px;
    padding: 14px 18px;
    color: #fff;
    background-color: #b80000;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    transition: background .2s ease, color .2s ease, opacity .2s ease;
}
.wte-submit:hover { background-color: #970000; color: #fff; }
.wte-submit.is-loading, .wte-submit:disabled { cursor: wait; opacity: .75; }
.wte-submit svg { flex-shrink: 0; }
.wte-status { display: none; margin: 0; padding: 10px 12px; font-size: 13px; line-height: 1.55; border-radius: 7px; }
.wte-status.is-success { display: block; background: #eefbf3; color: #137c46; }
.wte-status.is-error { display: block; background: #fff0f0; color: #b80000; }
.wte-footer-note { margin: 15px 0 0; color: #687688; font-size: 11.5px; line-height: 1.6; text-align: center; }
.wte-honeypot { position: absolute !important; left: -99999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
@media (max-width: 767px) {
    .wte-overlay { padding: 14px; }
    .wte-dialog { max-height: calc(100dvh - 28px); }
    .wte-dialog-content { padding: 27px 21px; }
    .wte-title { font-size: 24px; }
    .wte-close { top: 10px; right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .wte-overlay, .wte-dialog, .wte-trigger, .wte-submit, .wte-close { transition: none !important; }
}
