/* Book a demo popup, adapted from the eMembership get-started modal. */

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

.demo-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.demo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 11, 24, 0.72);
    backdrop-filter: blur(8px);
}

.demo-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(7, 11, 24, 0.35), 0 0 0 1px rgba(236, 46, 94, 0.12);
}

.demo-close {
    position: absolute;
    top: 12px;
    right: 16px;
    z-index: 2;
    width: 40px;
    height: 40px;
    font-size: 1.8rem;
    line-height: 1;
    color: #5B6475;
    border: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
}

.demo-close:hover { color: #14181c; background: #F6F7FA; }

.demo-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    min-height: 520px;
}

.demo-aside {
    background: linear-gradient(165deg, #14181c 0%, #2a1218 100%);
    color: #fff;
    padding: 44px 36px;
}

.demo-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffb3c7;
    margin-bottom: 14px;
}

.home .demo-aside h2,
.demo-aside h2 {
    font-size: 1.85rem;
    letter-spacing: -0.035em;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #fff !important;
}

.demo-aside > p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 22px;
}

.demo-aside-label {
    font-size: 0.8rem !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45) !important;
    margin-bottom: 12px !important;
}

.demo-ticks {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.demo-ticks li {
    display: flex;
    gap: 10px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.86);
}

.demo-ticks i { color: #7dcea0; margin-top: 3px; flex-shrink: 0; }

.demo-main { padding: 44px 36px 36px; }

.demo-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.demo-prog-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #E6E9F0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
}

.demo-prog-step.is-active {
    background: #EC2E5E;
    border-color: #EC2E5E;
    color: #fff;
}

.demo-prog-step.is-done {
    background: #14181c;
    border-color: #14181c;
    color: #fff;
}

.demo-prog-line {
    flex: 1;
    height: 2px;
    background: #E6E9F0;
}

.demo-step-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 22px;
}

.demo-pane { display: none; }
.demo-pane.is-active { display: block; }

.demo-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #14181c;
}

.demo-form input,
.demo-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E6E9F0;
    border-radius: 12px;
    font-size: 1rem;
    margin-bottom: 18px;
    font-family: inherit;
    background: #fff;
    color: #14181c;
}

.demo-form input:focus,
.demo-form select:focus {
    outline: none;
    border-color: #EC2E5E;
    box-shadow: 0 0 0 3px rgba(236, 46, 94, 0.12);
}

.demo-q {
    font-weight: 700;
    color: #14181c;
    margin-bottom: 14px;
}

.demo-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.demo-chip {
    border: 1px solid #E6E9F0;
    background: #F6F7FA;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #14181c;
    cursor: pointer;
    font-family: inherit;
}

.demo-chip.is-on,
.demo-chip:hover {
    border-color: #EC2E5E;
    background: rgba(236, 46, 94, 0.08);
    color: #8B1538;
}

.demo-nav-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.demo-form .btn-ghost {
    background: transparent;
    border: 1.5px solid #E6E9F0;
    color: #14181c;
    border-radius: 999px;
    padding: 0.75rem 1.3rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.demo-form .btn-ghost:hover { border-color: #EC2E5E; color: #EC2E5E; }

.demo-form .btn-primary {
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    background: #EC2E5E;
    color: #fff !important;
    padding: 0.85rem 1.4rem;
    font-weight: 700;
    font-family: inherit;
}

.demo-form .btn-primary:hover {
    background: #c2185b;
    color: #fff !important;
}

.demo-form .required { color: #EC2E5E; }

.demo-form .form-privacy {
    font-size: 0.82rem;
    color: #5B6475;
    margin: 0 0 16px;
}

.demo-form .form-privacy a { color: #EC2E5E; }

.demo-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.demo-done { text-align: center; padding: 40px 12px; }
.demo-done h3 { margin: 16px 0 8px; color: #14181c; }
.demo-done p { color: #5B6475; line-height: 1.7; }
.demo-done[hidden] { display: none !important; }
.demo-done .success-icon { font-size: 2.6rem; color: #2e7d32; }
.demo-done-error .error-icon { font-size: 2.6rem; color: #EC2E5E; }
.demo-done a { color: #EC2E5E; }

body.demo-open { overflow: hidden; }

@media (max-width: 800px) {
    .demo-grid { grid-template-columns: 1fr; }
    .demo-aside { padding: 28px 22px 8px; }
    .home .demo-aside h2,
    .demo-aside h2 { font-size: 1.45rem; }
    .demo-ticks,
    .demo-aside-label { display: none; }
    .demo-aside > p { margin-bottom: 0; }
    .demo-main { padding: 24px 22px 28px; }
    .demo-modal { padding: 12px; align-items: flex-start; }
    .demo-dialog { max-height: calc(100vh - 24px); }
    .demo-form .form-row { grid-template-columns: 1fr; }
}
