/* Book a Demo — Transformify Design System (Figma node 6027:13436 — hero / Frame 20) */

.demo-page {
    --demo-navy: #172679;
    --demo-navy-deep: #2d31ac;
    --demo-lavender: #dbddff;
    --demo-lavender-soft: #ecedfb;
    --demo-icon-violet: #807beb;
    --demo-trust-border: #dbe1e9;
    --demo-muted: rgba(12, 12, 12, 0.5);
    /* Distance from hero top (under site header) to main headline / “Get Started” title */
    --demo-hero-from-header: 113px;
    /* BOOK A DEMO pill: vertical padding + min-height + margin below → top of left h1 */
    --demo-hero-pill-block: calc(6px + 35px + 6px + 20px);
    /* Left hero column block (Figma) */
    --demo-hero-left-min-height: 716px;
    --demo-video-to-trust-gap: 42.55px;
    /* Video frame (Figma) */
    --demo-video-frame-width: 465.798px; /* at max width, height ≈ 270px via 226/131 */
    --demo-video-aspect-ratio: 226 / 131;
    /* Trust pills — G2 / Capterra (Figma) */
    --demo-trust-pill-g2-width: 208.364px;
    --demo-trust-pill-capterra-width: 249.818px;
    /* Row width = both pills + gap (must be ≥ this or items wrap) */
    --demo-trust-row-gap: 20px;
    --demo-trust-row-max-width: calc(
        var(--demo-trust-pill-g2-width) + var(--demo-trust-pill-capterra-width) + var(--demo-trust-row-gap)
    );
    /* Match React @/components/Elements/Input/Input.tsx (Tailwind primary tokens) */
    --demo-input-border-default: #d0d5dd;
    --demo-input-border-focus: #b3b8f0;
    --demo-input-outline-focus: #ecedfb;
    --demo-input-text: #344054;
    /* Features: cards 362×302; flex row 3 + 2 gaps 75px → 1236px wide */
    --demo-feature-card-width: 362px;
    --demo-feature-card-height: 302px;
    --demo-feature-gap: 75px;
    --demo-feature-row-width: calc(3 * var(--demo-feature-card-width) + 2 * var(--demo-feature-gap));
    --demo-feature-border: #dbddff;
    /* Bottom cards row */
    --demo-bottom-card-w: 362px;
    --demo-bottom-card-w-last: 362px;
    --demo-bottom-card-h: 312px;
    --demo-bottom-card-gap: 110px;
    --demo-bottom-row-width: calc(3 * var(--demo-bottom-card-w) + 2 * var(--demo-bottom-card-gap));
    --demo-bottom-mascot-w: 274.187px;
    --demo-bottom-mascot-h: 410.842px;
    /* Pull mascot up so “tfy” on shirt stays visible above the third card */
    --demo-bottom-mascot-top: calc(-0.67 * var(--demo-bottom-mascot-h));
    /* Bottom section content width (Figma 1440 frame; card row is 1270 inside this) */
    --demo-bottom-section-max: 1440px;
    /* Awards grid (section 3): 3 cols — last column wider */
    --demo-award-cell-w: 283px;
    --demo-award-cell-w-last: 317px;
    --demo-award-cell-h: 195px;
    --demo-award-gap-x: 104px;
    --demo-award-gap-y: 96px;
    --demo-award-row-width: calc(
        var(--demo-award-cell-w) + var(--demo-award-gap-x) + var(--demo-award-cell-w) + var(--demo-award-gap-x) +
            var(--demo-award-cell-w-last)
    );
}

.demo {
    display: flex;
    min-height: 0;
}

/* Hero */
.demo-page__hero {
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.demo-left,
.demo-page__hero-left {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--demo-lavender-soft);
    background-image: url("/assets/img/demo/demo-background.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    min-height: var(--demo-hero-left-min-height);
    /* Left h1 first line aligns with right title at --demo-hero-from-header */
    padding: calc(var(--demo-hero-from-header) - var(--demo-hero-pill-block)) 40px 56px;
    position: relative;
    max-width: 100%;
    overflow-x: hidden;
}

.demo-page__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 6px 20px;
    min-height: 35px;
    background: var(--demo-lavender);
    border-radius: 5px;
    color: var(--demo-navy);
    font-family: "Open Sans", sans-serif;
    font-weight: 700;
    font-size: 20px;
    text-align: center;
    letter-spacing: 0.02em;
}

