/* Scoped public Lead Capture popup. Do not change global modal styles. */
#leadCapturePopupRoot.lead-capture-popup-root {
    position: relative;
    z-index: 2147483647;
    isolation: isolate;
    font-size: 16px;
    line-height: 1.45;
    color: #1c1410;
    font-family: 'Poppins', sans-serif;
}
#leadCapturePopupRoot.lead-capture-popup-root *,
#leadCapturePopupRoot.lead-capture-popup-root *::before,
#leadCapturePopupRoot.lead-capture-popup-root *::after {
    box-sizing: border-box;
}
#leadCapturePopupRoot h3,
#leadCapturePopupRoot p,
#leadCapturePopupRoot form,
#leadCapturePopupRoot button,
#leadCapturePopupRoot label,
#leadCapturePopupRoot ul,
#leadCapturePopupRoot li,
#leadCapturePopupRoot input,
#leadCapturePopupRoot select,
#leadCapturePopupRoot textarea,
#leadCapturePopupRoot img {
    float: none;
    max-width: none;
}

#leadCapturePopupRoot.lead-capture-popup-root[hidden]{ display: none !important; }
#leadCapturePopupRoot .lead-capture-popup-overlay{
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
#leadCapturePopupRoot .lead-capture-popup-overlay.is-dark{ background: rgba(18, 14, 12, 0.62); }
#leadCapturePopupRoot .lead-capture-popup-overlay.is-light{ background: rgba(255, 255, 255, 0.55); }
#leadCapturePopupRoot .lead-capture-popup-overlay.is-top{ align-items: flex-start; padding-top: 40px; }
#leadCapturePopupRoot .lead-capture-popup-overlay.is-bottom{ align-items: flex-end; padding-bottom: 40px; }
#leadCapturePopupRoot .lead-capture-popup-overlay.is-left{ justify-content: flex-start; }
#leadCapturePopupRoot .lead-capture-popup-overlay.is-right{ justify-content: flex-end; }

#leadCapturePopupRoot .lead-capture-popup-content{
    position: relative;
    width: 100%;
    max-width: 880px;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 28px 80px rgba(20, 12, 8, 0.32);
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    animation: leadCapturePopupIn 0.28s ease-out;
}

@keyframes leadCapturePopupIn {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#leadCapturePopupRoot .lead-capture-popup-layout{
    display: grid;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
    min-height: 460px;
    max-height: 90vh;
}

#leadCapturePopupRoot .lead-capture-popup-visual{
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #1c1410;
    align-self: stretch;
}
#leadCapturePopupRoot .lead-capture-popup-image{
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
#leadCapturePopupRoot .lead-capture-popup-visual.has-image::after{
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 12, 8, 0.08) 30%, rgba(20, 12, 8, 0.55) 100%);
    pointer-events: none;
}
#leadCapturePopupRoot .lead-capture-popup-visual-fallback{
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(254, 181, 99, 0.45), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(229, 57, 53, 0.28), transparent 48%),
        linear-gradient(160deg, #2b1a14 0%, #5a2e22 42%, #c46a3a 78%, #feb563 100%);
}
#leadCapturePopupRoot .lead-capture-popup-visual-fallback::before{
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.35;
}
#leadCapturePopupRoot .lead-capture-popup-visual-caption{
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 22px;
    z-index: 1;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

#leadCapturePopupRoot .lead-capture-popup-panel{
    display: flex;
    flex-direction: column;
    padding: 32px 36px 28px;
    overflow: auto;
    max-height: 90vh;
    box-sizing: border-box;
}

#leadCapturePopupRoot .lead-capture-popup-close{
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #2c241f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
    line-height: 1;
    padding: 0;
}
.lead-capture-popup-close:hover,
#leadCapturePopupRoot .lead-capture-popup-close:focus{
    background: #1c1410;
    color: #fff;
    outline: none;
}

#leadCapturePopupRoot .lead-capture-popup-kicker{
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c46a3a;
    margin: 0 0 8px;
    text-align: left;
}
#leadCapturePopupRoot .lead-capture-popup-title{
    margin: 0 0 8px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    color: #1c1410;
    text-align: left;
}
.lead-capture-popup-description,
#leadCapturePopupRoot .lead-capture-popup-offer-details{
    margin: 0 0 10px;
    color: #5d534c;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    white-space: pre-wrap;
}
#leadCapturePopupRoot .lead-capture-popup-offer-details{
    color: #6d625a;
    font-size: 13px;
}

