.tm-contact-popup {
    --cp-bg: #0f1a2e;
    --cp-bg-raised: #15223b;
    --cp-panel: rgba(255, 255, 255, .045);
    --cp-panel-hover: rgba(255, 255, 255, .075);
    --cp-border: rgba(151, 181, 222, .22);
    --cp-border-strong: rgba(151, 181, 222, .5);
    --cp-text: #ffffff;
    --cp-muted: #aebdd1;
    --cp-accent: #6298E0;
    --cp-accent-deep: #2048BC;
    --cp-danger: #ff7a8a;
    --cp-ease: cubic-bezier(.2, .8, .2, 1);
    --cp-radius: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    font-family: Poppins, sans-serif;
}

.tm-contact-popup.fade .modal-dialog {
    transform: translateY(32px) scale(.97);
    transition: transform .55s var(--cp-ease);
}

.tm-contact-popup.show .modal-dialog {
    transform: none;
}

.tm-contact-popup .modal-content {
    position: relative;
    background: var(--cp-bg);
    color: var(--cp-text);
    border: 1px solid var(--cp-border);
    border-radius: 22px;
    box-shadow: 0 40px 120px -20px rgba(3, 10, 25, .7), 0 0 0 1px rgba(255, 255, 255, .03) inset;
    overflow: hidden;
}

.tm-contact-popup .modal-body {
    padding: 0;
}

.tm-cp-close {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--cp-muted);
    background: var(--cp-panel);
    border: 1px solid var(--cp-border);
    border-radius: 50%;
    transition: transform .35s var(--cp-ease), color .2s, background .2s, border-color .2s;
}

    .tm-cp-close:hover,
    .tm-cp-close:focus-visible {
        color: var(--cp-text);
        background: var(--cp-panel-hover);
        border-color: var(--cp-border-strong);
        transform: rotate(90deg);
        outline: none;
    }

.tm-cp-loading {
    display: grid;
    place-items: center;
    min-height: 420px;
}

.tm-cp-loading-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(98, 152, 224, .2);
    border-top-color: var(--cp-accent);
    animation: tmCpSpin .9s linear infinite;
}

.tm-cp-layout {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    min-height: 560px;
}

.tm-cp-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 48px 36px 36px;
    background: linear-gradient(160deg, #1a2d55 0%, #12203d 45%, #0c1628 100%);
    border-inline-end: 1px solid var(--cp-border);
}

.tm-cp-aside-glow {
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(closest-side at 30% 30%, rgba(98, 152, 224, .45), transparent 70%),
        radial-gradient(closest-side at 75% 70%, rgba(155, 107, 242, .28), transparent 70%),
        radial-gradient(closest-side at 20% 85%, rgba(32, 72, 188, .4), transparent 70%);
    filter: blur(10px);
}

.tm-cp-aside-content {
    position: relative;
    z-index: 1;
}

.tm-cp-aside-logo {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    margin-bottom: 36px;
}

.tm-cp-title {
    margin: 0 0 14px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -.01em;
    color: var(--cp-text);
}

.tm-cp-trust {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 32px;
}

.tm-cp-trust-heading {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--cp-text);
}

.tm-cp-trust-text {
    margin: 0 0 18px;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--cp-muted);
}

.tm-cp-trust-logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 16px 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .tm-cp-trust-logos li {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        height: 64px;
    }

    .tm-cp-trust-logos img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 46px;
        object-fit: contain;
        filter: brightness(0) invert(1);
        opacity: .6;
        transition: opacity .2s;
    }

        .tm-cp-trust-logos img.is-squarish {
            max-height: 80px;
            margin-inline-start: -6px;
        }

    .tm-cp-trust-logos li:hover img {
        opacity: .9;
    }

.tm-cp-main {
    padding: 44px 48px 36px;
}

.tm-contact-popup .tm-contact-form {
    margin: 0;
}

.tm-cp-group {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.tm-cp-label {
    float: none;
    width: auto;
    margin-bottom: 12px;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cp-muted);
}

.tm-cp-tile input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

    .tm-cp-tile input:focus-visible ~ .tm-cp-tile-name {
        outline: 2px solid var(--cp-accent);
        outline-offset: 3px;
    }

.tm-cp-step > .tm-cp-field-select {
    margin-bottom: 22px;
}

.tm-cp-reveal {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .5s var(--cp-ease), opacity .35s ease;
}

    .tm-cp-reveal.is-open {
        grid-template-rows: 1fr;
        opacity: 1;
    }