.demo-page__pill--inline {
    margin: 0 0 16px;
}

.demo-left h1,
.demo-page__hero-left h1 {
    color: var(--demo-navy);
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 700;
    font-style: normal;
    line-height: 1.25;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.demo-page__lead {
    color: var(--demo-navy);
    text-align: center;
    font-family: "Lato", sans-serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.45;
    max-width: 540px;
    margin: 20px auto 0;
}

.demo-page__seo-intro {
    color: #172679;
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 26px;
    max-width: 720px;
    margin: 14px auto 0;
}

/* Fixed frame; scales down inside column — never wider than parent */
.demo-page__video {
    width: 100%;
    max-width: min(var(--demo-video-frame-width), 100%);
    margin: 32px auto 0;
    align-self: center;
    box-sizing: border-box;
}

.demo-page__video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: var(--demo-video-aspect-ratio);
    height: auto;
    min-height: 0;
    border: 3px solid var(--demo-navy-deep);
    border-radius: 10px;
    overflow: hidden;
    background: #000;
}

.demo-page__video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.demo-page__video-thumbnail {
    position: absolute;
    inset: 0;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
}

.demo-page__video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.demo-page__video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: #ff0000;
    border-radius: 12px;
}

.demo-page__video-play::before {
    content: "";
    position: absolute;
    top: 15px;
    left: 27px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 14px solid #fff;
}

.demo-page__video-iframe {
    position: absolute;
    inset: 0;
}

/* Trust badges: mobile = stacked column; wider = row + wrap if needed — no horizontal scroll */
.demo-page__trust {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: var(--demo-video-to-trust-gap);
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0;
}

.demo-page__trust-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: min(var(--demo-trust-pill-g2-width), 100%);
    height: 36px;
    min-height: 36px;
    max-height: 36px;
    padding: 0 10px;
    border: 1.5px solid #dbe1e9;
    border-radius: 500px;
    background: #fff;
    font-family: "Inter", sans-serif;
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    flex: 0 1 auto;
}

.demo-page__trust-pill:last-child {
    width: min(var(--demo-trust-pill-capterra-width), 100%);
}

@media (min-width: 600px) {
    .demo-page__trust {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 12px var(--demo-trust-row-gap);
        max-width: min(var(--demo-trust-row-max-width), 100%);
    }

    .demo-page__trust-pill {
        width: var(--demo-trust-pill-g2-width);
        max-width: none;
    }

    .demo-page__trust-pill:last-child {
        width: var(--demo-trust-pill-capterra-width);
        max-width: none;
    }
}

.demo-page__trust-icon {
    flex-shrink: 0;
    width: 22px;
    height: auto;
    max-height: 23px;
    object-fit: contain;
    display: block;
}

