* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-soft);
    color: var(--text-primary);
}

.wrap {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.demo-hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(circle at top right, rgba(26, 47, 134, 0.12), transparent 28%),
        linear-gradient(180deg, var(--bg-white), var(--bg-soft));
}

.demo-hero::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 167, 91, 0.22), transparent 68%);
    pointer-events: none;
}

.demo-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 28px;
    padding: clamp(56px, 7vw, 88px) 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--brand-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

.demo-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
}

.demo-hero p {
    margin: 0;
    max-width: 640px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.demo-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.demo-points span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(26, 47, 134, 0.18);
    border-radius: 999px;
    background: rgba(26, 47, 134, 0.08);
    color: var(--brand-navy);
    font-size: 12px;
    font-weight: 700;
}

.demo-panel,
.demo-form,
.demo-side {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-white);
    box-shadow: var(--shadow-card);
}

.demo-panel {
    padding: 24px;
    background: linear-gradient(145deg, rgba(26, 47, 134, 0.06), rgba(200, 167, 91, 0.12));
}

.demo-panel strong {
    display: block;
    margin-bottom: 8px;
    color: var(--brand-navy);
    font-size: 22px;
    font-family: "Playfair Display", "Libre Baskerville", serif;
}

.demo-panel span {
    color: var(--text-secondary);
    line-height: 1.7;
}

.demo-layout {
    display: grid;
    gap: 24px;
    margin-top: 28px;
}

.demo-form,
.demo-side {
    padding: 24px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(26, 47, 134, 0.28);
    box-shadow: 0 0 0 4px rgba(26, 47, 134, 0.08);
}

small {
    color: var(--brand-red);
}

.demo-submit,
.whatsapp-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 180ms ease, filter 180ms ease;
}

.demo-submit {
    width: 100%;
    margin-top: 12px;
    border: 1px solid var(--brand-navy);
    background: var(--brand-navy);
    color: var(--bg-white);
    font-size: 16px;
    cursor: pointer;
}

.demo-submit:hover,
.whatsapp-box:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
}

.demo-side h2 {
    margin: 0 0 16px;
    font-size: 30px;
}

.step {
    display: flex;
    gap: 14px;
    padding: 14px;
    border: 1px solid rgba(26, 47, 134, 0.08);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--bg-white), rgba(26, 47, 134, 0.03));
}

.step + .step {
    margin-top: 12px;
}

.step b {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--brand-navy);
    color: var(--bg-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.step span {
    color: var(--text-secondary);
    line-height: 1.7;
}

.whatsapp-box {
    width: 100%;
    margin-top: 16px;
    border: 1px solid var(--brand-green);
    background: rgba(15, 118, 110, 0.08);
    color: var(--brand-green);
}

@media (min-width: 768px) {
    .demo-layout {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .demo-hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .wrap {
        width: min(1100px, calc(100% - 24px));
    }

    .demo-points {
        display: grid;
    }
}
