@import url('https://fonts.googleapis.com/css2?family=Karla:ital,wght@0,200..800;1,200..800&family=Overpass:ital,wght@0,100..900;1,100..900&family=Paytone+One&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --green-light: hsl(148, 38%, 91%);
    --green-bold: hsl(169, 82%, 27%);
    --red: hsl(0, 66%, 54%);
    --white: hsl(0, 0%, 100%);
    --grey-medium: hsl(186, 15%, 59%);
    --grey-bold: hsl(187, 24%, 22%);
}

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

body {
    /* display: flex; */
    justify-content: center;
    align-items: center;
    height: 95vh;
    background-color: var(--green-light);
}

#container {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    /* height: 93vh; */
    /* width: 90%; */
    width: 260px;
    margin: auto;
    margin-bottom: 10px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

h2 {
    font-size: 1.33em;
    margin-bottom: 15px;
    color: rgba(0, 0, 0, 0.721);
}

label, legend {
    font-size: 10px;
    color: rgba(0, 0, 0, 0.693);
}

legend {
    margin-bottom: 10px;
}

fieldset {
    border: none;
}

form {
    display: flex;
    flex-direction: column;
}

span {
    color: var(--green-bold);
}

.error {
    font-size: 10px;
    color: var(--red);
    display: none;
}

#msg1 {
    margin-top: -10px;
    margin-bottom: 10px;
}
#msg2 {
    margin-top: -10px;
    margin-bottom: 10px;
}
#msg3 {
    margin-top: -10px;
    margin-bottom: 10px;
}
#msg4 {
    margin-top: -5px;
    margin-bottom: 10px;
}


.alter {
    display: flex;
    border: 1.5px solid rgba(0, 0, 0, 0.274) ;
    border-radius: 5px;
    /* width: 73vw; */
    margin-bottom: 11px;
    align-items: center;
    padding: 8px;
    padding: 11px;
}

.alter.selecionada {
  background-color: #e6ffec;
  border: 1px solid var(--green-bold); /* cor verde */
}

input[type="checkbox"] {
  accent-color: var(--green-bold); /* ou uma cor como #00a86b */
}

input[type="radio"] {
  accent-color: var(--green-bold); /* ou qualquer cor desejada */
}

input[type="radio"]:checked{
    background-color: var(--green-light);
}

#alter {
    display: flex;
    gap: 10px;
    margin: 8px;
    /* margin-bottom: 20px; */
}

input {
    outline: none;
    cursor: pointer;
}

input:focus {
    border: 1px solid var(--green-bold); 
    /* background-color: var(--green-light); */
}

label:focus{
    border: 1px solid var(--green-bold);
    border: var(--green-bold);
}

.alter > input {
    /* margin-left: -60px; */
    width: fit-content;
    display: flex;
    align-items: center;
    height: fit-content;
    margin-right: 8px;
    margin-top: -14px;
    margin-bottom: -15px;
}

label {
    cursor: pointer;
}

label:checked{
    background-color: var(--green-bold);
}

#msg {
    height: 150px;
    box-sizing: border-box;
    border-radius: 5px;
    margin-top: 10px;
    width: 230px;
    border: 1.5px solid rgba(0, 0, 0, 0.274);
    padding: 8px;
    resize: vertical;
    transition: border 0.2s ease-in-out, background-color 0.2s ease-in-out;
    margin-bottom: 8px;
}

#msg:focus {
    outline: none;
    border: 1px solid var(--green-bold);
}

form input {
    width: 230px;
    border-radius: 5px;
    border: 1.5px solid rgba(0, 0, 0, 0.274);
    padding: 8px;
    margin-bottom: 15px;
    margin-top: 5px;
} 

button {
    display: flex;
    width: 140px;
    justify-content: center;
    padding: 8px;
    border-radius: 5px;
    border: none;
    font-size: 12px;
    color: white;
    background-color: var(--green-bold);
    margin: auto;
}

button:hover {
    background-color: rgb(6, 102, 6);
}

@media (min-width: 600px) {

    body {
        height: 80vh;
    }
    #container {
        width: 600px;
        padding: 20px;
        margin-top: 115px;
    }

    #responsividade {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .nomesRes {
        display: flex;
        flex-direction: column;
        width: fit-content;
    }

    .nomesRes > input {
        width: 275px;
    }

    #email {
        width: 560px;
    }

    .alterRes {
        display: flex;
        gap: 10px;
        
    }

    .alter{
        width: 275px;
    }

    #msg {
        width: 560px;
        height: 100px;
    }
    
    #alter {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}