.tm-cp-reveal-inner {
    min-height: 0;
    overflow: hidden;
}

.tm-cp-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 8px;
    padding: 2px 2px 6px;
}

.tm-cp-tile {
    --tm-accent: var(--cp-accent);
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    margin: 0;
    padding: 8px 26px 8px 10px;
    cursor: pointer;
    background: var(--cp-panel);
    border: 1px solid var(--cp-border);
    border-radius: var(--cp-radius);
    transition: transform .35s var(--cp-ease), background .25s, border-color .25s, box-shadow .35s;
}

.tm-cp-reveal.is-open .tm-cp-tile {
    animation: tmCpRise .5s var(--cp-ease) both;
}

    .tm-cp-reveal.is-open .tm-cp-tile:nth-child(2) { animation-delay: .05s; }
    .tm-cp-reveal.is-open .tm-cp-tile:nth-child(3) { animation-delay: .1s; }
    .tm-cp-reveal.is-open .tm-cp-tile:nth-child(4) { animation-delay: .15s; }
    .tm-cp-reveal.is-open .tm-cp-tile:nth-child(5) { animation-delay: .2s; }
    .tm-cp-reveal.is-open .tm-cp-tile:nth-child(6) { animation-delay: .25s; }

.tm-cp-tile:hover {
    background: var(--cp-panel-hover);
    border-color: var(--cp-border-strong);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .8);
}

.tm-cp-tile-icon {
    flex-shrink: 0;
    width: auto;
    height: 26px;
    transition: transform .45s var(--cp-ease), filter .3s;
}

.tm-cp-tile:hover .tm-cp-tile-icon {
    transform: translateY(-1px);
}

.tm-cp-tile-name {
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--cp-text);
}

.tm-cp-tile-check {
    position: absolute;
    top: 6px;
    inset-inline-end: 6px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tm-accent);
    transform: scale(0);
    transition: transform .35s var(--cp-ease);
}

    .tm-cp-tile-check svg {
        width: 12px;
        height: 12px;
        fill: none;
        stroke: #fff;
        stroke-width: 3;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-dasharray: 24;
        stroke-dashoffset: 24;
        transition: stroke-dashoffset .35s .12s var(--cp-ease);
    }

.tm-cp-tile:has(input:checked) {
    background: color-mix(in srgb, var(--tm-accent) 14%, transparent);
    border-color: var(--tm-accent);
    box-shadow: 0 0 0 1px var(--tm-accent), 0 16px 36px -16px var(--tm-accent);
}

    .tm-cp-tile:has(input:checked) .tm-cp-tile-check {
        transform: scale(1);
    }

        .tm-cp-tile:has(input:checked) .tm-cp-tile-check svg {
            stroke-dashoffset: 0;
        }

    .tm-cp-tile:has(input:checked) .tm-cp-tile-icon {
        filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--tm-accent) 60%, transparent));
    }

.tm-cp-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.tm-cp-field {
    position: relative;
}

