body {
    font-family: Arial, sans-serif;
    background: #f4f6fa;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 650px;
    margin: 40px auto;
    background: #fff;
    padding: 36px 28px;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}
.container > p {
    margin-bottom: 28px;
}
h1 {
    text-align: center;
    color: #2a3b4c;
    margin-bottom: 18px;
}
form fieldset {
    border: none;
    background: #f7fafd;
    border-radius: 16px;
    margin-bottom: 28px;
    padding: 22px 18px 12px 18px;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.04);
    position: relative;
}
form legend {
    font-size: 1.15rem;
    font-weight: bold;
    color: #1976d2;
    margin-bottom: 10px;
    padding: 0 8px;
    background: #f7fafd;
    border-radius: 8px;
    position: absolute;
    top: -18px;
    left: 18px;
}
form label {
    display: block;
    margin-top: 18px;
    font-weight: 500;
    color: #2a3b4c;
}
form input, form select, form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1.5px solid #cfd8dc;
    border-radius: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    background: #fafdff;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
}
form input:focus, form select:focus, form textarea:focus {
    border: 1.5px solid #1976d2;
    box-shadow: 0 0 0 2px #e3f2fd;
}
form input[type="radio"] {
    width: auto;
    margin-right: 8px;
    border-radius: 50%;
    accent-color: #1976d2;
}
form .radio-group {
    display: flex;
    gap: 18px;
    margin-top: 6px;
    flex-wrap: wrap;
}
button[type="submit"] {
    margin-top: 24px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(90deg, #1976d2 60%, #42a5f5 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
    transition: background 0.2s, box-shadow 0.2s;
}
button[type="submit"]:hover {
    background: linear-gradient(90deg, #125ea7 60%, #1976d2 100%);
    box-shadow: 0 4px 16px rgba(25, 118, 210, 0.13);
}
button[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}
#mensagem-sucesso {
    margin-top: 24px;
    padding: 16px;
    background: #e0f7fa;
    color: #006064;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.erro-campo {
  color: red;
  font-size: 0.9em;
  display: block;
  margin-top: 2px;
}
@media (max-width: 700px) {
    .container {
        padding: 16px 4px;
    }
    form fieldset {
        padding: 14px 4px 8px 4px;
    }
    form legend {
        left: 8px;
    }
}
@media (max-width: 780px) {
    .container {
        max-width: 90%;
        min-width: 90%;
        margin: 20px auto;

    }
    h1 {
        font-size: 26px;
    }
    .container > p {
        font-size: 0.95rem;
    }
    form fieldset {
        padding: 12px 10px 8px 10px;
    }
    form legend {
        font-size: 1rem;
    }
    form label {
        margin-top: 14px;
        font-size: 0.95rem;
    }
    form input, form select, form textarea {
        padding: 8px 10px;
        font-size: 0.95rem;
    }
    form .radio-group {
        gap: 12px;
    }
    button[type="submit"] {
        width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;
    }
}