#leadCapturePopupRoot .lead-capture-popup-form{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px 12px;
    margin-top: 6px;
}
#leadCapturePopupRoot .lead-capture-popup-form.is-dense{
    grid-template-columns: 1fr 1fr;
}
#leadCapturePopupRoot .lead-capture-popup-form.is-dense .lead-capture-popup-field:nth-child(odd):last-of-type{
    grid-column: 1 / -1;
}
.lead-capture-popup-field.is-full,
#leadCapturePopupRoot .lead-capture-popup-actions{
    grid-column: 1 / -1;
}
#leadCapturePopupRoot .lead-capture-popup-form .lead-capture-popup-field{
    margin-bottom: 0;
    position: relative;
}
#leadCapturePopupRoot .lead-capture-popup-field.is-select-open{
    z-index: 6;
}
#leadCapturePopupRoot .lead-capture-popup-form label{
    display: block;
    font-weight: 600;
    font-size: 12px;
    color: #3a322c;
    margin-bottom: 4px;
}
#leadCapturePopupRoot .lead-capture-popup-req{
    color: #e53935;
    font-weight: 700;
}
.lead-capture-popup-form input[type="text"],
.lead-capture-popup-form input[type="email"],
.lead-capture-popup-form input[type="tel"],
.lead-capture-popup-form input[type="date"],
#leadCapturePopupRoot .lead-capture-popup-form textarea{
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #e4dcd4;
    border-radius: 8px;
    background: #faf7f4;
    font-family: inherit;
    font-size: 14px;
    color: #1c1410;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lead-capture-popup-form input:focus,
#leadCapturePopupRoot .lead-capture-popup-form textarea:focus{
    border-color: #c46a3a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(196, 106, 58, 0.16);
}
#leadCapturePopupRoot .lead-capture-popup-form textarea{ resize: vertical; min-height: 72px; }

#leadCapturePopupRoot .lead-capture-popup-phone-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
#leadCapturePopupRoot .lead-capture-popup-phone-wrap .lead-capture-popup-phone-cc {
    flex: 0 0 70px;
    width: 70px;
    max-width: 70px;
    min-width: 70px;
}
#leadCapturePopupRoot .lead-capture-popup-phone-wrap .lead-capture-popup-phone-input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}
#leadCapturePopupRoot .lead-capture-popup-phone-input.is-invalid {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.14) !important;
}
#leadCapturePopupRoot .lead-capture-popup-select-search-wrap {
    padding: 6px 8px;
    border-bottom: 1px solid #e4dcd4;
    background: #faf7f4;
}
#leadCapturePopupRoot .lead-capture-popup-select-search {
    width: 100%;
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid #e4dcd4;
    border-radius: 6px;
    background: #fff;
    outline: none;
}
#leadCapturePopupRoot .lead-capture-popup-select{
    position: relative;
    width: 100%;
    max-width: 100%;
    z-index: 1;
}
#leadCapturePopupRoot .lead-capture-popup-select.is-open{
    z-index: 8;
}
#leadCapturePopupRoot .lead-capture-popup-select-native{
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
#leadCapturePopupRoot .lead-capture-popup-select-toggle{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 1px solid #e4dcd4;
    border-radius: 8px;
    background: #faf7f4;
    font-family: inherit;
    font-size: 14px;
    color: #1c1410;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lead-capture-popup-select-toggle:focus,
#leadCapturePopupRoot .lead-capture-popup-select.is-open .lead-capture-popup-select-toggle{
    border-color: #c46a3a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(196, 106, 58, 0.16);
}
#leadCapturePopupRoot .lead-capture-popup-select.is-invalid .lead-capture-popup-select-toggle{
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.14);
}
#leadCapturePopupRoot .lead-capture-popup-select-text{
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 8px;
}
#leadCapturePopupRoot .lead-capture-popup-select-text.is-placeholder{
    color: #8a7f76;
}
#leadCapturePopupRoot .lead-capture-popup-select-caret{
    flex: 0 0 auto;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6d625a;
}
#leadCapturePopupRoot .lead-capture-popup-select.is-open .lead-capture-popup-select-caret{
    transform: rotate(180deg);
}
#leadCapturePopupRoot .lead-capture-popup-select-menu{
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #e4dcd4;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(28, 20, 16, 0.16);
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 20;
}
#leadCapturePopupRoot .lead-capture-popup-select.is-up .lead-capture-popup-select-menu{
    top: auto;
    bottom: calc(100% + 4px);
}
#leadCapturePopupRoot .lead-capture-popup-select-option{
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.35;
    color: #1c1410;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lead-capture-popup-select-option:hover,
