/* ------------------------------- */
/* 1. Global Styles & Body */
/* ------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-family: 'Inter', Arial, sans-serif;
    line-height: 1.6;
    padding: 20px;
}

/* ------------------------------- */
/* 2. Header & Layout */
/* ------------------------------- */
header {
    text-align: center;
    margin-bottom: 30px;
}

#title {
    font-size: 2.5em;
    font-weight: bold;
    color: #4CAF50;
    margin-bottom: 5px;
}

#description {
    font-size: 1em;
    color: #aaaaaa;
}

#survey-form {
    max-width: 650px;
    margin: 0 auto;
    background-color: #2c2c44;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* ------------------------------- */
/* 3. Fieldset & Groups */
/* ------------------------------- */
fieldset {
    border: 1px solid #444466;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 6px;
    background-color: #33334f;
}

legend {
    font-size: 1.2em;
    font-weight: bold;
    color: #8c8cd9;
    padding: 0 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group p {
    margin-bottom: 8px;
    font-weight: 500;
}

/* ------------------------------- */
/* 4. Inputs, Select & Textarea */
/* ------------------------------- */
label {
    display: block;
    margin-bottom: 5px;
    font-weight: 400;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-size: 1em;
}

::placeholder {
    color: #999;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #8c8cd9;
    outline: 2px solid #8c8cd9;
    outline-offset: 0;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* ------------------------------- */
/* 5. Radio & Checkbox             */
/* ------------------------------- */
.form-group>div {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 4px 6px;
    /* pequeno espaçamento interno para melhor hover */
    border-radius: 4px;
    transition: background-color 0.2s;
    /* animação suave de hover */
}

.form-group>div:hover {
    background-color: #3f3f62;
    /* leve destaque no hover, melhor contraste */
}

.form-group>div label {
    margin-left: 8px;
    cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #4CAF50;
    /* cor verde consistente */
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
}

input[type="radio"]:hover,
input[type="checkbox"]:hover {
    transform: scale(1.2);
    box-shadow: 0 0 6px rgba(76, 175, 80, 0.5);
}

/* ------------------------------- */
/* 6. Submit Button */
/* ------------------------------- */
#submit {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 25px;
    border: none;
    border-radius: 6px;
    background-color: #4CAF50;
    color: #1a1a2e;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#submit:hover {
    background-color: #43A047;
}

/* ------------------------------- */
/* 7. Basic Responsiveness */
/* ------------------------------- */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    #title {
        font-size: 2em;
    }

    #survey-form {
        padding: 15px;
    }
}