/* Individual Case Study 7: modular retro quiz results and feedback prototype */

.prototype-note,
.prototype-result,
.selection-output {
    padding: 1rem;
    border-left: 4px solid #35ff75;
    background-color: #08100b;
}

.prototype-result {
    margin-bottom: 1.25rem;
}

.prototype-label {
    color: #ffd37c;
    font-weight: bold;
    text-transform: uppercase;
}

#playerSetupForm,
#feedbackForm {
    display: grid;
    gap: 1rem;
}

.validation-summary {
    padding: 1rem;
    border: 1px solid #2d8f4f;
    border-left: 4px solid #35ff75;
    background-color: #08100b;
    color: #b9ffd0;
}

.validation-summary.error-message {
    border-color: #ff6d6d;
    color: #ffd6d6;
}

.validation-summary.success-message {
    border-color: #35ff75;
    color: #7CFF9B;
    box-shadow: 0 0 12px rgba(124, 255, 155, 0.35);
}

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field label,
.form-field legend {
    color: #b9ffd0;
    font-weight: bold;
}

.form-field span {
    color: #ff9b9b;
}

.form-field input[type="text"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #2d8f4f;
    background-color: #08100b;
    color: #d6ffe2;
    font: inherit;
}

.form-field input[type="text"]:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid #7CFF9B;
    box-shadow: 0 0 10px rgba(124, 255, 155, 0.45);
}

fieldset.form-field {
    margin: 0;
    padding: 1rem;
    border: 1px solid #2d8f4f;
    background-color: #08100b;
}

fieldset.form-field label,
.checkbox-field label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

fieldset.form-field input,
.checkbox-field input {
    accent-color: #35ff75;
}

.feedback-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feedback-options legend,
.feedback-options .field-feedback {
    grid-column: 1 / -1;
}

.field-feedback {
    min-height: 1.5rem;
    margin: 0;
    color: #ffb3b3;
}

.selection-output {
    display: grid;
    gap: 0.35rem;
    overflow-wrap: anywhere;
}

.selection-output output {
    color: #7CFF9B;
}

.input-error {
    border-color: #ff6d6d !important;
    box-shadow: 0 0 10px rgba(255, 109, 109, 0.35);
}

.feedback-confirmation {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid #35ff75;
    background-color: #08100b;
}

button {
    justify-self: start;
    padding: 0.75rem 1rem;
    border: 1px solid #35ff75;
    background-color: #12351f;
    color: #7CFF9B;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}

button:hover,
button:focus-visible {
    background-color: #7CFF9B;
    color: #050807;
    box-shadow: 0 0 12px rgba(124, 255, 155, 0.8);
}

@media (max-width: 600px) {
    .feedback-options {
        grid-template-columns: 1fr;
    }

    button {
        width: 100%;
    }
}
