main {
    display: block;
    max-width: 500px;
    margin: auto;
}

/* Form container */
form {
    background-color: #1e293b;
    padding: 25px;
    border-radius: 6px;
}

/* Fieldsets */
fieldset {
    border: 1px solid #334155;
    margin-bottom: 20px;
    padding: 20px;
}

/* Legends */
legend {
    color: #facc15;
    font-weight: bold;
}

/* Labels */
label {
    display: block;
    margin-top: 10px;
}

/* Inputs */
input,
select,
textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #334155;
    border-radius: 4px;
    background-color: #0f172a;
    color: #e2e8f0;
}

/* Radio and checkbox alignment */
input[type="radio"],
input[type="checkbox"] {
    width: auto;
    margin-right: 6px;
}

/* Buttons */
.form-buttons {
    text-align: center;
    margin-top: 20px;
}

input[type="submit"],
input[type="reset"] {
    width: auto;
    padding: 10px 18px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    background-color: #334155;
    color: #e2e8f0;
    cursor: pointer;
}

/* Button hover */
input[type="submit"]:hover,
input[type="reset"]:hover {
    background-color: #facc15;
    color: #000;
}