/* === Demo page === */

.demo-hero{
    padding:clamp(3rem, 7vw, 4.5rem) 0 4.5rem;
    background:var(--sm-surface);
}

.demo-hero-content{
    max-width:720px;
    margin-inline:auto;
}

.demo-hero-text{
    max-width:560px;
    color:var(--sm-text);
    font-size:clamp(1rem, 2vw, 1.0625rem);
    line-height:1.6;
}


/* ---------- Form section ---------- */

.demo-form-section{
    padding:0 0 clamp(4rem, 8vw, 6.5rem);
}


/* ---------- Form card ---------- */

.demo-form{
    position:relative;
    z-index:1;

    width:100%;
    max-width:100%;

    padding:clamp(1.5rem, 4vw, 2.75rem);

    margin-top:-1.5rem;

    border:1px solid var(--sm-border);
    border-radius:1rem;

    background:#fff;

    box-shadow:0 4px 24px rgb(3 19 46 / 6%);
}


/* ---------- Labels ---------- */

.demo-form .form-label{
    margin-bottom:.5rem;

    color:var(--sm-navy);

    font-size:.875rem;
    font-weight:600;
}


/* ---------- Inputs ---------- */

.demo-form .form-control{
    width:100%;
    min-width:0;

    padding:.8125rem 1rem;

    color:var(--sm-navy);

    border:1.5px solid rgb(3 19 46 / 14%);
    border-radius:.625rem;

    background:#fff;

    font-size:1rem;
}

.demo-form .form-control::placeholder{
    color:rgb(3 19 46 / 42%);
}

.demo-form .form-control:focus{
    border-color:var(--sm-primary);

    box-shadow:0 0 0 .2rem rgb(0 107 181 / 12%);
}

.demo-form textarea.form-control{
    min-height:120px;

    resize:vertical;
}


/* ---------- Button ---------- */

.demo-form .btn{
    min-height:3.25rem;

    border-radius:.625rem;

    font-size:1rem;
    font-weight:600;
}


/* ---------- Privacy ---------- */

.form-privacy{
    color:rgb(3 19 46 / 50%);

    font-size:.8rem;
    line-height:1.5;
}


/* ---------- Tablet ---------- */

@media (max-width:767.98px){

    .demo-hero{
        padding-top:3rem;
        padding-bottom:4rem;
    }

    .demo-form-section{
        padding-bottom:4rem;
    }

    .demo-form{
        padding:1.5rem;
        margin-top:-1rem;
    }

}


/* ---------- Smartphone ---------- */

@media (max-width:575.98px){

    .demo-hero{
        padding:2.5rem 0 3rem;
    }

    .demo-hero h1{
        font-size:2rem;
    }

    .demo-form-section{
        padding-top:1rem;
    }

    .demo-form{
        padding:1.25rem;

        margin-top:0;

        border-radius:.75rem;
    }

    .demo-form .form-control{
        padding:.75rem .875rem;

        font-size:16px;
    }

    .demo-form .btn{
        width:100%;

        padding:.8rem 1rem;
    }

}