.tm-cp-field-wide {
    grid-column: 1 / -1;
}

    .tm-cp-field input,
    .tm-cp-field select,
    .tm-cp-field textarea {
        display: block;
        width: 100%;
        padding: 24px 14px 8px;
        font-family: inherit;
        font-size: 15px;
        font-weight: 400;
        color: var(--cp-text);
        background: var(--cp-panel);
        border: 1px solid var(--cp-border);
        border-radius: 12px;
        outline: none;
        transition: border-color .2s, background .2s, box-shadow .25s;
        -webkit-appearance: none;
        appearance: none;
    }

    .tm-cp-field textarea {
        min-height: 96px;
        resize: vertical;
    }

    .tm-cp-field select {
        padding-inline-end: 40px;
        cursor: pointer;
    }

        .tm-cp-field select option {
            color: var(--cp-text);
            background: var(--cp-bg-raised);
        }

    .tm-cp-field input:hover,
    .tm-cp-field select:hover,
    .tm-cp-field textarea:hover {
        border-color: var(--cp-border-strong);
    }

    .tm-cp-field input:focus,
    .tm-cp-field select:focus,
    .tm-cp-field textarea:focus {
        background: var(--cp-panel-hover);
        border-color: var(--cp-accent);
        box-shadow: 0 0 0 4px rgba(98, 152, 224, .18);
    }

    .tm-cp-field label {
        position: absolute;
        top: 17px;
        inset-inline-start: 15px;
        max-width: calc(100% - 30px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 15px;
        color: var(--cp-muted);
        pointer-events: none;
        transform-origin: left top;
        transition: transform .25s var(--cp-ease), color .2s;
    }

[dir="rtl"] .tm-cp-field label {
    transform-origin: right top;
}

.tm-cp-field input:focus + label,
.tm-cp-field input:not(:placeholder-shown) + label,
.tm-cp-field textarea:focus + label,
.tm-cp-field textarea:not(:placeholder-shown) + label,
.tm-cp-field select:focus + label,
.tm-cp-field select:valid + label {
    transform: translateY(-10px) scale(.76);
    color: var(--cp-accent);
}

.tm-cp-select-caret {
    position: absolute;
    top: 28px;
    inset-inline-end: 12px;
    color: var(--cp-muted);
    pointer-events: none;
    transform: translateY(-50%);
    transition: transform .3s var(--cp-ease);
}

.tm-cp-field-select:focus-within .tm-cp-select-caret {
    transform: translateY(-50%) rotate(180deg);
    color: var(--cp-accent);
}

.tm-cp-field input:-webkit-autofill,
.tm-cp-field select:-webkit-autofill,
.tm-cp-field input:autofill,
.tm-cp-field select:autofill {
    -webkit-text-fill-color: var(--cp-text);
    -webkit-box-shadow: 0 0 0 1000px var(--cp-bg-raised) inset;
    caret-color: var(--cp-text);
}

.tm-cp-field .is-invalid,
.tm-cp-group.is-invalid .tm-cp-tile {
    border-color: var(--cp-danger);
}

.tm-cp-field-error {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 6px 2px 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--cp-danger);
}

    .tm-cp-field-error[hidden] {
        display: none;
    }

    .tm-cp-field-error::before {
        content: "error";
        font-family: "Material Symbols Outlined";
        font-size: 16px;
        line-height: 1;
    }

.tm-cp-required {
    color: var(--cp-accent);
}

.tm-cp-field .is-invalid + label,
.tm-cp-group.is-invalid .tm-cp-label {
    color: var(--cp-danger);
}

.tm-cp-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 14px;
    font-size: 14px;
    color: #ffd6dc;
    background: rgba(255, 122, 138, .1);
    border: 1px solid rgba(255, 122, 138, .35);
    border-radius: 12px;
    animation: tmCpRise .35s var(--cp-ease) both;
}

    .tm-cp-error[hidden] {
        display: none;
    }

    .tm-cp-error .material-symbols-outlined {
        color: var(--cp-danger);
    }

.tm-cp-consent {
    margin-top: 16px;
}

.tm-cp-consent,
.tm-cp-consent p {
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--cp-muted);
}

    .tm-cp-consent a {
        color: var(--cp-accent);
    }

.tm-cp-submit {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    overflow: hidden;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, var(--cp-accent) 0%, var(--cp-accent-deep) 100%);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 14px 30px -12px rgba(98, 152, 224, .9);
    transition: transform .3s var(--cp-ease), box-shadow .3s, opacity .2s;
}

    .tm-cp-submit:not(:disabled):hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 36px -12px rgba(98, 152, 224, 1);
    }

        .tm-cp-submit:not(:disabled):hover .tm-cp-submit-arrow {
            transform: translateX(4px);
        }

    .tm-cp-submit:disabled {
        opacity: .45;
        cursor: not-allowed;
        box-shadow: none;
    }

    .tm-cp-submit:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 3px;
    }

.tm-cp-submit-arrow {
    font-size: 20px;
    transition: transform .3s var(--cp-ease);
}

.tm-cp-submit-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    opacity: 0;
}

.tm-cp-submit.is-loading {
    opacity: 1;
    cursor: progress;
}

    .tm-cp-submit.is-loading .tm-cp-submit-label,
    .tm-cp-submit.is-loading .tm-cp-submit-arrow {
        opacity: 0;
    }

    .tm-cp-submit.is-loading .tm-cp-submit-spinner {
        opacity: 1;
        animation: tmCpSpin .8s linear infinite;
    }

.tm-cp-submit-ghost {
    background: var(--cp-panel);
    border: 1px solid var(--cp-border-strong);
    box-shadow: none;
}

