/*
 * Form fields: labels, inline errors, sending state (2026-10-23).
 * Matches the theme (square corners, accent #f0a441, text #2f4d59). The error red
 * #c62828 meets WCAG AA contrast on white (5.6:1); the theme's #f56e6e does not.
 * Errors never rely on colour alone: icon, message and border width all change.
 */

.abb-form .abb-required-note {
    margin: 0 0 18px;
    font-size: .875em;
    color: #5f6b6d;
}

.abb-field {
    margin-bottom: 20px;
}

.abb-label {
    display: block;
    margin: 0 0 6px;
    font-weight: 600;
    font-size: .9375em;
    line-height: 1.4;
    color: #2f4d59;
}

.abb-required {
    margin-left: 3px;
    color: #c62828;
}

.abb-field .form-control {
    border-radius: 0;
    -webkit-box-shadow: none;
    box-shadow: none;
    -webkit-transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.abb-field .form-control:focus {
    border-color: #f0a441;
    outline: 0;
    -webkit-box-shadow: 0 0 0 3px rgba(240, 164, 65, .25);
    box-shadow: 0 0 0 3px rgba(240, 164, 65, .25);
}

/* Error state (more specific than Bootstrap's .has-error .form-control). */
.abb-field.has-error .form-control {
    border-color: #c62828;
    border-left-width: 3px;
    background-color: #fffafa;
}

.abb-field.has-error .form-control:focus {
    border-color: #c62828;
    -webkit-box-shadow: 0 0 0 3px rgba(198, 40, 40, .18);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, .18);
}

.abb-field-error {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    margin: 6px 0 0;
    font-size: .875em;
    font-weight: 600;
    line-height: 1.45;
    color: #c62828;
    -webkit-animation: abb-error-in .18s ease-out;
    animation: abb-error-in .18s ease-out;
}

.abb-field-error .fa {
    margin: 2px 7px 0 0;
}

.abb-field-error[hidden] {
    display: none;
}

/* Errors that belong to no single field (anti-robot check, sending failure). */
.abb-form-alert {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-left: 3px solid #c62828;
    background: #fdecea;
    color: #8e1c1c;
    font-size: .9375em;
}

.abb-form-alert .fa {
    margin: 3px 10px 0 0;
}

.abb-form-alert p {
    margin: 0;
}

.abb-form .form-privacy-note {
    margin: 0 0 14px;
    color: #5f6b6d;
}

/* Sending state. */
.abb-form .wpcf7-submit[disabled] {
    cursor: progress;
    opacity: .85;
}

.abb-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 8px;
    vertical-align: -2px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    -webkit-animation: abb-spin .8s linear infinite;
    animation: abb-spin .8s linear infinite;
}

.abb-form-wait {
    margin: 10px 0 0;
    font-size: .875em;
    color: #5f6b6d;
    text-align: center;
}

@-webkit-keyframes abb-spin { to { -webkit-transform: rotate(360deg); } }
@keyframes abb-spin { to { transform: rotate(360deg); } }
@-webkit-keyframes abb-error-in { from { opacity: 0; -webkit-transform: translateY(-3px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes abb-error-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .abb-field .form-control,
    .abb-field-error,
    .abb-spinner {
        -webkit-transition: none;
        transition: none;
        -webkit-animation: none;
        animation: none;
    }
}