.demo-page__trust-copy {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 0.25em;
    white-space: nowrap;
    text-align: center;
    font-family: inherit;
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.demo-page__trust-label {
    color: #7c7a7f;
    font-family: inherit;
    font-size: inherit;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.demo-page__trust-score {
    color: rgba(0, 0, 0, 0.8);
    font-family: inherit;
    font-size: inherit;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.demo-right,
.demo-page__hero-right {
    flex: 1 1 50%;
    padding: var(--demo-hero-from-header) 40px 48px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #fff;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Form column — scoped under .demo-page (untitled.css unchanged on other routes) */
.demo-page .demo-right__form,
.demo-page .demo-page__form-card {
    width: 100%;
    max-width: 628px;
    margin-left: auto;
    margin-right: auto;
    background-color: transparent;
    padding: 0 16px 32px;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* Bootstrap 3 .row uses negative side margins (~-15px), which breaks alignment with centered headings */
.demo-page .demo-right__form .row {
    margin-left: 0;
    margin-right: 0;
}

.demo-page .demo-right__form .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

.demo-page .demo-right__form .row > [class*="col-"]:first-child {
    padding-left: 0;
}

.demo-page .demo-right__form .row > [class*="col-"]:last-child {
    padding-right: 0;
}

@media (max-width: 767px) {
    .demo-page .demo-right__form .row > [class*="col-"] {
        padding-left: 0;
        padding-right: 0;
    }
}

.demo-page .demo-right__form .form-control {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--demo-input-text);
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid var(--demo-input-border-default);
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Same as React Input: border-primary-300 + outline-4 primary-100 */
.demo-page .demo-right__form .form-control:focus {
    border-color: var(--demo-input-border-focus);
    outline: 0;
    box-shadow: 0 0 0 4px var(--demo-input-outline-focus);
}

.demo-page .demo-right__form .form-control::selection {
    background-color: var(--demo-input-outline-focus);
    color: #0a0e34;
}

/* Chrome autofill ignores normal background-color */
.demo-page .demo-right__form .form-control:-webkit-autofill,
.demo-page .demo-right__form .form-control:-webkit-autofill:hover,
.demo-page .demo-right__form .form-control:-webkit-autofill:focus,
.demo-page .demo-right__form .form-control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--demo-input-text) !important;
    caret-color: var(--demo-input-text);
    border: 1px solid var(--demo-input-border-default);
    transition: background-color 99999s ease-out 0s;
}

.demo-page .demo-right__form .form-control:-webkit-autofill:focus {
    border-color: var(--demo-input-border-focus);
    -webkit-box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px var(--demo-input-outline-focus) !important;
    box-shadow: 0 0 0 1000px #fff inset, 0 0 0 4px var(--demo-input-outline-focus) !important;
}

.demo-page .demo-right__form .form-group {
    margin-bottom: 24px;
}

/* Node 6027:13455 */
.demo-right__text {
    color: #172679;
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 30px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    max-width: 299px;
    margin: 0 auto 18px;
}

/* Node 6027:13457 */
.demo-right__subheader {
    color: #172679;
    text-align: center;
    font-family: "Lato", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    max-width: 372px;
    margin: 0 auto 32px;
}

/* Node 6027:13458 — disclaimer above CTA */
.demo-right__content {
    color: rgba(12, 12, 12, 0.5);
    text-align: center;
    font-family: "Lato", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    max-width: 583px;
    margin: 24px auto 0;
}

.demo-page .demo-right__form .control-label {
    color: #344054;
    font-weight: 500;
    font-size: 14px;
    font-style: normal;
    line-height: 20px;
}

.demo-right__button {
    text-align: center;
}

/* 62px above CTA (from disclaimer / block above button) */
.demo-page .demo-right__button {
    margin-top: 62px;
}

/* Book a Demo CTA — spec: 299×48, 5px radius, Open Sans 25px / 600 (scoped: .demo-page only) */
.demo-page .btn-demo {
    box-sizing: border-box;
    width: 299px;
    height: 48px;
    padding: 0 16px;
    margin: 0 auto;
    border: 1px solid #172679;
    border-radius: 5px;
    background: #172679;
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 25px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.demo-page .btn-demo:hover:not(:disabled),
.demo-page .btn-demo:focus:not(:disabled) {
    background-color: #121c5e;
    border-color: #121c5e;
    color: #fff;
}

/* Request-received state — same card/typography as the form, no inputs */
.demo-page__request-received {
    text-align: center;
    padding-top: 8px;
}

.demo-page__request-received .demo-right__text {
    max-width: 420px;
}

.demo-page__request-received .demo-right__subheader {
    max-width: 420px;
    margin-bottom: 0;
}

.demo-page__request-received-youtube {
    max-width: 420px;
    margin: 20px auto 0;
    color: #172679;
    text-align: center;
    font-family: "Lato", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.4;
}

.demo-page__request-received-youtube a {
    color: #172679;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    white-space: nowrap;
}

.demo-page__request-received-youtube a:hover,
.demo-page__request-received-youtube a:focus {
    color: #121c5e;
    text-decoration-color: #121c5e;
}

.demo-page__request-received .demo-right__button {
    margin-top: 48px;
}

.demo-page a.btn-demo {
    text-decoration: none;
    color: #fff;
}

.demo-page a.btn-demo:hover,
.demo-page a.btn-demo:focus {
    text-decoration: none;
    color: #fff;
}

.demo-page__request-received a.btn-demo {
    width: auto;
    min-width: 299px;
    padding: 0 24px;
}

/* Features — flex, 3 cards per row @ 1236px, 75px gaps */
.demo-page__features {
    padding: 64px 0 72px;
    background: #fff;
}

.demo-page__features-inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    box-sizing: border-box;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
}

.demo-page__features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, var(--demo-feature-card-width)));
    justify-content: center;
    gap: var(--demo-feature-gap);
    width: 100%;
    max-width: var(--demo-feature-row-width);
    margin: 0 auto;
    box-sizing: border-box;
}

