/* General page */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

header h1 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 5px;
}

header p {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

main {
    max-width: 650px;
    margin: 30px auto;
    padding: 20px;
}

fieldset {
    padding: 15px 20px;
    background-color: #eee;
    border: 1px solid #ccc;
    margin-bottom: 25px;
    border-radius: 5px;
}

legend {
    background-color: #f93;
    border: 1px solid #100;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 3px;
}

label {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

label span {
    width: 150px;
    font-weight: normal;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    flex: 1;
    padding: 6px;
    border: 1px solid gray;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 12px;
}

.textinput {
    min-height: 75px;
    resize: vertical;
}

/* Radio buttons / checkboxes */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}

footer {
    text-align: center;
    margin-top: 20px;
}

#validation {
    text-align: center;
    margin-top: 20px;
}

input[type="submit"],
input[type="reset"],
button[type="submit"],
button[type="reset"] {
    padding: 6px 12px;
    margin-right: 10px;
    font-size: 12px;
    cursor: pointer;
}

.container {
    max-width: 650px;  /* same width as form / fieldsets */
    margin: 0 auto;     /* center container on page */
}

header {
    margin-bottom: 20px;
}

header .section-heading {
    text-align: left;   /* align with form fieldsets */
}
.section-heading {
    font-weight: bold;
    text-align: left;   /* aligns with other headers */
    margin-top: 15px;
    margin-bottom: 15px;
}