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

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

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

body {
    background: #E5E5E5;
}

body::before {
    content: "";
    width: 100%;
    height: 368px;

    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background: #121214;
}

.page {
    width: 736px;
    margin: auto;

}

header {
    width: 319px;
    margin-top: 80px;
}

header h1 {
    font-family: 'Archivo', sans-serif;
    font-size: 36px;
    line-height: 42px;
    color: #FFF;

    margin-bottom: 24px;
}

header p {
    font-size: 16px;
    line-height: 26px;
    color: #42D3FF;
}

form {
    background: #FAFAFC;
    min-height: 368px;
    margin-top: 38px;
    border-radius: 8px 8px 0 0;
    padding: 64px;

    display: flex;
    flex-direction: column;
    gap: 48px;
}

fieldset {
    border: none;
}

.fieldset-wrapped {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

fieldset legend {
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 24px;
    line-height: 34px;


    width: 100%;
    border-bottom: 1px solid #E6E6F0;
    padding-bottom: 16px;
}

.input-wrapped {
    display: flex;
    flex-direction: column;
}

.input-wrapped label,
.checkbox-wrapped {
    font-size: 14px;
    line-height: 24px;

    color: #4E4958;
    margin-bottom: 8px;

}

.input-wrapped label span {
    margin-left: 12px;

    font-size: 12px;
    line-height: 20px;

    color: #686372;
}

.input-wrapped input,
.input-wrapped textarea,
.input-wrapped select {
    background: #FAFAFC;

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

    height: 56px;

    padding: 0 24px;
}

.input-wrapped input[type="number"]::-webkit-inner-spin-button,
.input-wrapped input[type="number"]::-webkit-outer-spin-button {
    appearance: none;
    -webkit-appearance: none;
}

.input-wrapped textarea {
    padding: 0;
    height: 168px;

    resize: none;
}

.input-wrapped select {
    appearance: none;
    -webkit-appearance: none;

    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_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 24px top 50%;
}

.colons {
    display: flex;
    gap: 20px;
}

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

.checkbox-wrapped {
    position: relative;

}

.checkbox-wrapped label {
    display: flex;
    align-items: center;
    gap: 16px;
}

.checkbox-wrapped input {
    position: absolute;

    width: 24px;
    height: 24px;

    opacity: 0;
}

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

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

    display: block;
}

.checkbox-wrapped 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 ");
}

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

.form-buttons {
    background: #F0F0F4;
    height: 136px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    border-radius: 0 0 8px 8px;
    padding: 40px 64px;

    margin-bottom: 90px;
}

button {
    height: 56px;
    background: #04D361;
    border-radius: 8px;
    border: none;

    font-family: 'Archivo';
    font-weight: 600;
    font-size: 16px;
    line-height: 26px;

    color: #FFFFFF;
}

button:hover {
    cursor: pointer;
    background: #0ba14f;
    transition: 0.6s;
}

input:invalid {
    border: 1px solid #F00;
}