.lsjb-modal {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lsjb-modal[hidden] {
    display: none;
}

.lsjb-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.lsjb-modal-dialog {
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
    max-width: 720px;
    max-height: calc(100vh - 32px);
    margin: 24px auto;
    padding: 36px 42px;
    overflow: auto;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--lsjb-theme-shadow, 0 16px 100px rgba(164, 169, 183, 0.12));
    color: #213057;
}

.lsjb-modal.is-booking-open {
    box-sizing: border-box;
    padding: 5vh 5vw;
}

.lsjb-modal.is-booking-open .lsjb-modal-dialog {
    display: flex;
    width: 90vw;
    max-width: 1180px;
    height: 90vh;
    max-height: 90vh;
    margin: 0 auto;
    padding: 28px 32px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 24px 90px rgba(25, 37, 67, 0.24);
}

.lsjb-modal-dialog .lsjb-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
}

.lsjb-modal-dialog .lsjb-funnel-shell {
    display: grid;
    justify-items: center;
    width: 100%;
    gap: 18px;
}

.lsjb-modal.is-booking-open .lsjb-funnel-shell {
    grid-template-rows: auto auto minmax(0, 1fr);
    min-height: 0;
}

.lsjb-modal-dialog .lsjb-funnel-brand {
    color: #192543;
    width: 172px;
    line-height: 0;
}

.lsjb-modal-dialog .lsjb-funnel-brand svg {
    display: block;
    width: 100%;
    height: auto;
}

.lsjb-modal-dialog .lsjb-funnel-subtitle,
.lsjb-modal-dialog .lsjb-funnel-lead,
.lsjb-modal-dialog .lsjb-funnel-required-note,
.lsjb-modal-dialog .lsjb-form-status {
    color: #4e535a;
    font-size: 14px;
    line-height: 160%;
}

.lsjb-modal-dialog .lsjb-funnel-lead,
.lsjb-modal-dialog .lsjb-funnel-subtitle {
    margin: 0;
}

.lsjb-modal-dialog .lsjb-funnel-subtitle {
    color: #192543;
    font-size: 18px;
    text-align: center;
}

.lsjb-modal-dialog .lsjb-apply-form {
    display: grid;
    width: 100%;
    gap: 32px;

}

.lsjb-modal-dialog .lsjb-apply-form[hidden] {
    display: none;
}

.lsjb-modal-dialog .lsjb-funnel-screen {
    display: grid;
    width: 100%;
    gap: 14px;
}

.lsjb-modal-dialog .lsjb-funnel-screen h2 {
    margin: 10px 0 0;
    color: #192543;
    font-size: 28px;
    font-weight: 500;
    line-height: 140%;
}

.lsjb-modal-dialog .lsjb-booking-screen {
    display: grid;
    width: 100%;
    gap: 16px;
}

.lsjb-modal.is-booking-open .lsjb-booking-screen {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    min-height: 0;
}

.lsjb-modal-dialog .lsjb-booking-screen[hidden] {
    display: none;
}

.lsjb-modal-dialog .lsjb-booking-screen h2 {
    margin: 10px 0 0;
    color: #192543;
    font-size: 28px;
    font-weight: 500;
    line-height: 140%;
    text-align: center;
}

.lsjb-booking-frame-wrap {
    width: 100%;
    min-height: 640px;
    overflow: hidden;
    border: 1px solid #e6eaf2;
    border-radius: 12px;
    background: #ffffff;
}

.lsjb-modal.is-booking-open .lsjb-booking-frame-wrap {
    min-height: 0;
    height: 100%;
    border-radius: 14px;
}

.lsjb-booking-frame {
    display: block;
    width: 100%;
    min-height: 640px;
    border: 0;
    background: #ffffff;
}

.lsjb-modal.is-booking-open .lsjb-booking-frame {
    min-height: 0;
    height: 100%;
}

