.demo-page {
    --demo-blue: var(--content-primary);
    --demo-bright-blue: #00AEEF;
    --demo-neutral: #414042;
    --demo-pale-blue: var(--content-primary-surface);
    --demo-hero-blue: #CCEEFB;
    --demo-grey: #F7F7F7;

    font-family: "Inter", "Montserrat", Helvetica, sans-serif;
    color: var(--demo-neutral);
}

body:has(.demo-page) {
    background-image: unset;
    background-color: white;
}

body.ct-layout-v3:has(.demo-page) .content {
    padding-bottom: 0;
}

.demo-page section {
    padding: 4rem 1.5rem;
}

@media (min-width: 992px) {
    .demo-page section {
        padding: 5rem 3rem;
    }
}

/* Typography ------------------------------------------------------------- */

.demo-page .demo-eyebrow {
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--demo-neutral);
    margin-bottom: 1rem;
}

.demo-page h1 {
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 1.25;
}

.demo-page h2 {
    font-weight: 700;
    font-size: 1.875rem;
    line-height: 1.3;
}

.demo-page p {
    font-weight: 400;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .demo-page h1 {
        font-size: 2.75rem;
    }

    .demo-page h2 {
        font-size: 2.125rem;
    }
}

.demo-page .demo-inline-link {
    color: var(--demo-blue);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.demo-page .demo-inline-link:hover,
.demo-page .demo-inline-link:focus {
    color: var(--demo-blue);
    text-decoration: underline;
}

.demo-page .demo-inline-link i {
    font-size: 0.8em;
    margin-left: 0.35rem;
}

/* Section 1 — Hero and booking form -------------------------------------- */

.demo-page .demo-hero {
    background-color: var(--demo-hero-blue);
}

.demo-page .demo-hero h1 {
    color: var(--demo-blue);
    max-width: 30rem;
    margin-bottom: 1.5rem;
}

.demo-page .demo-hero p {
    max-width: 30rem;
}

.demo-page .demo-hero-trust {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 0;
    font-size: 0.85rem;
}

.demo-page .demo-hero-trust i {
    color: var(--demo-blue);
    margin-top: 0.2rem;
}

/* Booking form ----------------------------------------------------------- */

.demo-page .demo-form-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
    .demo-page .demo-form-card {
        padding: 2.5rem;
    }
}

.demo-page .demo-form-card .form-label {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--demo-neutral);
    margin-bottom: 0.35rem;
}

.demo-page .demo-form-card .form-control {
    border: 1px solid #D9D9D9;
    border-radius: 0.375rem;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    color: var(--demo-neutral);
}

.demo-page .demo-form-card .form-control:focus {
    border-color: var(--demo-bright-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 174, 239, 0.15);
}

.demo-page .demo-form-privacy {
    font-size: 0.7rem;
    line-height: 1.5;
    margin: 1.5rem 0;
}

.demo-page .demo-form-privacy a {
    color: var(--demo-neutral);
    text-decoration: underline;
}

.demo-page .btn-demo-primary {
    background-color: var(--demo-blue);
    border: 1px solid var(--demo-blue);
    color: white;
    border-radius: 0.375rem;
    font-weight: 400;
    padding: 0.6rem 2rem;
}

.demo-page .btn-demo-primary:hover,
.demo-page .btn-demo-primary:focus {
    background-color: #00669C;
    border-color: #00669C;
    color: white;
}

.demo-page .demo-form-thanks {
    text-align: center;
    padding: 2rem 0;
}

.demo-page .demo-form-thanks i {
    color: var(--demo-bright-blue);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.demo-page .demo-form-thanks h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.demo-page .demo-form-thanks p {
    margin-bottom: 0;
}

/*  The card sits inside .demo-hero, so the hero's 30rem measure on p would otherwise cap this
    paragraph and leave it sitting to the left of the centred heading above it. Named with the
    hero in the selector so it outranks that rule outright rather than relying on coming after
    it in this file. */
.demo-page .demo-hero .demo-form-thanks p {
    max-width: none;
}

/* Section 2 — What to expect --------------------------------------------- */

.demo-page .demo-expect-intro h2 {
    color: var(--demo-bright-blue);
}

.demo-page .demo-feature {
    margin-top: 4rem;
    row-gap: 2rem;
}

@media (min-width: 992px) {
    .demo-page .demo-feature {
        margin-top: 6rem;
        column-gap: 0;
    }

    /*
     * The copy sits on the opposite side for every second block. Ordering the
     * columns rather than reordering the markup keeps the reading order (and
     * so the tab order) heading-then-image on narrow screens.
     */
    .demo-page .demo-feature-reversed > div:first-child {
        order: 2;
    }

    .demo-page .demo-feature-reversed > div:last-child {
        order: 1;
    }

    .demo-page .demo-feature > div:first-child {
        padding-right: 3rem;
    }

    .demo-page .demo-feature-reversed > div:first-child {
        padding-right: 0;
        padding-left: 3rem;
    }
}

.demo-page .demo-feature h3 {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--demo-neutral);
    margin-bottom: 1.5rem;
}

.demo-page .demo-feature p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.demo-page .demo-feature .demo-feature-lead {
    font-weight: 700;
}

.demo-page .demo-feature .demo-feature-takeaway {
    background-color: var(--demo-pale-blue);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 0;
    font-size: 0.8rem;
    font-weight: 500;
}

.demo-page .demo-feature-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

/* Section 3 — Demo FAQs -------------------------------------------------- */

.demo-page .demo-faqs h2 {
    color: var(--demo-bright-blue);
    margin-bottom: 3rem;
}

.demo-page .demo-accordion {
    max-width: 48rem;
    margin: 0 auto;
    --bs-accordion-border-width: 0;
    --bs-accordion-btn-focus-box-shadow: none;
}

.demo-page .demo-accordion .accordion-item {
    background-color: var(--demo-grey);
    border: 0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
}

.demo-page .demo-accordion .accordion-item:has(.accordion-collapse.show),
.demo-page .demo-accordion .accordion-item:has(.accordion-collapse.collapsing) {
    background-color: var(--demo-pale-blue);
}

.demo-page .demo-accordion .accordion-button {
    background-color: transparent;
    box-shadow: none;
    color: var(--demo-neutral);
    font-size: 1rem;
    font-weight: 500;
    padding: 1.25rem 1.5rem;
}

.demo-page .demo-accordion .accordion-button::after {
    /* Bootstrap's chevron, recoloured to the page's neutral. */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23414042'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-size: 0.9rem;
    width: 0.9rem;
    height: 0.9rem;
}

.demo-page .demo-accordion .accordion-body {
    padding: 0 1.5rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Section 4 — Support ---------------------------------------------------- */

.demo-page .demo-support {
    background-color: var(--demo-grey);
}

.demo-page .demo-support h2 {
    color: var(--demo-bright-blue);
    margin-bottom: 1.5rem;
}

.demo-page .demo-support-icon {
    color: var(--demo-bright-blue);
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    display: block;
}

.demo-page .demo-support-item h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.demo-page .demo-support-item p,
.demo-page .demo-support-item a.demo-support-detail {
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    color: var(--demo-neutral);
    text-decoration: none;
    display: block;
}

.demo-page .demo-support-item a.demo-support-detail:hover {
    text-decoration: underline;
}
