/* Center the feedback page header */
.feedback-header {
    padding: 2rem 1rem 1rem;
    text-align: center;
}
/* Feedback page heading */
.feedback-header h1 {
    margin: 1rem 0;
}
/* Feedback header text */
.feedback-header p {
    margin-bottom: 0;
}
/* Feedback form area */
.feedback-section {
    width: 90%;
    max-width: 750px;
    margin: 0 auto 2rem;
    padding: 2rem;
    box-sizing: border-box;
}
/* Feedback form */
.feedback-section form {
    width: 100%;
}
/* Feedback form labels */
.feedback-section form > label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    font-weight: bold;
}
/* Feedback form fields */
.feedback-section input[type="text"],
.feedback-section input[type="email"],
.feedback-section select,
.feedback-section textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #777777;
    border-radius: 4px;
    box-sizing: border-box;
    font: inherit;
}
/* Allow comments to resize vertically */
.feedback-section textarea {
    resize: vertical;
}
/* Hide categories that are not selected */
.feedback-category[hidden] {
    display: none;
}
/* Product category section */
.feedback-category {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px solid #aaaaaa;
    border-radius: 4px;
    background-color: #f8fafc;
}
/* Product category heading */
.feedback-category legend {
    padding: 0 0.5rem;
    color: #17395c;
    font-size: 1.3rem;
    font-weight: bold;
}
/* Product checklist */
.product-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
/* Product checkbox */
.product-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
}
/* Product checkbox input */
.product-checkbox input {
    margin-top: 0.25rem;
}
/* Satisfaction options */
.satisfaction-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
/* Satisfaction option */
.satisfaction-options label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
/* Category comment label */
.feedback-category > label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: bold;
}
/* Feedback form buttons */
.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}
/* Submit and reset buttons */
.feedback-buttons input {
    width: auto;
    padding: 0.75rem 1.25rem;
    border: 1px solid #17395c;
    border-radius: 4px;
    font: inherit;
    cursor: pointer;
}
/* Submit button */
.feedback-buttons input[type="submit"] {
    color: #ffffff;
    background-color: #17395c;
}
/* Submit button hover effect */
.feedback-buttons input[type="submit"]:hover {
    color: #000000;
    background-color: #f2c94c;
}
/* Reset button */
.feedback-buttons input[type="reset"] {
    color: #000000;
    background-color: #eeeeee;
}
/* Reset button hover effect */
.feedback-buttons input[type="reset"]:hover {
    background-color: #dddddd;
}
/* Error message */
.feedback-section .error {
    color: #b00020;
    font-weight: bold;
    text-align: center;
}
/* Success message */
.success {
    color: #16703a;
    font-weight: bold;
    text-align: center;
}
/* Email warning message */
.mail-warning {
    color: #b00020;
    font-weight: bold;
    text-align: center;
}
/* Feedback page link */
.feedback-link {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    color: #ffffff;
    background-color: #17395c;
    border-radius: 4px;
    text-decoration: none;
}
/* Feedback page link hover effect */
.feedback-link:hover {
    color: #000000;
    background-color: #f2c94c;
}
/* Adjust the form on smaller screens */
@media screen and (max-width: 700px) {
    .feedback-header {
        padding: 1.5rem 1rem 0.5rem;
    }
    .feedback-section {
        width: 95%;
        padding: 1rem;
    }
    .product-checklist,
    .satisfaction-options {
        grid-template-columns: 1fr;
    }
    .feedback-buttons {
        flex-direction: column;
    }
    .feedback-buttons input {
        width: 100%;
    }
}