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

:root{
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: 'Poppins', sans-serif;
    background: #8D44F7;
}

body::before {
    content: ' ';
    position: absolute;
    top: 0;
    left: 0;

    width: 100% !important;
    height: 46.5rem;

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

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

.page {
    width: 75.0rem;
    margin: auto;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10.7rem 0 3.2rem;
}

header h1 {
    font-size: 3.6rem;
    font-weight: normal;
    line-height: 4.5rem;
    color: white;
}

header p {
    font-size: 1.6rem;
    line-height: 2.4rem;
    color: white;
}

header img {
    padding-top: 2rem;
}

.first-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #8D44F7;
    font-size: 2.4rem;
    font-weight: normal;
    line-height: 3.4rem;

    height: 13.7rem;
    color: white;

    border-radius: 2rem 2rem 0 0;
}

#my-form {
    background: white;
    padding: 3rem 6.4rem 6.4rem;
    margin-bottom: 10.7rem;
    border-radius: 0 0 2rem 2rem;
}

.col-2,
.col-3 {
    display: flex;
    gap: 2.2rem;
}

.col-2 div {
    width: 50%;
}

.col-3>div:nth-child(1) {
    width: 100%;
}

.fieldset-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

fieldset {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    border: none;
}

fieldset legend {
    width: 100%;
    padding-bottom: 0.8rem;
    margin-bottom: 3.1rem;
    text-align: center;
    border-bottom: 1px solid #E6E6F0;

    font-size: 2.4rem;
    line-height: 3.4rem;

    color: #253B51;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.input-wrapper label,
.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;

    font-weight: normal;
    font-size: 1.4rem;
    line-height: 2.4rem;

    color: #4E4958;
}

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

    color: #C1BCCC;
}

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

    border: 1px solid #E6E6F0;
    border-radius: 0.8rem;

    padding: 0 2.4rem;

    color: #C1BCCC;

    transition: 0.1s;
}

.input-wrapper input:focus,
select:focus,
textarea:focus {
    transform: scale(1.02);
    outline: 2px solid #69f6a9;
    color: #4E4958;
}

.input-wrapper select {
    width: 50%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_1_54)'%3E%3Cpath d='M8 10L12 14L16 10' stroke='%239C98A6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_1_54'%3E%3Crect width='24' height='24' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
    background-repeat: no-repeat;
    background-position: right 2.4rem top 50%;
}

.input-wrapper textarea {
    height: 16.6rem;
    padding: 2.4rem;
}

.checkbox-wrapper {
    position: relative;
}

.checkbox-wrapper input {
    position: absolute;
    top: 1;
    left: 0;
    width: 2rem;
    height: 2rem;

    cursor: pointer;

    opacity: 0;
}

.checkbox-wrapper label {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    cursor: pointer;
}

.checkbox-wrapper label::before {
    content: '';
    background: #FAFAFC;
    border: 1px solid #E6E6F0;
    border-radius: 0.8rem;

    display: block;

    width: 2rem;
    height: 2rem;
}

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

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

input:valid:focus {
    outline: 2px solid #69f6a9;
}

input:invalid:focus, select:invalid:focus {
    outline: 2px solid #F67669;
}

.button {
    margin-top: 3.4rem;

    height: 5.6rem;
    border: none;
    border-radius: 0.8rem;

    color: white;
    background: #8D44F7;
    font-family: Staatliches;
    font-size: 2rem;
    font-weight: normal;
    line-height: 2.6rem;

    cursor: pointer;

    transition: 0.3s;
}

.button:hover,
.button:focus {
    background: #7837da;
    transform: scale(1.1);
}