.demo-page__feature-card {
    box-sizing: border-box;
    width: 100%;
    max-width: var(--demo-feature-card-width);
    justify-self: center;
    min-height: var(--demo-feature-card-height);
    height: 100%;
    align-self: stretch;
    border: 4px solid var(--demo-feature-border);
    border-radius: 25px;
    padding: 18px 18px 16px;
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.demo-page__feature-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.demo-page__feature-accent {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 38px;
    height: 35px;
    background: var(--demo-icon-violet);
    border-radius: 2px;
}

.demo-page__feature-icon-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.demo-page__feature-title {
    color: #172679;
    text-align: center;
    font-family: "Open Sans", sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    min-height: 60px;
}

.demo-page__feature-text {
    color: #172679;
    text-align: center;
    font-family: "Lato", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
    margin: 0;
    width: 100%;
    max-width: 100%;
    flex: 0 1 auto;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 820px) {
    .demo-page__features-inner {
        padding: 0 16px;
    }

    .demo-page__features-grid {
        max-width: 100%;
        grid-template-columns: 1fr;
    }

    .demo-page__feature-card {
        max-width: var(--demo-feature-card-width);
        justify-self: center;
        width: 100%;
        height: auto;
        min-height: var(--demo-feature-card-height);
    }
}

/* Awards — globe is the hero; light neutral tint only (avoid double-blue) */
.demo-page__awards {
    padding: 56px 16px 64px;
    color: #fff;
    /* Dark neutral fallback while image loads (not saturated navy) */
    background-color: #080c24;
    background-image:
        radial-gradient(ellipse 130% 90% at 50% 85%, rgba(255, 255, 255, 0.07) 0%, transparent 52%),
        linear-gradient(
            165deg,
            rgba(23, 38, 121, 0.14) 0%,
            rgba(12, 18, 48, 0.22) 48%,
            rgba(6, 10, 32, 0.32) 100%
        ),
        url("/assets/img/demo/globe_background.webp");
    background-repeat: no-repeat;
    background-position: center, center, center;
    background-size: auto, auto, cover;
}

.demo-page__awards-heading {
    font-family: "Open Sans", sans-serif;
    font-size: 40px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    color: #fff;
    margin: 0 0 40px;
    text-align: left;
    max-width: 685px;
    width: 100%;
    box-sizing: border-box;
}

.demo-page__awards .container {
    max-width: calc(var(--demo-award-row-width) + 32px);
}

.demo-page__awards-grid {
    display: grid;
    grid-template-columns: var(--demo-award-cell-w) var(--demo-award-cell-w) var(--demo-award-cell-w-last);
    gap: var(--demo-award-gap-y) var(--demo-award-gap-x);
    justify-content: center;
    width: 100%;
    max-width: var(--demo-award-row-width);
    margin: 0 auto;
    box-sizing: border-box;
}

.demo-page__award-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: var(--demo-award-cell-h);
    min-height: var(--demo-award-cell-h);
    padding: 22px 20px;
    border: 1.5px solid #fff;
    border-radius: 10px;
    background: transparent;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.demo-page__award-img {
    display: block;
    flex: 0 1 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    /* Reserve space for padding so logos don’t touch the border */
    max-height: calc(var(--demo-award-cell-h) - 44px);
    margin: auto;
    object-fit: contain;
    object-position: center;
}

.demo-page__award-cell--text {
    padding: 16px 18px;
    text-align: center;
}

.demo-page__award-text {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--demo-navy);
    line-height: 1.4;
}

