.form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: black;
}

.form-container h2, .form-container p {
    text-align: center;
    color: #333;
}

form fieldset {
    border: 1px solid #ccc;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

form legend {
    font-weight: bold;
    color: rgb(114, 190, 140); 
    padding: 0 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; 
    font-family: inherit;
}

input[type="range"] {
    width: 100%;
    margin: 10px 0 20px 0;
    cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
    margin-right: 10px;
    display: inline; 
    width: auto;
}

.button-group {
    display: block;
    text-align: center; 
    margin-top: 20px;
}

input[type="submit"],
input[type="reset"] {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin: 5px; 
}

input[type="submit"] {
    background-color: rgb(114, 190, 140); 
    color: white;
}

input[type="reset"] {
    background-color: gray;
    color: black;
}

input[type="submit"]:hover {
    background-color: rgb(80, 150, 100);
}

input[type="reset"]:hover {
    background-color: darkgray;
}


@media (max-width: 600px) {
    .form-container {
        margin: 20px 10px;
        padding: 20px;
    }
    
    .button-group input {
        width: 100%;
        display: block; 
        margin: 5px 0;
    }
}