/* ==========================================================================
   Demo page (templates/Pages/request_demo.php), as on the previous website:
   the HubSpot booking calendar, then the on-demand videos (category list + player).
   ========================================================================== */

/* ---------- Book a private demo ---------- */

.demo-calendar {
    width: 95%;
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 80px;
    text-align: center;
}

.demo-calendar__title {
    margin: 0 0 12px;
    color: #1e2123;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.demo-calendar__text {
    max-width: 680px;
    margin: 0 auto;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

.demo-calendar__frame {
    min-height: 660px;
    padding-top: 1rem;
}

/* ---------- On-demand videos ---------- */

.demo-videos {
    width: 95%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 100px 0;
}

.demo-videos__title {
    margin: 0 0 16px;
    color: #1e2123;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
}

.demo-videos__text {
    max-width: 700px;
    margin: 0 auto 60px;
    color: #555;
    font-size: 16px;
    text-align: center;
}

.demo-videos__layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.demo-videos__groups {
    display: grid;
    gap: 16px;
    width: 40%;
    max-width: 440px;
}

.demo-videos__group {
    border: 1px solid #555;
    border-radius: 12px;
    transition: box-shadow 0.2s ease;
}

.demo-videos__group.is-active {
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(84, 84, 84, 0.25);
}

.demo-videos__group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 24px;
    border: 0;
    background: none;
    color: #1e2123;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.demo-videos__arrow {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    color: #555;
}

.demo-videos__arrow .icon {
    width: 14px;
    height: 14px;
}

.demo-videos__group.is-active .demo-videos__arrow {
    background: #6772e5;
    color: #fff;
}

.demo-videos__list {
    display: none;
    margin: -12px 0 0;
    padding: 0 24px 20px;
    list-style: none;
}

.demo-videos__group.is-active .demo-videos__list {
    display: block;
}

.demo-videos__item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 0;
    border: 0;
    background: none;
    color: #3b3f42;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

.demo-videos__item .icon {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
}

.demo-videos__item:hover,
.demo-videos__item.is-active {
    color: #6772e5;
}

.demo-videos__player {
    width: 70%;
    max-width: 700px;
}

.demo-videos__screen {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
}

.demo-videos__screen iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.demo-videos__nav {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(219, 219, 219, 0.4);
    -webkit-backdrop-filter: blur(6.7px);
    backdrop-filter: blur(6.7px);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
}

.demo-videos__nav .icon {
    width: 20px;
    height: 20px;
}

.demo-videos__nav--prev {
    left: 12px;
}

.demo-videos__nav--prev .icon {
    transform: scaleX(-1);
}

.demo-videos__nav--next {
    right: 12px;
}

.demo-videos__nav[hidden] {
    display: none;
}

.demo-videos__dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.demo-videos__dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d1d1d1;
    cursor: pointer;
}

.demo-videos__dots button.is-active {
    background: #6772e5;
}

/* ---------- Responsive ---------- */

/* Tablets and phones: one column; the player sits under the open category (site.js). */
@media (max-width: 1024px) {
    .demo-videos__layout {
        display: block;
    }

    .demo-videos__groups {
        width: 100%;
        max-width: none;
    }

    .demo-videos__group .demo-videos__player {
        width: 100%;
        max-width: none;
        padding: 0 24px 24px;
    }
}

@media (max-width: 768px) {
    .demo-calendar {
        padding-top: 40px;
    }

    .demo-calendar__title,
    .demo-videos__title {
        font-size: 28px;
    }

    .demo-calendar__text,
    .demo-videos__text {
        font-size: 14px;
    }

    .demo-videos {
        padding: 60px 0;
    }

    .demo-videos__text {
        margin-bottom: 32px;
    }

    .demo-videos__group-head {
        padding: 18px 20px;
    }

    .demo-videos__list {
        padding: 0 20px 16px;
    }

    .demo-videos__group .demo-videos__player {
        padding: 0 16px 20px;
    }
}
