/* 09b — REQUEST A DEMO */

.demo-cta-panel {
    background: var(--brand-soft);
    border-radius: 24px;
    padding: 56px;
    position: relative;
    overflow: hidden;
}

.demo-cta-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(40% 60% at 8% 20%, rgba(93, 46, 222, 0.1) 0%, transparent 70%),
        radial-gradient(40% 60% at 95% 90%, rgba(184, 155, 251, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.demo-cta-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: stretch;
}

.demo-cta-side {
    display: flex;
    flex-direction: column;
}

.demo-cta-side .sec-eyebrow {
    align-self: flex-start;
}

.demo-popular {
    position: relative;
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.demo-popular-label {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
}

.demo-popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    flex: 1;
}

.demo-popular-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    text-decoration: none;
    color: var(--ink);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        transform 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease,
        background 200ms ease;
}

.demo-popular-card:hover {
    transform: translateY(-2px);
    border-color: var(--brand);
    box-shadow: 0 16px 28px -20px rgba(93, 46, 222, 0.3);
}

.demo-popular-card.is-active {
    border-color: var(--brand);
    box-shadow: 0 16px 28px -20px rgba(93, 46, 222, 0.3);
}

.demo-popular-card.is-active .demo-popular-ico {
    background: var(--brand);
    color: #fff;
}

.demo-popular-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.demo-popular-arrow {
    color: var(--muted-2);
    transition:
        color 200ms ease,
        transform 200ms ease;
}

.demo-popular-card:hover .demo-popular-arrow {
    color: var(--brand);
    transform: translate(2px, -2px);
}

.demo-popular-card h5 {
    margin: 0 0 6px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.demo-popular-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
}

.demo-cta-form-pulse {
    animation: demoFormPulse 900ms ease;
}

@keyframes demoFormPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(93, 46, 222, 0.4);
    }

    70% {
        box-shadow: 0 0 0 14px rgba(93, 46, 222, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(93, 46, 222, 0);
    }
}

.demo-popular-ico {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--brand-soft);
    color: var(--brand);
    display: grid;
    place-items: center;
    transition: background 200ms ease, color 200ms ease;
}

@media (max-width: 480px) {
    .demo-popular-grid {
        grid-template-columns: 1fr;
    }
}

.demo-cta-side h2 {
    margin: 16px 0 16px;
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--ink);
}

.demo-cta-side p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
    margin: 0 0 24px;
}

.demo-cta-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-cta-points li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink);
}

.demo-cta-points li::before {
    content: "";
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--brand);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.demo-cta-form {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 22px 46px -28px rgba(15, 23, 42, 0.28);
}

.demo-cta-form form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.demo-cta-label {
    margin: 0 0 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.demo-cta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.demo-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--line-2);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        color 180ms ease,
        transform 120ms ease;
    user-select: none;
}

.demo-pill:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.demo-pill:active {
    transform: scale(0.96);
}

input[name="solution_type[]"]:checked + .demo-pill,
.demo-pill.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    transform: scale(1.04);
}

input[name="solution_type[]"]:focus-visible + .demo-pill {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.demo-field label .req {
    color: #dc2626;
    font-weight: 700;
}

.demo-field label .opt {
    font-weight: 400;
    color: var(--muted-2);
}

.demo-cta-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.demo-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}

.demo-field label span {
    font-weight: 400;
    color: var(--muted-2);
}

.demo-field input,
.demo-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--ink);
    font-family: inherit;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.demo-field input:focus,
.demo-field textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(93, 46, 222, 0.1);
}

.demo-input-wrap {
    position: relative;
}

.demo-input-wrap input.is-valid {
    padding-right: 40px;
    border-color: #059669;
}

.demo-field-check {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%) scale(0.6);
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #059669;
    color: #fff;
    opacity: 0;
    transition:
        opacity 160ms ease,
        transform 160ms ease;
    pointer-events: none;
}

.demo-field-check.is-visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.demo-field-counter {
    display: block;
    margin-top: 5px;
    text-align: right;
    font-size: 11.5px;
    color: var(--muted-2);
}

.demo-field textarea {
    resize: vertical;
    min-height: 80px;
}

.demo-field-error {
    display: none;
    margin-top: 5px;
    font-size: 12.5px;
    color: #dc2626;
}

.demo-cta-submit {
    width: 100%;
    justify-content: center;
    height: 52px;
    margin-top: auto;
}

.demo-cta-submit:disabled {
    opacity: 0.7;
}

.demo-cta-success {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #ecfdf5;
    color: #047857;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.demo-cta-error-alert {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .demo-cta-panel {
        padding: 40px 28px;
    }

    .demo-cta-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .demo-cta-panel {
        padding: 32px 20px;
    }

    .demo-cta-form {
        padding: 24px 20px;
    }
}