.tm-cp-main {
    display: flex;
    flex-direction: column;
}

    .tm-cp-main .tm-contact-form {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

.tm-cp-stage {
    flex: 1;
    display: grid;
}

.tm-cp-step {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(24px);
    pointer-events: none;
    transition: opacity .35s ease, transform .5s var(--cp-ease), visibility 0s linear .5s;
}

    .tm-cp-step.is-before {
        transform: translateX(-24px);
    }

    .tm-cp-step.is-active {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: opacity .45s ease .08s, transform .55s var(--cp-ease) .04s, visibility 0s;
    }

[dir="rtl"] .tm-cp-step {
    transform: translateX(-24px);
}

    [dir="rtl"] .tm-cp-step.is-before {
        transform: translateX(24px);
    }

[dir="rtl"] .tm-cp-step.is-active {
    transform: none;
}

.tm-cp-eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cp-accent);
}

.tm-cp-step-title {
    margin: 0 0 8px;
    padding-inline-end: 48px;    font-family: Montserrat, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cp-text);
}

.tm-cp-step-title:focus {
    outline: none;
}

.tm-cp-step-text {
    max-width: 620px;
    margin: 0 0 24px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--cp-muted);
}

.tm-cp-step .tm-cp-group + .tm-cp-field,
.tm-cp-step .tm-cp-reveal + .tm-cp-field {
    margin-top: 4px;
}

.tm-cp-success-title {
    margin-top: 20px;
    padding-inline-end: 0;
}

.tm-cp-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
}

.tm-cp-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--cp-muted);
    background: none;
    border: 0;
    border-radius: 999px;
    transition: color .2s;
}

    .tm-cp-back .material-symbols-outlined {
        font-size: 20px;
        transition: transform .3s var(--cp-ease);
    }

    .tm-cp-back:hover {
        color: var(--cp-text);
    }

        .tm-cp-back:hover .material-symbols-outlined {
            transform: translateX(-4px);
        }

    .tm-cp-back:focus-visible {
        outline: 2px solid var(--cp-accent);
        outline-offset: 2px;
    }

.tm-cp-steps {
    margin: 4px 0 28px;
    padding: 0;
    list-style: none;
}

    .tm-cp-steps li {
        position: relative;
        margin: 0;
    }

        .tm-cp-steps li + li {
            margin-top: 8px;
        }

            .tm-cp-steps li + li::before {
                content: "";
                position: absolute;
                top: -12px;
                inset-inline-start: 15px;
                width: 2px;
                height: 16px;
                background: var(--cp-border);
                border-radius: 2px;
                transition: background .4s;
            }

        .tm-cp-steps li:has(.is-done) + li::before {
            background: var(--cp-accent);
        }

.tm-cp-step-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 6px 0;
    font-family: inherit;
    text-align: start;
    color: var(--cp-muted);
    background: none;
    border: 0;
    border-radius: 10px;
    transition: color .25s, opacity .25s;
}

    .tm-cp-step-link:disabled {
        cursor: default;
        opacity: .55;
    }

    .tm-cp-step-link:not(:disabled):hover {
        color: var(--cp-text);
    }

    .tm-cp-step-link:focus-visible {
        outline: 2px solid var(--cp-accent);
        outline-offset: 2px;
    }

.tm-cp-step-dot {
    position: relative;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    font-size: 13px;
    font-weight: 600;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--cp-border);
    border-radius: 50%;
    transition: background .3s, border-color .3s, box-shadow .4s, transform .4s var(--cp-ease);
}

    .tm-cp-step-dot svg {
        position: absolute;
        width: 16px;
        height: 16px;
        fill: none;
        stroke: #fff;
        stroke-width: 3;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-dasharray: 24;
        stroke-dashoffset: 24;
        transition: stroke-dashoffset .4s .1s var(--cp-ease);
    }

.tm-cp-step-num {
    transition: opacity .2s;
}

.tm-cp-step-name {
    font-size: 15px;
    font-weight: 500;
}

.tm-cp-step-link.is-current {
    color: var(--cp-text);
    opacity: 1;
}

    .tm-cp-step-link.is-current .tm-cp-step-dot {
        background: linear-gradient(135deg, var(--cp-accent) 0%, var(--cp-accent-deep) 100%) border-box;
        border-color: transparent;
        box-shadow: 0 0 0 4px rgba(98, 152, 224, .18), 0 8px 20px -6px rgba(98, 152, 224, .8);
    }

        .tm-cp-steps li:has(.is-current)::before {
            height: 12px;
        }