@media (max-width: 1150px) {
    .demo-page__awards-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
        gap: 24px;
        max-width: 100%;
    }

    .demo-page__award-cell {
        height: auto;
        min-height: var(--demo-award-cell-h);
    }
}

/* Bottom CTA — cards + overlapping mascot */
.demo-page__bottom {
    padding: 56px 16px 64px;
    background: #fff;
    overflow: visible;
}

/* Wider than default Bootstrap container so 1270px card row + mascot fits (1440 artboard) */
.demo-page__bottom .container {
    max-width: var(--demo-bottom-section-max);
    width: 100%;
}

.demo-page__bottom-heading {
    font-family: "Open Sans", sans-serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--demo-navy);
    line-height: 1.25;
    max-width: var(--demo-bottom-row-width);
    margin: 0 0 16px;
}

.demo-page__bottom-lead {
    font-family: "Lato", sans-serif;
    font-size: 23px;
    color: var(--demo-navy);
    line-height: 1.45;
    max-width: var(--demo-bottom-row-width);
    margin: 0 0 36px;
}

.demo-page__bottom-block {
    position: relative;
    margin-top: 8px;
    min-height: var(--demo-bottom-card-h);
    overflow: visible;
    width: 100%;
    max-width: 100%;
}

/* Same pattern as ATS static page: mascot first in row, position:absolute → does not take flex/grid space; cards stack above (z-index). */
.demo-page__bottom-cards-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--demo-bottom-card-gap);
    position: relative;
    width: 100%;
}

.demo-page__bottom-card {
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    max-width: none;
    height: var(--demo-bottom-card-h);
    min-height: var(--demo-bottom-card-h);
    max-height: var(--demo-bottom-card-h);
    border: 6px solid #dbddff;
    border-radius: 25px;
    padding: 24px 20px 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.demo-page__bottom-mascot-wrap {
    position: absolute;
    z-index: 1;
    right: calc(-96px + var(--demo-bottom-mascot-w) / 2);
    top: var(--demo-bottom-mascot-top);
    width: var(--demo-bottom-mascot-w);
    height: var(--demo-bottom-mascot-h);
    pointer-events: none;
    overflow: visible;
}

.demo-page__bottom-mascot {
    display: block;
    width: var(--demo-bottom-mascot-w);
    height: var(--demo-bottom-mascot-h);
    max-width: none;
    aspect-ratio: 274.19 / 410.84;
    object-fit: contain;
    margin: 0;
    transform: rotate(-7.294deg);
    transform-origin: center center;
}

.demo-page__bottom-card-title {
    font-family: "Open Sans", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    color: var(--demo-navy);
    margin: 0 0 12px;
}

.demo-page__bottom-card-desc {
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    color: var(--demo-navy);
    line-height: normal;
    margin: 0 0 12px;
    max-width: 100%;
}

.demo-page__bottom-card-body {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    color: var(--demo-navy);
    line-height: 26px;
    margin: 0 0 16px;
    flex: 1 1 auto;
    min-height: 0;
}

.demo-page__bottom-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: #172679;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-decoration: none;
}

.demo-page__bottom-card-link:hover,
.demo-page__bottom-card-link:focus {
    color: #121c5e;
    text-decoration: none;
}

