<div class="form-1">
    <div class="entity">
        <header class="entity-header">
            <h1 class="entity-name">Form 1</h1>
        </header>
        <main class="entity-main">
            <h2>The Khan’s Drinking Fountain</h2>
            <p>Though in many ways a clever traveller and, despite this xenophobia, an at times astute observer, he was in other ways a fish out of water, even going about at first in bare feet on the frozen winter ground. <a href="https://publicdomainreview.org/2019/04/04/the-khans-drinking-fountain/">Source</a></p>
            <form>
                <label>
                    <span>Name</span>
                    <input type="text" />
                </label>
                <label>
                    <span>Email</span>
                    <input type="email" />
                </label>
                <label>
                    <span>URL</span>
                    <input type="url" />
                </label>
                <label>
                    <span>Message</span>
                    <textarea></textarea>
                </label>
                <div class="action">
                    <button class="next-axn">Next</button>
                </div>
            </form>
        </main>
    </div>
</div>
<div class="form-2">
    <div class="entity">
        <header class="entity-header">
            <h1 class="entity-name">Form 2</h1>
        </header>
        <main class="entity-main">
            <h2>The Khan’s Drinking Fountain</h2>
            <p>A press a button, lean down, and sip affair it was not. Originally, bellows had been placed within the tree to pipe air through the angel’s trumpet whenever the khan called for a drink, but that hadn’t worked out. <a href="https://publicdomainreview.org/2019/04/04/the-khans-drinking-fountain/">Source</a></p>
            <form>
                <label>
                    <span>Name</span>
                    <input type="text" />
                </label>
                <label>
                    <span>Email</span>
                    <input type="email" />
                </label>
                <label>
                    <span>URL</span>
                    <input type="url" />
                </label>
                <label>
                    <span>Message</span>
                    <textarea></textarea>
                </label>
                <div class="action">
                    <button class="next-axn disabled-axn">Next</button>
                </div>
            </form>
        </main>
    </div>
</div>
* {
    box-sizing: border-box;
}

body {
    display: flex;
    margin: 0;
    background-color: hsla(0, 0%, 0%, .05);
    font-family: sans-serif;
}

.form-1,
.form-2 {
    margin: 16px;
}

.entity {
    position: relative;
    display: grid;
    grid-template:
        'header'
        'main' 1fr;
    width: 360px;
    height: calc(640px - 24px);
    background-color: white;
}

.entity-header {
    display: flex;
    align-items: center;
    height: 56px;
    background-color: #1A79FF;
    color: white;
}

.entity-name {
    padding: 0 16px;
    font-size: 16px;
}

.entity-main {
    padding: 0 16px;
    overflow: auto;
    line-height: 1.5;
}

label {
    display: block;
    margin: 1em 0;
    
    span {
        color: gray;
        text-transform: uppercase;
        font-size: 12px;
    }
}

input,
textarea {
    width: 100%;
    height: 48px;
    padding: 8px;
    font-size: 16px;
    border: 1px solid hsla(0, 0%, 0%, .25);
    border-radius: 4px;
}

textarea {
    min-height: 72px;
    resize: vertical;
}

.action {
    padding: 16px 0;
    
    button:hover {
        cursor: pointer;
    }
}

.next-axn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 48px;
    background-color: #1A79FF;
    color: white;
    border: 0;
    border-radius: 4px;
    font-size: 16px;
}

.form-2 {
    
    .entity-main {
        padding-bottom: 80px;
    }
    
    .action {
        position: absolute;
        left: 0;
        bottom: 0;
        padding: 16px;
        width: 100%;
        background-color: white;
        
        &:before {
            content: '';
            position: absolute;
            left: 0;
            bottom: 100%;
            width: 100%;
            height: 16px;
            background: linear-gradient(to bottom,  hsla(0,0%,0%,0) 0%,hsla(0,0%,0%,0.05) 100%);
        }
    }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.