.demo-body {
    margin: 0;
    background: #f7f8f8;
    color: #17252b;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.demo-body * {
    box-sizing: border-box;
}

.demo-body [hidden] {
    display: none !important;
}

.demo-body a {
    color: #176b68;
    text-underline-offset: 4px;
}

.demo-body button, .demo-body input, .demo-body select, .demo-body textarea {
    font: inherit;
}

.demo-header {
    max-width: 1320px;
    margin: auto;
    padding: 26px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-brand img {
    width: 155px;
    max-height: 48px;
    object-fit: contain;
}

.demo-home {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.demo-layout {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    max-width: 1190px;
    margin: 0 auto 40px;
    padding: 0;
    border: 1px solid #dfe5e5;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 32px #17252b05;
    background: white;
}

.demo-layout--wide {
    max-width: 1320px;
    grid-template-columns: .65fr 1.35fr;
}

.demo-story {
    position: relative;
    overflow: hidden;
    padding: 48px 36px;
    background: #eef2f2;
    border-right: 1px solid #dde4e4;
}

.demo-eyebrow {
    color: #536f70;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
}

.demo-story h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 3.3vw, 47px);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: -.045em;
    margin: 22px 0;
}

.demo-story > p {
    color: #617174;
    max-width: 400px;
}

.story-channels {
    display: grid;
    gap: 28px;
    margin-top: 52px;
}
.story-channels > div {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    color: #667579;
    font-size: 14px;
}
.story-channels svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #22635e;
    margin-top: 4px;
}
.story-channels strong {
    display: block;
    color: #23383c;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 3px;
}

.demo-card {
    padding: 46px 42px;
    min-width: 0;
}

.demo-card h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -.035em;
    margin: 12px 0;
    line-height: 1.2;
}

.demo-card > p {
    color: #617174;
}

.demo-card h3 {
    font-size: 19px;
    margin: 0 0 8px;
}

.demo-card form {
    margin-top: 24px;
}

.demo-card label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 7px;
}

.demo-card input, .demo-card select, .demo-card textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #d5dfe0;
    border-radius: 10px;
    padding: 12px 14px;
    color: #24363b;
    background: #fff;
}

.demo-card textarea {
    resize: vertical;
}

.demo-body :focus-visible {
    outline: 3px solid #8db9b4;
    outline-offset: 3px;
}

.demo-primary, .demo-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, transform .2s;
    cursor: pointer;
}

.demo-body .demo-primary {
    background: #174d49;
    color: white;
    border: 1px solid #174d49;
    width: 100%;
    margin-top: 20px;
}

.demo-primary:hover {
    background: #103d3a;
    transform: translateY(-1px);
}

.demo-primary:disabled {
    opacity: .65;
    cursor: wait;
    transform: none;
}

.demo-body .demo-secondary {
    border: 1px solid #d4dfdf;
    background: #eff5f4;
    color: #215b56;
}

.oauth-options {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.demo-body .provider-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    border: 1px solid #d9e0e1;
    padding: 12px;
    border-radius: 10px;
    color: #24363b;
    text-decoration: none;
    font-weight: 500;
}

.provider-button:hover {
    background: #f2f5f5;
}

.demo-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #6a787d;
    font-size: 14px;
    margin-top: 22px;
}

.demo-divider::before, .demo-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e7e7;
}

.demo-fine, .field-note {
    font-size: 14px;
    color: #607276;
    margin: 14px 0 0;
}

.demo-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.demo-phone {
    display: grid;
    grid-template-columns: 135px 1fr;
    gap: 10px;
}

.optional {
    color: #6a787d;
    font-weight: 400;
    font-size: 14px;
    margin-left: 4px;
}

.verified-email {
    overflow-wrap: anywhere;
    background: #eef6f1;
    color: #3e7056 !important;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
}

.channel-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 32px 0;
}

.demo-body .channel-option {
    border: 1px solid #d9e1e1;
    border-radius: 16px;
    padding: 22px 18px;
    text-decoration: none;
    color: #23383c;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    transition: .2s;
}

.channel-option:hover {
    background: #eff5f4;
    border-color: #82aaa5;
    transform: translateY(-4px);
}

.channel-option strong {
    font-size: 19px;
}

.channel-option > span:not(.channel-icon) {
    font-size: 14px;
    color: #657579;
    flex: 1;
}

