@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Poppins:wght@200;300;400;500;600;700;900&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

#main {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 840px;
    background-color: rgb(247, 253, 252);

}

section.left {
    width: 460px;
    height: 275px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;


    >h2 {
        font-size: 40px;
        font-weight: 700;
        margin-block-start: 10px;
        margin-block-end: 8px;
    }

    >p {
        width: 420px;
        font-size: 16px;
        font-weight: 400;
        line-height: 25px;
    }
}

section.right {
    max-width: 580px;
    width: 100%;
    height: 679px;
    border-radius: 6px;
    padding: 25px 30px;
    background: hsla(0, 0%, 100%, 1);
}

form .user-details1 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

form .user-details1 .input-box {
    margin-block-end: 15px;
    width: calc(100% / 2 - 20px);


    >label {
        font-size: 14px;
        font-weight: 700;
    }

    #gender {
        width: 100%;
        height: 48px;
        margin-block-start: 10px;
    }
}

.user-details1 .input-box input,
.user-details2 .input-box input {
    width: 100%;
    height: 48px;
    outline: none;
    border-radius: 3px;
    padding-left: 15px;
    font-size: 14px;
    margin-block-start: 10px;
    margin-block-end: 20px;
}

.user-details1 .input-box input:focus,
.user-details1 .input-box select:focus,
.user-details2 .input-box input:focus,
.user-details2 .input-box select:focus {
    border-color: rgba(46, 196, 182, 1);
}

form .user-details2 .input-box {
    margin-block-end: 20px;

    >label {
        font-size: 14px;
        font-weight: 700;
    }

    #activity-level {
        width: 100%;
        height: 48px;
        margin-block-start: 10px;
    }
}


button {
    width: 100%;
    height: 48px;
    background: rgba(46, 196, 182, 1);
    border: none;

    >a {
        color: rgb(255, 255, 255);
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
    }
}

.right p {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0px;
    text-align: center;

    >a {
        color: rgba(46, 196, 182, 1);
    }
}


@media (max-width: 584px) {
    #main {
        flex-direction: column;
        height: auto;
    }

    section.left {
        width: 100%;
        height: auto;
        padding: 20px;

        >h2 {
            font-size: 32px;
        }

        >.large {
            display: none;
        }

        >.small {
            width: 327px;
            font-size: 16px;
            font-weight: 300;
            text-align: left;
        }
    }

    section.right {
        max-width: 100%;
        width: 327px;
        height: auto;
        padding: 20px;
        margin-top: 20px;

        >p {
            display: none;
        }
    }

    form .user-details1 .input-box,
    form .user-details2 .input-box {
        width: 100%;
    }

    .user-details1 .input-box input,
    .user-details2 .input-box input,
    .user-details1 .input-box select,
    .user-details2 .input-box select {
        width: 100%;
    }

    .right p {
        display: none;
    }

    footer {
        width: 300px;
        align-items: center;
        text-align: center;

        >p {
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 0px;
            text-align: center;
        }

        >a {
            color: rgba(46, 196, 182, 1);
        }
    }
}

@media (min-width: 584px) {
    .left .small {
        display: none;
    }

    footer {
        display: none;
    }
}