.lsjb-booking-fallback {
    justify-self: center;
    color: #336aff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.lsjb-booking-fallback:hover,
.lsjb-booking-fallback:focus {
    text-decoration: underline;
}

.lsjb-modal-dialog .lsjb-funnel-grid {
    width: 100%;
    gap: 12px 16px;
}

.lsjb-modal-dialog .lsjb-funnel-grid-full {
    grid-template-columns: 1fr;
}

.lsjb-modal-dialog .lsjb-form-group {
    position: relative;
    width: 100%;
    display: grid;
    gap: 4px;
}

.lsjb-modal-dialog .lsjb-form-group-full,
.lsjb-modal-dialog .lsjb-form-group-file {
    grid-column: 1 / -1;
}

.lsjb-modal-dialog .lsjb-form-group>label:not(.lsjb-file-button) {
    padding-bottom: 0;
    color: #192543;
    font-size: 14px;
    line-height: 160%;
}

.lsjb-modal-dialog .lsjb-form-group>label span,
.lsjb-modal-dialog .lsjb-funnel-required-note span {
    color: #ff3b30;
}

.lsjb-modal-dialog .lsjb-field[aria-invalid="true"],
.lsjb-modal-dialog .lsjb-field.is-error {
    border-color: red;
}

.lsjb-modal-dialog .lsjb-file-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
    margin: 0;
    padding: 4px 0;
}

.lsjb-modal-dialog .lsjb-file-text {
    display: grid;
    gap: 4px;
    color: #192543;
}

.lsjb-modal-dialog .lsjb-file-text label {
    color: #192543;
    font-size: 14px;
    line-height: 160%;
}

.lsjb-modal-dialog .lsjb-file-text label span {
    color: #ff3b30;
}

.lsjb-modal-dialog .lsjb-file-copy {
    color: #8b929c;
    font-size: 14px;
    line-height: 160%;
}

.lsjb-modal-dialog .lsjb-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    max-width: 100%;
    min-height: 48px;
    padding: 10px 28px;
    border: 1px solid #336aff;
    border-radius: 100px;
    background: #ffffff;
    color: #336aff;
    font-size: 14px;
    line-height: 160%;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.lsjb-modal-dialog .lsjb-file-button:hover,
.lsjb-modal-dialog .lsjb-file-button:focus-visible {
    background: #336aff;
    color: #ffffff;
    outline: none;
}

.lsjb-modal-dialog .lsjb-funnel-actions {
    width: 100%;
    max-width: 100%;
    gap: 14px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;

}

.lsjb-modal-dialog .lsjb-application-terms {

    color: #192543;
    font-size: 14px;
    line-height: 160%;
}

.lsjb-modal-dialog .lsjb-application-terms a {

    color: #336aff;
    box-sizing: border-box;
    transition: 1.1s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    font-size: 14px;
    line-height: 160%;
}

.lsjb-modal-dialog .lsjb-application-terms a:hover,
.lsjb-modal-dialog .lsjb-application-terms a:focus-visible {
    text-decoration: underline;
}

.lsjb-modal-dialog .lsjb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    min-height: 48px;
    padding: 10px 24px;
    border-radius: 100px;
    font-size: 14px;
    line-height: 160%;
    font-weight: 500;
    width: fit-content;
    min-width: 240px;
}

.lsjb-modal-dialog .lsjb-button-accent {
    width: 240px;
    max-width: 100%;
    border-color: #336aff;
    background: #336aff;
    color: #ffffff;
}

.lsjb-modal-dialog .lsjb-button-accent:hover,
.lsjb-modal-dialog .lsjb-button-accent:focus-visible {
    background: #ffffff;
    color: #336aff;
    outline: none;
}



.lsjb-modal-dialog .lsjb-button-ghost {
    border-color: #336aff;
    background: #ffffff;
    color: #336aff;
}

.lsjb-modal-dialog .lsjb-button-ghost:hover,
.lsjb-modal-dialog .lsjb-button-ghost:focus-visible {
    background: #336aff;
    color: #ffffff;
    outline: none;
}