.demo-page__bottom-card-link-text {
    font-family: inherit;
    font-size: inherit;
    font-style: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.demo-page__bottom-card-link:hover .demo-page__bottom-card-link-text,
.demo-page__bottom-card-link:focus .demo-page__bottom-card-link-text {
    text-decoration-color: #121c5e;
}

/* Mid screens: avoid oversized stretched cards; keep fixed card width */
@media (max-width: 1280px) and (min-width: 993px) {
    .demo-page__bottom-cards-row {
        justify-content: center;
    }

    .demo-page__bottom-card {
        flex: 0 0 var(--demo-bottom-card-w);
        width: var(--demo-bottom-card-w);
        min-width: var(--demo-bottom-card-w);
        max-width: var(--demo-bottom-card-w);
    }
}

.has-error li {
    color: red;
    padding-left: 0;
}

@media (max-width: 992px) {
    .demo,
    .demo-page__hero {
        flex-direction: column;
    }

    .demo-left,
    .demo-page__hero-left {
        padding: 50px 20px 40px;
        min-height: 0;
    }

    .demo-right,
    .demo-page__hero-right {
        padding: 50px 16px 40px;
    }

    .demo-page .demo-right__form,
    .demo-page .demo-page__form-card {
        padding: 0 12px 24px;
        border: none;
        box-shadow: none;
    }

    .demo-right__text,
    .demo-right__subheader,
    .demo-right__content {
        max-width: 100%;
    }

    .demo-page__bottom-lead {
        max-width: 100%;
        margin-bottom: 98px;
        white-space: normal;
    }

    .demo-page .btn-demo {
        width: 100%;
        max-width: 299px;
    }

    .demo-page__bottom-cards-row {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 32px;
        margin-top: 22px;
    }

    .demo-page__bottom-mascot-wrap {
        position: absolute;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        top: -120px;
        width: 120px;
        height: auto;
        aspect-ratio: 274.19 / 410.84;
        margin: 0;
        overflow: visible;
        z-index: 1;
    }

    .demo-page__bottom-heading br {
        display: none;
    }

    .demo-page__bottom-mascot {
        width: 100%;
        height: auto;
        max-width: 120px;
        margin: 0;
        transform: rotate(-7.294deg);
    }

    .demo-page__bottom-card {
        flex: 0 0 min(100%, var(--demo-bottom-card-w));
        width: min(100%, var(--demo-bottom-card-w));
        max-width: var(--demo-bottom-card-w);
    }

    .demo-page__bottom-block {
        min-height: 0;
    }
}

@media (min-width: 576px) and (max-width: 992px) {
    .demo-page__bottom-block {
        margin-top: 48px;
    }
}

.demo-page .btn-demo:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.demo-page .btn-demo:disabled:hover::after {
    content: "\f05e";
    font-family: "FontAwesome";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    pointer-events: none;
}

/* Book a demo: standard marketing footer (matches public / blog layout; scoped via .tfy-standard-footer) */
#sub_footer.tfy-standard-footer {
    background: #fff;
    border-top: 3px solid #19237e;
    margin-top: auto;
    text-align: center;
}

#sub_footer.tfy-standard-footer > .container {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

#sub_footer.tfy-standard-footer .subfooter_nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px clamp(12px, 3vw, 28px);
    margin: 0 auto 24px;
    padding: 0;
    list-style: none;
}

#sub_footer.tfy-standard-footer .subfooter_nav li {
    display: block;
    margin: 0;
    padding: 0;
}

#sub_footer.tfy-standard-footer .subfooter_nav li a {
    color: #172679;
    text-decoration: none;
}

#sub_footer.tfy-standard-footer .subfooter_nav li a:hover,
#sub_footer.tfy-standard-footer .subfooter_nav li a:focus {
    color: #4a50c7;
    text-decoration: none;
}

#sub_footer.tfy-standard-footer .tfy-footer-address {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 52rem;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.45;
    color: #172679;
    font-family: "Lato", sans-serif;
}

#sub_footer.tfy-standard-footer .tfy-footer-address strong {
    font-weight: 700;
}

footer.page-footer.p-0 {
    background-color: #19237e;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    text-align: center;
    border: 0;
}

footer.page-footer.p-0 .container-fluid {
    max-width: none;
}

footer.page-footer.p-0 .container-fluid > p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #fff !important;
    background: transparent !important;
}

/* Turnstile — reserve slightly above docs 65px (iframe/wrapper paint) */
.demo-page-turnstile {
    box-sizing: border-box;
    width: 100%;
    height: 72px;
    min-height: 72px;
    margin: 0 0 12px;
    overflow: hidden;
}

.demo-page-turnstile iframe {
    display: block;
    max-height: 72px;
}