.tm-cp-step-link.is-done {
    color: var(--cp-text);
    opacity: 1;
}

    .tm-cp-step-link.is-done .tm-cp-step-dot {
        background: rgba(98, 152, 224, .25);
        border-color: var(--cp-accent);
    }

    .tm-cp-step-link.is-done .tm-cp-step-num {
        opacity: 0;
    }

    .tm-cp-step-link.is-done .tm-cp-step-dot svg {
        stroke-dashoffset: 0;
    }

.tm-cp-progress {
    display: none;
    height: 4px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, .08);
    border-radius: 4px;
    overflow: hidden;
}

.tm-cp-progress-bar {
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, var(--cp-accent), #9B6BF2);
    border-radius: inherit;
    transition: width .5s var(--cp-ease);
}

.tm-cp-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 40px 16px;
    text-align: center;
    outline: none;
}

    .tm-cp-success[hidden] {
        display: none;
    }

    .tm-cp-success p {
        max-width: 440px;
        margin: 4px auto 28px;
        font-size: 18px;
        line-height: 1.5;
        color: var(--cp-text);
        animation: tmCpRise .5s .5s var(--cp-ease) both;
    }

    .tm-cp-success .tm-cp-submit {
        animation: tmCpRise .5s .65s var(--cp-ease) both;
    }

.tm-cp-success-mark {
    width: 84px;
    height: 84px;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 10px 30px rgba(108, 192, 74, .45));
}

    .tm-cp-success-mark circle {
        stroke: #6CC04A;
        stroke-width: 3;
        stroke-dasharray: 190;
        stroke-dashoffset: 190;
        animation: tmCpDraw .7s var(--cp-ease) forwards;
    }

    .tm-cp-success-mark path {
        stroke: #fff;
        stroke-width: 4;
        stroke-dasharray: 44;
        stroke-dashoffset: 44;
        animation: tmCpDraw .45s .45s var(--cp-ease) forwards;
    }

@keyframes tmCpRise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes tmCpSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes tmCpDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@media (max-width: 991.98px) {
    .tm-cp-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .tm-cp-aside {
        padding: 32px 28px 26px;
        border-inline-end: 0;
        border-bottom: 1px solid var(--cp-border);
    }

    .tm-cp-aside-logo {
        max-width: 170px;
        margin-bottom: 18px;
    }

    .tm-cp-trust {
        display: none;
    }

    .tm-cp-title {
        font-size: 24px;
        padding-inline-end: 48px;
    }

    .tm-cp-steps {
        display: none;
    }

    .tm-cp-title {
        margin-bottom: 12px;
    }

    .tm-cp-progress {
        display: block;
    }

    .tm-cp-main {
        padding: 28px 28px 32px;
    }

}

@media (max-width: 767.98px) {
    .tm-contact-popup .modal-content {
        border-radius: 0;
        border: 0;
    }

    .tm-cp-aside,
    .tm-cp-main {
        padding-left: 20px;
        padding-right: 20px;
    }

    .tm-cp-fields {
        grid-template-columns: 1fr;
    }

    .tm-cp-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-cp-nav .tm-cp-submit {
        flex: 1;
        justify-content: center;
    }
}

@media (min-width: 992px) {
    .tm-book-demo .tm-cp-layout {
        grid-template-columns: 280px 1fr;
        height: min(760px, calc(100vh - var(--bs-modal-margin, 1.75rem) * 2 - 2px));
        min-height: 0;
    }

    .tm-book-demo .modal-body {
        overflow: hidden;
    }

    .tm-book-demo .tm-cp-layout .tm-bd-main {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    /* cal.com centres its booking dialog in the iframe viewport, so the iframe must match the visible area and scroll itself */
    .tm-book-demo .tm-bd-cal {
        position: relative;
        flex: 1 1 0;
        min-height: 0;
        overflow: hidden;
    }

        .tm-book-demo .tm-bd-cal > cal-inline {
            position: absolute !important;
            inset: 0;
            height: 100% !important;
        }

        .tm-book-demo .tm-bd-cal iframe {
            height: 100% !important;
        }

    .tm-book-demo .tm-bd-fallback {
        flex: 1;
    }
}

.tm-book-demo .tm-bd-main {
    position: relative;
    display: block;
    min-height: 560px;
    padding: 64px 12px 12px;
}

.tm-bd-cal {
    width: 100%;
    min-height: 480px;
    overflow: auto;
}

    .tm-bd-cal iframe {
        width: 100% !important;
        border: 0;
    }

.tm-bd-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 480px;
    padding: 24px;
    text-align: center;
}

    .tm-bd-fallback[hidden] {
        display: none;
    }

