* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F0F2F5;
}

nav {
    background-color: rgba(24, 119, 242, 0.7);
    height: 123px;
}

.nav-bar {
    display: flex;
    justify-content: space-around;
    padding-top: 35px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    gap: 20px;
}

.logo>h1 {
    font-family: "Work Sans";
    color: #fff;
    font-size: 40px;
    font-weight: 500;
}

.links>#menu {
    display: none;
}

.links>ul {
    display: flex;
    gap: 40px;
    padding-top: 10px;
}

.links>ul>li {
    list-style: none;
}

.links>ul>li>a {
    text-decoration: none;
    color: #fff;
    font-size: 20px;
    font-family: "Work Sans";
}

.links>ul>li>a:hover {
    border-bottom: 2px solid blue;
    transition: 1s;
}

#main {
    background-color: #fff;
    width: 432px;
    margin: 5rem 0 5rem 27rem;
    flex-wrap: wrap;
    border-radius: 8px;
    box-shadow: 0 2px 4px #0000001a, 0 8px 16px #0000001a;
}

.head {
    text-align: center;
    padding: 10px 16px;
}

.head>h2 {
    font-size: 25px;
    line-height: 32px;
    color: #1c1e21;
    font-family: SFProDisplay-Bold, Helvetica, Arial, sans-serif;
}

.head>h3 {
    font-size: 15px;
    line-height: 24px;
    color: #606770;
    font-family: SFProText-Regular, Helvetica, Arial, sans-serif;
    font-weight: 500;
}

.data {
    padding: 16px;
    border-top: 1px solid #DADDE1;
}

.flname input {
    width: 170px;
    padding: 11px;
    border: 1px solid #CCD0D5;
    border-radius: 5px;
    margin-left: 10px;
}

.flname input::placeholder {
    font-family: SFProDisplay-Regular, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 16px;
}

.h {
    display: flex;
    gap: 5px;
    margin: 20px 0 5px 10px;
}

.h>h4 {
    color: #606770;
    font-family: SFProText-Medium, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 12px;
    margin-bottom: 0;
}

.h>img {
    height: 16px;
    margin-bottom: 2px;
}

#day,
#month,
#year {
    width: 125px;
    height: 36px;
    border: 1px solid #CCD0D5;
    border-radius: 4px;
    color: #1c1e21;
    font-family: SFProText-Medium, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    padding: 0 20px 0 8px;
    margin-left: 5px;
}

.gender {
    display: flex;
    flex-wrap: wrap;
    margin: -8px -6px -6px;
    width: 411px;
    margin-left: 5px;
}

.gender>span {
    border: 1px solid #CCD0D5;
    border-radius: 4px;
    font-weight: 400;
    height: 36px;
    margin: 8px 6px 6px;
    padding: 0;
    width: 125px;
}

.gender>span>label {
    color: #1c1e21;
    display: inline-block;
    font-family: SFProText-Medium, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 36px;
    padding: 0 28px 0 10px;
}

.gender>span input {
    margin-left: 1rem;
}

#Options {
    border: 1px solid #CCD0D5;
    border-radius: 4px;
    color: #1c1e21;
    font-family: SFProText-Medium, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    height: 36px;
    line-height: 20px;
    width: 100%;
}

#custom {
    padding: 11px;
    font-family: SFProDisplay-Regular, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 16px;
    width: 100%;
    border: 1px solid #CCD0D5;
    border-radius: 5px;
    margin-top: 0.5rem;
}

.E-P input {
    padding: 11px;
    font-family: SFProDisplay-Regular, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 16px;
    width: 100%;
    border: 1px solid #CCD0D5;
    border-radius: 5px;
    margin-top: 0.5rem;
}

.p1,
.p2 {
    color: #777;
    font-size: 12px;
    margin-top: 1rem;
}

.p1>a,
.p2>a {
    text-decoration: none;
    color: #385898;
}

.p1>a:hover,
.p2>a:hover {
    border-bottom: 1px solid #385898;
}

.btn>button {
    background-color: #00a400;
    border: none;
    border-radius: 6px;
    height: 40px;
    width: 12rem;
    margin: 2rem 0 2rem 6rem;

}

.btn>button {
    font-family: SFProDisplay-Bold, Helvetica, Arial, sans-serif;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
}

#acc {
    color: #1877f2;
    font-family: SFProText-Semibold, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 20px;
    text-decoration: none;
    margin-left: 6rem;
}

@media (max-width:768px) {
    .links>ul {
        display: none;
        width: 100%;
        padding: 10px 0;
        margin: 0;
        position: absolute;
        top: 123px;
        left: 0;
        gap: 20px;
        background-color: rgba(24, 119, 242, 0.7);
    }

    .links>#menu {
        display: block;
        margin-top: 5px;
        cursor: pointer;
    }

    #main {
        width: 90%;
        margin: 2rem auto;
    }

    .flname {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .flname input {
        width: 100%;
        margin-left: 0;
    }

    .DMY {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    #day,
    #month,
    #year {
        width: 100%;
        margin-left: 0;
    }

    .gender {
        flex-direction: column;
        width: 100%;
    }

    .gender>span {
        width: 100%;
    }

    .E-P input {
        width: 100%;
    }

    .btn {
        display: flex;
        justify-content: center;
    }

    .btn>button {
        width: 100%;
        margin: 2rem 0;
    }

    #acc {
        display: block;
        text-align: center;
        margin: 1rem 0;
    }
}