body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    display: flex; /* Use Flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: auto; /* Full viewport height */
    margin: 0; /* Remove default margin */
    background: linear-gradient(to left, peachpuff, white); /* Optional: Add a background color */
    color: white;
}

.form-container {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    display: grid;
    margin: 20px;
    box-sizing: border-box;
    padding: 20px;
    border-radius: 20px;
    background: rgb(54, 53, 53);
    width: 400px;
    
    gap: 20px;
}
.form-header{
    background-color: rgb(15, 15, 15); /* Darker header background */
    width: 100%;

    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.form-header {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.legend-text{
    font-size: 14px;
}
.form-group label {
    font-size: 14px;
    color: #b3b3b3; /* Light gray for labels */
}

.form-group input,
.form-group select {
    background: #3a3a3a; /* Darker input background */
    border: 1px solid #4a4a4a; /* Subtle border */
    border-radius: 5px;
    padding: 10px;
    color: white;
    font-size: 14px;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); /* Inner shadow */
}

input:invalid,
select:invalid {
    border: 2px solid red;
}

input:valid,
select:valid {
    border: 2px solid green;
}

.form-group input:focus,
.form-group select:focus {
    border-color: rgb(224, 104, 104); /* Highlight border on focus */
}

.form-radio-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.form-radio-group label {
    font-size: 14px;
    color: #b3b3b3;
}

.form-radio-group input[type="radio"] {
    margin-right: 5px;
}

.form-button {
    background: rgb(83, 81, 228); /* Yellow button background */
    border: none;
    border-radius: 5px;
    padding: 10px;
    color: black;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s ease;
}

.form-button:hover {
    background: #e6b800; /* Darker yellow on hover */
}