.tm-bd-fallback-icon {
    font-size: 44px;
    color: var(--cp-accent);
}

.tm-bd-fallback-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    color: var(--cp-text);
}

.tm-bd-fallback-text {
    max-width: 420px;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.55;
    color: var(--cp-muted);
}

.tm-bd-fallback .tm-cp-submit {
    text-decoration: none;
}

.tm-book-demo .tm-cp-title {
    margin-bottom: 0;
}

@media (max-width: 767.98px) {
    .tm-book-demo .tm-bd-main {
        min-height: 480px;
        padding: 16px 8px 8px;
    }
}

.tm-cp-theme-toggle {
    position: absolute;
    top: 18px;
    inset-inline-end: 66px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--cp-muted);
    background: var(--cp-panel);
    border: 1px solid var(--cp-border);
    border-radius: 50%;
    transition: color .2s, background .2s, border-color .2s;
}

    .tm-cp-theme-toggle .material-symbols-outlined {
        margin: 0 !important;
        font-size: 20px;
    }

    .tm-cp-theme-toggle:hover,
    .tm-cp-theme-toggle:focus-visible {
        color: var(--cp-text);
        background: var(--cp-panel-hover);
        border-color: var(--cp-border-strong);
        outline: none;
    }

.tm-contact-popup.tm-cp-light {
    --cp-bg: #ffffff;
    --cp-bg-raised: #f3f6fb;
    --cp-panel: rgba(16, 38, 74, .035);
    --cp-panel-hover: rgba(16, 38, 74, .07);
    --cp-border: rgba(16, 38, 74, .14);
    --cp-border-strong: rgba(16, 38, 74, .32);
    --cp-text: #10264a;
    --cp-muted: #5b6a82;
    --cp-accent: #2f6fd6;
    --cp-accent-deep: #2048bc;
    --cp-danger: #c62f45;
}

    .tm-contact-popup.tm-cp-light .modal-content {
        box-shadow: 0 40px 120px -20px rgba(16, 38, 74, .35);
    }

    .tm-contact-popup.tm-cp-light .tm-cp-aside {
        background: linear-gradient(160deg, #e6eefb 0%, #f1f5fc 50%, #fbfcfe 100%);
    }

    .tm-contact-popup.tm-cp-light .tm-cp-aside-glow {
        opacity: .35;
    }

    .tm-contact-popup.tm-cp-light .tm-cp-step-link:not(.is-current):not(.is-done) .tm-cp-step-dot,
    .tm-contact-popup.tm-cp-light .tm-cp-progress {
        background: var(--cp-panel-hover);
    }

    .tm-contact-popup.tm-cp-light .tm-cp-step-link.is-done .tm-cp-step-dot {
        background: rgba(47, 111, 214, .14);
    }

        .tm-contact-popup.tm-cp-light .tm-cp-step-link.is-done .tm-cp-step-dot svg {
            stroke: var(--cp-accent);
        }

    .tm-contact-popup.tm-cp-light .tm-cp-aside-logo {
        filter: brightness(.25);
    }

    .tm-contact-popup.tm-cp-light .tm-cp-trust-logos img {
        filter: brightness(0);
        opacity: .45;
    }

    .tm-contact-popup.tm-cp-light .tm-cp-tile {
        background: #ffffff;
    }

        .tm-contact-popup.tm-cp-light .tm-cp-tile:has(input:checked) {
            background: color-mix(in srgb, var(--tm-accent) 9%, #ffffff);
        }

    .tm-contact-popup.tm-cp-light .tm-cp-error {
        color: #8a1f30;
        background: rgba(198, 47, 69, .07);
        border-color: rgba(198, 47, 69, .3);
    }

    .tm-contact-popup.tm-cp-light .tm-cp-submit:focus-visible {
        outline-color: var(--cp-accent);
    }

    .tm-contact-popup.tm-cp-light .tm-cp-submit-ghost {
        color: var(--cp-text);
    }

    .tm-contact-popup.tm-cp-light .tm-cp-success-mark path {
        stroke: var(--cp-text);
    }

    .tm-contact-popup.tm-cp-light .tm-cp-field input:-webkit-autofill,
    .tm-contact-popup.tm-cp-light .tm-cp-field select:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px #eef3fb inset;
    }

@media (prefers-reduced-motion: reduce) {
    .tm-contact-popup *,
    .tm-contact-popup *::before,
    .tm-contact-popup *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .tm-contact-popup.fade .modal-dialog {
        transform: none;
    }
}

.tm-cp-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
