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

:root {
    --primary-black: #1C1C1C;
    --primary-blue: #007BFF;
    --primary-grey: #545454;
    --grey: #969696;
    --secondary-grey: #E4E4E4;
    --bg-grey: #F7F7F7;
    --white: #FFFFFF;


}

.container {
    width: min(90%, 570px);
    margin: 0 auto;

}



h2 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 500;
    margin-bottom: 20px;
}

body {
    background-color: var(--bg-grey);
    font-family: 'Roboto';
    color: var(--primary-black);

}

section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    padding-top: 75px;
}

.avatar {
    width: 80px;
    height: 80px;
    margin-right: 20px;
}

.form-inner {
    max-width: 570px;
    background-color: var(--white);
    padding: 35px;
}

.form-row {
    margin-bottom: 20px;

    label {
        display: block;
        margin-bottom: 7px;
        font-size: 15px;
        line-height: 22px;
        color: var(--primary-grey);
    }

    p {
        font-size: 13px;
        line-height: 18px;
        margin-top: 7px;
        color: var(--grey);
    }
}

.form-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

input[type="text"],
input[type=email],
input[type=tel],
select {
    width: 100%;
    height: 38px;
    border-radius: 6px;
    border: 1px solid var(--secondary-grey);
    padding: 0 10px;
    color: var(--primary-grey);
    appearance: none;
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 0.2px;
    webkit-appearance: none;
    cursor: pointer;

    &:focus {
        border-color: var(--primary-blue);
        outline: none;
    }
}


.radio-list {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;


}

input[type=radio] {
    appearance: none;

}

label:has(input[type=radio]) {
    position: relative;
    padding-left: 27px;

    &::before {
        content: "";
        display: inline-block;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: 1px solid var(--secondary-grey);
        position: absolute;
        left: 0;
        top: 3px;
        transition: all 0.2s ease;
    }

    &::after {
        content: "";
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--white);
        position: absolute;
        left: 6px;
        top: 9px;

    }

}

label:has(input[type=radio]:checked) {
    &::before {
        border-color: var(--primary-blue);
        background-color: var(--primary-blue);
    }

}

.form-btn button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: var(--primary-blue);
    height: 38px;
    color: var(--white);
    border: 1px solid var(--primary-blue);
    border-radius: 6px;
    font-size: 15px;
    line-height: 22px;
    letter-spacing: -0.1px;
    padding: 8px 10px;
    margin-bottom: 28px;
    font-weight: 500;
    cursor: pointer;
}

.terms p {
    text-align: center;
    font-size: 13px;
    line-height: 18px;
    letter-spacing: -0.1px;
    color: var(--grey);
    padding-left: 56px;
    padding-right: 56px;
    font-weight: 400;

    a {
        color: var(--primary-blue);
        text-decoration: none;
    }

    margin-bottom: 20px;
}

.divider {
    border-top: 1px solid var(--secondary-grey);
    margin-bottom: 20px;
}

.log_in {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    line-height: 22px;
    letter-spacing: -0.2px;
    color: var(--primary-black);

    a {
        color: var(--primary-blue);
        text-decoration: none;
        letter-spacing: -0.1px;
        font-weight: 500;
    }

}

.select2-container--default .select2-selection__arrow {
    display: none;
}




.avatar-add {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}





p {
    font-size: 15px;
    line-height: 18px;
    letter-spacing: -0.1px;
    font-weight: 400;
}

.fake-file {
    position: absolute;
    text-align: center;
    /* 🔥 центр по горизонтали */
    line-height: 30px;
    width: 100%;
    height: 100%;
    background: var(--white) url(../images/camera.svg) right 5px top 50% no-repeat;
    border: 1px solid var(--secondary-grey);
    border-radius: 6px;
    left: 0;
    top: 0;
    padding-left: 10px;
    padding-right: 26px;
    color: var(--secondary-grey);
    z-index: 2;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding-top: 2px;
    cursor: pointer;

    .file-name {
        font-size: 10px;
        color: var(--grey);

    }
}

.file-field-wrap {
    display: flex;
    flex-direction: column;
    width: 138px;
    height: 30px;
    position: relative;

    input[type=file] {
        width: 100%;
        background-color: var(--white);
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        z-index: 2;
        opacity: 0;
    }
}

.fake-file-btn {
    background-color: var(--white);
    padding: 0 10px;
    color: var(--primary-grey);
    border-radius: 6px;
    position: absolute;
    left: 4px;
    top: 4px;
    height: 25px;
    z-index: 1;
    width: 90px;
}

.avatar-add {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar {
    width: 80px;
    height: 80px;

}

.right-side {
    display: flex;
    flex-direction: column;

    p {
        margin-top: 9px;
    }
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.delete-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--secondary-grey);
    background: var(--white) url(../images/Trash.svg) right 6px top 50% no-repeat;
    border-radius: 6px;
    cursor: pointer;

    &:hover {
        border: 1px solid #ff0000;
        background: var(--white) url(../images/red-trash.svg) right 6px top 50% no-repeat;
        transition: all 0.5s ease;
    }
}

.submit {
    width: 150px;
    height: 38px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-size: 15px;
    line-height: 22px;
    letter-spacing: -0.1px;
    font-weight: 500;
    border-radius: 6px;
    border: none;
    font-family: 'Roboto';
    margin-bottom: 83px;
    cursor: pointer;
}

.select2-container--default .select2-selection--single {
    background: var(--white) url(../images/arrows.svg) right 10px top 50% no-repeat;
    width: 245px;
    height: 38px;
    border: 1px solid var(--secondary-grey);
    padding-top: 3px;
      &:focus {
        border-color: var(--primary-blue);

    }


}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--secondary-grey);
}