.channel-option b {
    font-size: 14px;
    color: #215b56;
}

.channel-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #e9f1ef;
    color: #215b56;
    margin-bottom: 8px;
}

.channel-icon svg {
    width: 23px;
}

.demo-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid #e1e7e7;
    font-size: 14px;
    flex-wrap: wrap;
}

.contact-summary {
    display: grid;
    gap: 4px;
    padding: 20px;
    background: #f3f6f5;
    border-radius: 12px;
    margin-top: 24px;
}

.contact-summary span, .contact-summary a {
    font-size: 14px;
}

.contact-summary strong {
    font-size: 23px;
    font-weight: 500;
}

.demo-next {
    margin-top: 32px;
    padding-top: 26px;
    border-top: 1px solid #e1e7e7;
}

.demo-next p {
    color: #657579;
}

.demo-back {
    display: inline-block;
    margin-top: 20px;
    font-size: 14px;
}

.demo-status {
    margin: 20px 0 0;
    overflow-wrap: anywhere;
}

.demo-status:empty {
    display: none;
}

.demo-card .demo-error {
    color: #a63447;
}

.demo-card .demo-ok {
    color: #287052;
}

.demo-calendar {
    height: 760px;
    min-height: 760px;
    width: 100%;
    margin: 20px 0 0;
}

.calendar-fallback {
    font-size: 14px;
}

