
* {
    box-sizing: border-box;
}


body
{
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
    min-height: 100vh;
}


.form{

display: grid;
grid-template-columns: 1fr;
border: 1px solid #333;
max-width: 400px;
height: 500px;
width: 100%;
padding: 30px;

}

.form-group
{

border: none;
padding: 0;
}

.formheader
{
    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.7;
}

.checkbox
{
    position: absolute;
    appearance: none;
    outline: none;
}

.checkbox-label
{
    padding-left: 22px;
}
.checkbox::after
{
content: "" ;
position: absolute;
width: 16px;
height: 16px;
margin-left:-22px ;
border: 1px solid #333;
cursor: pointer;
border-radius: 4px;
}
.checkbox:checked::after
{
background: url(../image/check-icon.svg) no-repeat center, #9e1fff;
}

.checkbox-text
{
    font-size: 14px;
}

.button
{
    border: none;
    padding: 6px 18px;
    cursor: pointer;
    border-radius: 6px;
    background-color: #9e1fff;
    color: white;
    transition: opacity 0.2s;

}
.button:hover
{
    opacity: 0.85;
}

.button:not(:disabled):active
{
    background-color: #8719db;
}

.button:disabled,
.checkbox:disabled::after
{
    opacity: 0.7;
    cursor: not-allowed;
}

.input:focus-visible,
.textarea:focus-visible

{
    outline: 2px solid  #8719db;
    outline-offset: 1px;
}





.button:focus-visible,
.checkbox:focus-visible::after
{
    outline: 2px solid  #8719db;
    outline-offset: 1px;
}











.agree{
    font-size: 14px;
}

.label
{
    display: inline-block;
    margin-bottom: 10px;
}

