/* form.css - styles for the feedback form and its error messages (used with global/main.css) */

.feedback-form fieldset {
    border: 1px solid #24365a;
    border-radius: 12px;
    padding: 18px 22px 8px;
    margin-bottom: 22px;
    background-color: #12213a;
}

.feedback-form legend {
    padding: 0 10px;
    font-weight: 600;
    color: #2ec4b6;
    font-size: 1.05em;
}

.feedback-form .field {
    margin-bottom: 16px;
}

.feedback-form label,
.feedback-form .group-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #e6edf5;
}

.feedback-form .choice {
    display: inline-block;
    margin: 0 18px 4px 0;
}

.feedback-form .choice label {
    display: inline;
    font-weight: 400;
    margin-left: 4px;
    cursor: pointer;
}

.feedback-form input[type="text"],
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    border: 1px solid #2b4068;
    border-radius: 8px;
    background-color: #0b1626;
    color: #e6edf5;
    font-family: inherit;
    font-size: 1em;
}

.feedback-form textarea {
    max-width: 100%;
    resize: vertical;
}

.feedback-form input[type="text"]:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: #2ec4b6;
    background-color: #0e1d33;
}

.feedback-form input[type="radio"],
.feedback-form input[type="checkbox"] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    cursor: pointer;
}

.required {
    color: #ff8a8a;
}

/* ---------- Error messages ---------- */
.feedback-form .error {
    display: block;
    margin-top: 5px;
    font-size: 0.88em;
    font-weight: 600;
    color: #ff8a8a;
}

.feedback-form .invalid {
    border-color: #ff6b6b;
    background-color: #2a1418;
}

.form-actions {
    margin-bottom: 8px;
}
