@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Staatliches&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-size: 62.5%;
}

body,
input,
textarea {
    font-family: 'Poppins', sans-serif;
}

body {
    background: #BFD7E4;
    font-size: 1.6rem;
}

header h1,
legend,
button {
    font-family: 'Staatliches', cursive;

}

body::before {
    content: '';
    width: 100%;
    height: 46.5rem;

    position: absolute;
    z-index: -1;
    background: #293241;
}

.page {
    max-width: 75rem;
    margin: 0 auto;
}

header {
    padding-top: 10.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFF;

}

header h1 {
    font-weight: 400;
    font-size: 3.6rem;
    line-height: 4.5rem;
    margin-bottom: 8px;
}

header p {
    line-height: 2.4rem;
    margin-bottom: 2.8rem;
}

main {
    max-width: 75rem;
    margin-top: 3.2rem;
}

.first-legend {
    background: #F67669;
    border-radius: 2rem 2rem 0 0;
    height: 12rem;
    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 400;
    font-size: 2.4rem;
    line-height: 3.4rem;
    color: #FFF;
}

form {
    background: #FFF;
    border-radius: 0 0 2rem 2rem;
    padding: 3rem 6.4rem;
}

fieldset {
    border: none;
}

fieldset+fieldset {
    margin-top: 3.4rem;
}

fieldset legend {
    width: 100%;
    font-weight: 400;
    font-size: 2.4rem;
    line-height: 3.4rem;

    color: #253B51;
    text-align: center;

    padding-bottom: 8px;
    margin-bottom: 3rem;

    border-bottom: 1px solid #E6E6F0;
}



fieldset .input-wrapper {
    display: flex;
    flex-direction: column;

    margin-top: 2rem;
}

fieldset .input-wrapper label,
.checkbox-wrapper label {
    font-size: 1.4rem;
    line-height: 2.4rem;

    color: #4E4958;

    margin-bottom: 8px;
}

fieldset .input-wrapper label span {
    font-size: 1.2rem;
    line-height: 2rem;

    color: #C1BCCC;
    margin-left: 9px;
}

fieldset .input-wrapper input,
.input-wrapper textarea {
    height: 5.6rem;
    background: #FAFAFC;

    border: 1px solid #E6E6F0;
    border-radius: 8px;

    padding: 2rem;
    outline-color: #C1BCCC;

    color: #4E4958;
}


.input-wrapper textarea {
    width: 100%;
    height: 16rem;
    resize: none;
}

.colons1,
.colons2 {
    display: flex;
    gap: 2rem;
}

.colons1 div:nth-child(1),
.colons1 div:nth-child(2),
.colons2 div:nth-child(1) {
    width: 50%;
}

.colons2 div:nth-child(2),
.colons2 div:nth-child(3) {
    width: 20%;
}

.checkbox-wrapper {
    position: relative;
    margin-top: 3rem;
}

.checkbox-wrapper input {
    position: absolute;
    width: 24px;
    height: 24px;

    opacity: 0;
}

.checkbox-wrapper label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-wrapper label::before {
    content: '';
    width: 24px;
    height: 24px;

    display: block;

    background: #FAFAFC;
    border: 1px solid #E6E6F0;
    border-radius: 8px;
}

.checkbox-wrapper input:checked+label::before {
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_927_20)'%3E%3Cpath d='M9 16.17L4.83 12L3.41 13.41L9 19L21 7L19.59 5.59L9 16.17Z' fill='%2342D3FF'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_927_20'%3E%3Crect width='24' height='24' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E ");
    background-repeat: no-repeat;
}

.checkbox-wrapper input:focus+label::before {
    outline: 2px solid #C1BCCC;
}

form button {
    width: 100%;
    background: #F67669;
    border: none;
    color: #FFF;
    padding: 1.5rem 28rem;
    border-radius: 8px;

    margin: 6rem 0;

    cursor: pointer;
}

form button:hover {
    background: #d75a4c;
}