.booking-success {
    background: #eaf6ef;
    padding: 22px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.demo-chat-messages {
    height: 380px;
    overflow-y: auto;
    border-radius: 14px;
    background: #f3f6f5;
    padding: 20px;
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-message {
    padding: 12px 16px;
    border-radius: 14px;
    max-width: 88%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.demo-message.agent {
    white-space: normal;
    background: white;
    border: 1px solid #dce6e3;
    align-self: flex-start;
}

.demo-message.agent > :first-child { margin-top: 0; }
.demo-message.agent > :last-child { margin-bottom: 0; }
.demo-message.agent p, .demo-message.agent ul, .demo-message.agent ol { margin: 0 0 12px; }
.demo-message.agent ul, .demo-message.agent ol { padding-left: 24px; }
.demo-message.agent li + li { margin-top: 6px; }
.demo-message.agent h1, .demo-message.agent h2, .demo-message.agent h3,
.demo-message.agent h4, .demo-message.agent h5, .demo-message.agent h6 { font-size: 1.1em; margin: 16px 0 8px; }
.demo-message.agent pre { overflow-x: auto; padding: 12px; background: #f3f6f5; border-radius: 8px; }
.demo-message.agent code { white-space: pre-wrap; font-size: .9em; }
.demo-message.agent blockquote { border-left: 3px solid #7caba5; padding-left: 12px; margin-left: 0; }
.demo-message.agent table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.demo-message.agent th, .demo-message.agent td { padding: 6px 10px; border: 1px solid #dce6e3; }

.demo-message.user {
    background: #215b56;
    color: white;
    align-self: flex-end;
}

.demo-card .demo-chat-composer {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.demo-chat-composer .demo-primary {
    margin: 0;
    width: auto;
}

.demo-footer {
    max-width: 1190px;
    margin: 0 auto;
    padding: 0 24px 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #657579;
    font-size: 14px;
}

@media (max-width: 1000px) {
    .demo-layout, .demo-layout--wide {
        margin: 0 24px 30px;
        grid-template-columns: .7fr 1fr;
    }
    .demo-story {
        padding: 40px 28px;
    }
    .demo-card {
        padding: 36px 28px;
    }
    .channel-options {
        grid-template-columns: 1fr;
    }
    .channel-option {
        gap: 8px !important;
    }
}

@media (max-width: 700px) {
    .demo-header {
        padding: 20px;
    }
    .demo-brand img {
        width: 130px;
    }
    .demo-layout, .demo-layout--wide {
        grid-template-columns: 1fr;
        margin: 0 14px 28px;
        border-radius: 20px;
    }
    .demo-story {
        padding: 30px 24px;
    }
    .demo-story h1 {
        font-size: 33px;
        max-width: 400px;
        margin: 14px 0;
    }
    .demo-story > p {
        margin-bottom: 0;
    }
    .story-channels {
        display: none;
    }
    .demo-card {
        padding: 28px 22px;
    }
    .demo-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .demo-phone {
        grid-template-columns: 112px 1fr;
    }
    .demo-footer {
        flex-direction: column;
        font-size: 12px;
        gap: 8px;
    }
    .demo-chat-messages {
        height: 360px;
    }
    .demo-calendar {
        height: max(630px, calc(100svh - 110px));
        min-height: 630px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .demo-body * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 700px) {
    .demo-story {
        padding: 22px 24px;
    }
    .demo-story h1 {
        font-size: 27px;
        margin: 10px 0 0;
    }
    .demo-story > p {
        display: none;
    }
}

.demo-choice-group {
    border: 0;
    padding: 0;
    margin: 20px 0;
    min-width: 0;
}
.demo-choice-group legend {
    float: none;
    width: auto;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}
.demo-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.demo-card .demo-choice {
    position: relative;
    margin: 0;
    cursor: pointer;
}
.demo-card .demo-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    padding: 0;
}
.demo-choice span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #d8e1e1;
    border-radius: 12px;
    background: #fff;
    color: #3d5559;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, border-color .15s;
}
.demo-choice:hover span { border-color: #7caba5; }
.demo-choice input:checked + span {
    background: #eaf3f1;
    border-color: #276e63;
    color: #174d49;
}
.demo-choice input:focus-visible + span {
    outline: 3px solid #8db9b4;
    outline-offset: 3px;
}
.demo-choice svg { width: 18px; height: 18px; flex-shrink: 0; }
.demo-choice .choice-check { width: 14px; opacity: 0; margin-left: auto; }
.demo-choice input:checked + span .choice-check { opacity: 1; }
.demo-home, .verified-email { display: flex; align-items: center; gap: 8px; }
.demo-home svg, .verified-email svg, .demo-primary svg { width: 18px; height: 18px; flex-shrink: 0; }
.demo-primary { gap: 10px; }
.provider-icon { width: 20px; height: 20px; }
.demo-goals { display: grid; grid-template-columns: 1fr 1fr; }
.demo-goals .demo-choice span { height: 100%; }
@media (max-width: 700px) {
    .demo-goals { grid-template-columns: 1fr; }
    .demo-story { border-right: 0; border-bottom: 1px solid #dde4e4; }
}

.profile-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}
.demo-body .profile-actions .demo-primary { margin: 0; flex: 1; }
.profile-actions .demo-secondary { gap: 8px; }
.profile-actions svg { width: 18px; height: 18px; }
.profile-extra { margin-top: 20px; font-size: 14px; }
.profile-extra summary { cursor: pointer; color: #176b68; }
[data-profile-heading]:focus { outline: none; }

.demo-layout.demo-layout--full {
    display: block;
    width: calc(100% - 64px);
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
}
.demo-layout--full .demo-card { padding: 30px; }
.demo-calendar iframe { display: block; width: 100%; height: 100%; border: 0; }
.demo-layout--full .channel-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.demo-request-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    margin-top: 20px;
    background: #eaf3f1;
    border-radius: 10px;
    color: #174d49;
}
.demo-request-confirmation p { margin: 0; }
.demo-request-confirmation svg { flex-shrink: 0; width: 24px; }
@media (max-width: 1000px) {
    .demo-layout--full .channel-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .demo-layout.demo-layout--full { width: auto; margin: 0 8px 24px; }
    .demo-layout--full .demo-card { padding: 22px 10px; }
    .demo-layout--full .channel-options { grid-template-columns: 1fr; }
}

.schedule-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 500;
    margin: 0;
}
@media (max-width: 700px) {
    .demo-body[data-step="schedule"] .demo-header { padding: 12px 16px; }
    .demo-body[data-step="schedule"] .demo-brand img { width: 112px; }
    .demo-body[data-step="schedule"] .demo-card { padding: 12px 4px; }
    .demo-body[data-step="schedule"] .schedule-title { font-size: 20px; padding: 0 8px; }
    .demo-body[data-step="schedule"] .demo-calendar { margin-top: 8px; }
    .demo-body[data-step="schedule"] .demo-request-confirmation { padding: 10px; margin: 8px; font-size: 13px; }
}

label.channel-option { position: relative; cursor: pointer; }
label.channel-option input { position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; accent-color: #215b56; }
label.channel-option:has(input:checked) { border-color: #276e63; background: #eaf3f1; box-shadow: inset 0 0 0 1px #276e63; }
label.channel-option:focus-within { outline: 3px solid #8db9b4; outline-offset: 3px; }