#leadCapturePopupRoot .lead-capture-popup-select-option:focus{
    background: #faf7f4;
}
#leadCapturePopupRoot .lead-capture-popup-select-option.is-selected{
    background: #f6ebe3;
    font-weight: 600;
}
#leadCapturePopupRoot .lead-capture-popup-select-option.is-placeholder{
    color: #8a7f76;
    font-weight: 400;
}

.lead-capture-popup-radio,
#leadCapturePopupRoot .lead-capture-popup-check{
    display: block;
    font-weight: 400;
    margin: 4px 0;
    color: #3a322c;
}

#leadCapturePopupRoot .lead-capture-popup-message{
    text-align: left;
    margin: 0 0 8px;
    min-height: 0;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 8px;
}
.lead-capture-popup-message.is-error,
#leadCapturePopupRoot .lead-capture-popup-message.is-ok{
    padding: 8px 10px;
    margin-bottom: 10px;
}
#leadCapturePopupRoot .lead-capture-popup-message.is-error{
    color: #922b21;
    background: #fdecea;
}
#leadCapturePopupRoot .lead-capture-popup-message.is-ok{
    color: #196f3d;
    background: #eafaf1;
}

#leadCapturePopupRoot .lead-capture-popup-submit{
    display: block;
    width: 100%;
    border: 0;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    padding: 13px 16px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(196, 106, 58, 0.28);
}
#leadCapturePopupRoot .lead-capture-popup-submit:hover{ filter: brightness(1.05); }
#leadCapturePopupRoot .lead-capture-popup-submit[disabled]{ opacity: 0.7; cursor: default; filter: none; }

#leadCapturePopupRoot .lead-capture-popup-overlay.is-banner .lead-capture-popup-content{
    width: 100%;
    max-width: 980px;
    border-radius: 16px;
}
#leadCapturePopupRoot .lead-capture-popup-overlay.is-slide_in .lead-capture-popup-content{
    max-width: 400px;
}
#leadCapturePopupRoot .lead-capture-popup-overlay.is-slide_in .lead-capture-popup-layout{
    grid-template-columns: 1fr;
    min-height: 0;
}
#leadCapturePopupRoot .lead-capture-popup-overlay.is-slide_in .lead-capture-popup-visual{
    min-height: 150px;
    height: 160px;
    max-height: 160px;
}
#leadCapturePopupRoot .lead-capture-popup-overlay.is-slide_in .lead-capture-popup-panel{
    padding: 22px 22px 20px;
}
#leadCapturePopupRoot .lead-capture-popup-overlay.is-slide_in .lead-capture-popup-form.is-dense{
    grid-template-columns: 1fr;
}

@media (max-width: 767px) {
    #leadCapturePopupRoot .lead-capture-popup-overlay{ padding: 12px; }
    #leadCapturePopupRoot .lead-capture-popup-content{
        max-width: 100%;
        max-height: 92vh;
        border-radius: 16px;
    }
    #leadCapturePopupRoot .lead-capture-popup-layout{
        grid-template-columns: 1fr;
        min-height: 0;
        max-height: 92vh;
    }
    #leadCapturePopupRoot .lead-capture-popup-visual{
        min-height: 168px;
        height: 180px;
        max-height: 180px;
    }
    #leadCapturePopupRoot .lead-capture-popup-panel{
        padding: 20px 18px 18px;
        max-height: none;
    }
    #leadCapturePopupRoot .lead-capture-popup-title{ font-size: 22px; }
    #leadCapturePopupRoot .lead-capture-popup-form.is-dense{ grid-template-columns: 1fr; }
    #leadCapturePopupRoot .lead-capture-popup-close{
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #leadCapturePopupRoot .lead-capture-popup-content{ animation: none; }
}
