
* {
    box-sizing: border-box
}


.button, button {
    background: #29483c;
    color: white;
    border: 0;
    padding: 15px 23px;
    cursor: pointer;
    font: inherit;
    border-radius: 3px
}

.hero {
    padding: 32px 2% 38px;
    display: flex;
    justify-content: space-between;
    gap: 35px;
    align-items: end
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #88644e;
    font-weight: bold
}

h1 {
    font: 56px/1.08 Georgia,serif;
    max-width: 650px;
    margin: 18px 0
}

p {
    line-height: 1.7;
    color: #6b6d65
}

.hero p {
    max-width: 360px
}

.studio {
    margin: 0 1% 20px;
    
    background: white;
    border: 1px solid #e2ded5;
    border-radius: 8px;
    overflow: hidden
}

.visual {
    background: #e9e5dc;
    padding: 30px;
    position: sticky;
    top: 0;
    align-self: start
}

.visual-top {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 1px;
    color: #686c62
}

.scene {
    height: 485px;
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 36px 20px 0;
    background: linear-gradient(90deg,#e3ded4,#f3f0e8 50%,#dfd9ce);
    border-bottom: 15px solid #c3b9a8;
    margin-top: 20px;
    position: relative
}

.door {
    width: 218px;
    height: 390px;
    background: repeating-linear-gradient(90deg,#0000 0 11px,#0000000c 12px 13px),linear-gradient(90deg,#986b43,#b58a5e 45%,#956b48);
    box-shadow: 0 0 0 10px #d0c4b2,9px 8px 18px #0003;
    position: relative;
    transition: .3s
}

    .door:after {
        content: '';
        position: absolute;
        right: 16px;
        top: 45%;
        height: 90px;
        width: 5px;
        background: #222;
        box-shadow: 2px 2px 3px #0003
    }

    .door.panel:before {
        content: '';
        position: absolute;
        inset: 25px;
        border: 3px double #4d311a80;
        box-shadow: inset 0 -160px 0 #00000008
    }

    .door.glass:before {
        content: '';
        position: absolute;
        top: 25px;
        bottom: 25px;
        left: 40%;
        width: 23%;
        background: linear-gradient(120deg,#b7cfcd,#e8eeeb,#91b3b3);
        border: 4px solid #0003
    }

    .door.horizontal {
        background-image: repeating-linear-gradient(0deg,#0000 0 58px,#0005 59px 61px),linear-gradient(90deg,#986b43,#b58a5e 45%,#956b48)
    }

.caption {
    display: flex;
    justify-content: space-between;
    margin-top: 25px
}

    .caption strong {
        font: 23px Georgia,serif
    }

.badge {
    background: #fff9;
    padding: 7px 10px;
    font-size: 11px;
    border-radius: 20px
}

.note {
    font-size: 12px
}

.controls {
    padding: 35px
}

.section {
    padding-bottom: 26px;
    margin-bottom: 24px;
    border-bottom: 1px dashed #e9e6df
}

h2 {
    font: 25px Georgia,serif;
    margin: 0 0 8px
}

h3 {
    font-size: 15px;
    margin: 0 0 16px
}

.num {
    color: #9c7152;
    font-size: 11px;
    margin-right: 10px
}

.choices {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 9px
}

.choice {
    background: #faf9f6;
    color: #555;
    border: 1px solid #ddd9d0;
    padding: 15px 6px;
    font-size: 12px
}

    .choice.active {
        background: #edf2ee;
        border-color: #29483c;
        color: #29483c;
        box-shadow: inset 0 0 0 1px #29483c
    }

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px
}
.fields4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px
}

label {
    display: block;
    font-size: 14px;
    font-weight:600;
    color: #54584f;
    margin-bottom: 7px
}

input, select, textarea {
    width: 100%;
    border: 1px solid #dcd8ce;
    background: #fff;
    padding: 12px;
    border-radius: 3px;
    font: 14px Arial
}

    input:focus, select:focus, textarea:focus, button:focus-visible {
        outline: 2px solid #a36d49;
        outline-offset: 3px
    }

.full {
    grid-column: 1/-1
}

.swatches {
    display: flex;
    gap: 13px
}

.swatch {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 0;
    border: 3px solid white;
    outline: 1px solid #ddd
}

    .swatch.active {
        outline: 2px solid #29483c
    }

.row {
    display: flex;
    gap: 10px;
    align-items: center
}

    .row input {
        width: auto
    }

.submit {
    width: 100%;
    margin-top: 18px
}

.download {
    background: transparent;
    color: #29483c;
    border: 1px solid #29483c;
    width: 100%;
    margin-top: 10px
}

.steps {
    display: flex;
    gap: 25px;
    padding: 0 2% 10px
}

    .steps article {
        flex: 1;
        border-top: 1px solid #cfc8ba;
        padding-top: 20px
    }

    .steps h3 {
        font: 22px Georgia;
        margin: 8px 0
    }

#result {
    padding: 16px;
    background: #edf2ee;
    margin-top: 15px;
    line-height: 1.6
}

[hidden] {
    display: none !important
}

@media(max-width:800px) {
    nav a:not(.button) {
        display: none
    }

    .hero {
        display: block;
        padding-top: 35px
    }

    h1 {
        font-size: 40px
    }

    .studio {
        grid-template-columns: 1fr
    }

    .visual {
        position: relative
    }

    .scene {
        height: 400px
    }

    .door {
        height: 320px;
        width: 180px
    }

    .controls {
        padding: 25px
    }

    .steps {
        flex-direction: column
    }

    footer {
        gap: 20px
    }

    .fields {
        gap: 12px
    }
}