@media (max-width: 640px) {

    .lsjb-modal-dialog .lsjb-button {
        width: 100%;
    }
}


.lsjb-apply-form {
    width: 100%;
    gap: 24px;
}

.lsjb-funnel-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.lsjb-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.lsjb-form-status {
    min-height: 24px;
}

.lsjb-form-status.is-error {
    color: #b91c1c;
}

.lsjb-form-status.is-success {
    color: #166534;
}

.lsjb-modal-dialog .lsjb-form-group .iti:focus-within {
    border-color: #336aff;
    box-shadow: 0 0 0 3px rgba(51, 106, 255, 0.12);
}

.lsjb-modal-dialog .lsjb-form-group .iti__country-container {
    left: 0;
}


.lsjb-modal-dialog .lsjb-form-group .iti__dial-code {
    color: #192543;
    font-size: 14px;
}

.lsjb-modal-dialog .lsjb-form-group .iti__country-list {
    width: 100%;
    max-width: calc(100vw - 32px);
    max-height: 300px;
    margin-top: 4px;
    padding: 10px 0;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #336aff;
    box-shadow: 0 12px 32px rgba(25, 37, 67, 0.12);
}

.lsjb-modal-dialog .lsjb-form-group .iti__search-input {
    min-height: 50px;
    padding: 13px 15px 13px 40px;
    border: 1px solid #d3d4d6;
    border-radius: 4px;
    font-size: 14px;
}

.lsjb-modal-dialog .lsjb-form-group .iti__search-input+.iti__search-icon,
.lsjb-modal-dialog .lsjb-form-group .iti__search-container .iti__search-icon {
    left: 14px;
    color: #6b7280;
}

.lsjb-modal-dialog .lsjb-form-group .iti__country {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 9px 16px;
    color: #192543;
    font-size: 14px;
    line-height: 1.4;
}

.lsjb-modal-dialog .lsjb-form-group .iti__country:hover,
.lsjb-modal-dialog .lsjb-form-group .iti__country.iti__highlight {
    background: #f4f7ff;
}

.lsjb-modal-dialog .lsjb-form-group .iti__country-name {
    margin-right: 4px;
    color: #192543;
}

.lsjb-modal-dialog .lsjb-form-group .iti__flag {
    flex: 0 0 auto;
}

.lsjb-modal-dialog .lsjb-form-group .iti__arrow {
    margin-left: 2px;
}

@media (max-width: 991px) {
    .lsjb-modal-dialog .lsjb-file-field {

        flex-wrap: wrap;
        gap: 12px;
    }
}


@media (max-width: 640px) {
    .lsjb-modal-dialog {


        padding: 24px 20px;

        margin: 12px;
        width: 100%;
        max-width: calc(100vw - 24px);

    }

    .lsjb-modal.is-booking-open {
        padding: 12px;
        align-items: stretch;
    }

    .lsjb-modal.is-booking-open .lsjb-modal-dialog {
        width: 100%;
        max-width: 100%;
        height: calc(100vh - 24px);
        max-height: calc(100vh - 24px);
        padding: 22px 16px;
        border-radius: 16px;
    }

    .lsjb-modal.is-booking-open .lsjb-funnel-brand {
        width: 136px;
    }

    .lsjb-modal.is-booking-open .lsjb-funnel-subtitle {
        padding-right: 48px;
        font-size: 15px;
        text-align: left;
    }

    .lsjb-modal.is-booking-open .lsjb-booking-screen {
        gap: 12px;
    }

    .lsjb-modal.is-booking-open .lsjb-booking-screen h2 {
        margin-top: 0;
        font-size: 24px;
    }


    .lsjb-funnel-grid {
        display: flex;
        flex-direction: column;
    }
}




.iti {
    display: flex;
}

.iti .iti__selected-dial-code {

    font-size: 14px;
    color: #4e535a;
    line-height: 160%;
}
