* {
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;

    font-family: sans-serif;

    min-height: 100vh;
}



form {
    border: 1px solid #333;
    border-radius: 6px;
    max-width: 400px;
    width: 100%;
    padding: 30px;
}


fieldset {
    border: none;
    padding: 0;
}

.form-title {
    font-weight: 700;
    padding: 0;
    margin-bottom: 15px;
}

.label {
    display: inline-block;
    margin-bottom: 10px;

}

.textarea {
    max-height: 150px;
    min-height: 30px;
    resize: vertical;
}

.input,
.textarea {
    border: 1px solid #333;
    border-radius: 6px;
    width: 100%;
    padding: 5px 12px;
    margin-bottom: 20px;
    outline: none;
}

.input:disabled,
.textarea:disabled {
    opacity: 0.4;
}

.button {
    display: block;
    cursor: pointer;
    background-color: #a942c3;
    color: #fff;

    border: none;
    border-radius: 5px;

    width: 100px;
    height: 20px;

    transition: opacity 0.2s;
}

.checkbox-label {
    padding-left: 22px;
}

.checkbox {
    position: absolute;
    appearance: none;

    cursor: pointer;
    outline: none;
}

.checkbox::after {
    content: '';
    position: absolute;

    width: 16px;
    height: 16px;

    border: 1px solid #333;
    border-radius: 4px;

    margin-left: -22px;

    cursor: pointer;
}

.checkbox:checked::after {
    background: url(images/check-icon.svg) no-repeat center, #a942c3;
}

.checkbox-text {
    font-size: 14px;
}

.button:hover {
    opacity: 0.85;
}

.button:not(:disabled):active {
    background-color: #801882;
}

.button:disabled,
.checkbox:disabled::after {
    opacity: 0.4;
    cursor: not-allowed;
}

.input:focus-visible,
.textarea:focus-visible,
.button:focus-visible,
.checkbox:focus-visible::after {
    outline: 2px solid #ff00f7;
    outline-offset: 1px;
}