﻿body {
    min-height: 100vh;
}

.demo-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1fr);
    gap: 48px;
    align-items: start;
}

.demo-intro {
    position: sticky;
    top: 116px;
    padding-top: 36px;
}

.demo-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

    .demo-proof-grid div,
    .demo-contact-card {
        border: 1px solid rgba(148, 163, 184, 0.16);
        background: rgba(255, 255, 255, 0.58);
        border-radius: 20px;
        padding: 18px;
    }

.dark .demo-proof-grid div,
.dark .demo-contact-card {
    background: rgba(18, 21, 40, 0.42);
}

.demo-proof-grid strong {
    display: block;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--c1);
    margin-bottom: 6px;
}

.demo-proof-grid span {
    display: block;
    color: #64748b;
    line-height: 1.45;
    font-size: 0.88rem;
}

.dark .demo-proof-grid span {
    color: #9aa7bb;
}

.demo-contact-card {
    margin-top: 24px;
    display: grid;
    gap: 18px;
}

    .demo-contact-card div {
        display: grid;
        grid-template-columns: 46px 1fr;
        gap: 12px;
    }

    .demo-contact-card i {
        grid-row: span 2;
        width: 46px;
        height: 46px;
        border-radius: 16px;
        background: rgba(0, 200, 255, 0.12);
        color: var(--c1);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .demo-contact-card span {
        color: #64748b;
        font-size: 0.78rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

.dark .demo-contact-card span {
    color: #9aa7bb;
}

.demo-contact-card strong {
    color: #111827;
    font-weight: 800;
}

.dark .demo-contact-card strong {
    color: #ffffff;
}

.demo-form-panel {
    border-radius: 32px;
    padding: 34px;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.demo-form-head {
    margin-bottom: 26px;
}

    .demo-form-head h2 {
        font-family: 'Exo 2', sans-serif;
        font-size: 2rem;
        font-weight: 800;
        color: #111827;
        margin: 0 0 8px;
    }

.dark .demo-form-head h2 {
    color: #ffffff;
}

.demo-form-head p {
    color: #64748b;
    margin: 0;
    line-height: 1.55;
}

.dark .demo-form-head p {
    color: #9aa7bb;
}

.demo-form {
    display: grid;
    gap: 20px;
}

.demo-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

    .demo-form-grid label {
        display: grid;
        gap: 8px;
    }

        .demo-form-grid label span {
            color: #64748b;
            font-weight: 800;
            font-size: 0.92rem;
        }

.dark .demo-form-grid label span {
    color: #9aa7bb;
}

.demo-form-grid input,
.demo-form-grid select,
.demo-form-grid textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.64);
    color: #111827;
    padding: 0 16px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.dark .demo-form-grid input,
.dark .demo-form-grid select,
.dark .demo-form-grid textarea {
    background: rgba(8, 10, 20, 0.58);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.10);
}

.demo-form-grid textarea {
    min-height: 132px;
    padding: 15px 16px;
    resize: vertical;
}

    .demo-form-grid input:focus,
    .demo-form-grid select:focus,
    .demo-form-grid textarea:focus {
        border-color: rgba(0, 200, 255, 0.68);
        box-shadow: 0 0 0 4px rgba(0, 200, 255, 0.11);
    }

.demo-form-grid em,
.demo-validation-summary {
    color: #fb7185;
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 700;
}

.demo-span-2 {
    grid-column: span 2;
}

.demo-submit {
    min-height: 58px;
    width: 100%;
    border: 0;
    border-radius: 18px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

.demo-success-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

    .demo-success-modal.is-open {
        display: flex;
    }

.demo-success-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(10px);
}

.demo-success-card {
    position: relative;
    z-index: 2;
    width: min(560px, 100%);
    padding: 42px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 10, 20, 0.92);
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.demo-success-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--grad);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.demo-success-card h2 {
    font-family: 'Exo 2', sans-serif;
    color: #ffffff;
    font-size: 2.35rem;
    font-weight: 800;
    margin: 0 0 12px;
}

.demo-success-card p {
    color: #9aa7bb;
    line-height: 1.65;
    margin: 0 0 26px;
}

.demo-success-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

    .demo-success-actions a,
    .demo-success-actions button {
        min-height: 48px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.06);
        color: #ffffff;
        font-weight: 800;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .demo-success-actions .primary {
        border: 0;
        background: var(--grad);
    }

@media (max-width: 1100px) {
    .demo-shell {
        grid-template-columns: 1fr;
    }

    .demo-intro {
        position: static;
    }
}

@media (max-width: 720px) {
    .demo-form-panel {
        padding: 22px;
        border-radius: 24px;
    }

    .demo-form-grid,
    .demo-proof-grid {
        grid-template-columns: 1fr;
    }

    .demo-span-2 {
        grid-column: auto;
    }

    .demo-success-card {
        padding: 30px 22px;
    }
}
