/**
 * Accessibility Enhancement Styles
 * WCAG 2.2 Level A/AA compliance fixes for ne-dot-state-property-damage
 *
 * WCAG Success Criteria:
 *   1.4.3 Contrast (Minimum) Level AA
 *   1.3.1 Info and Relationships Level A
 */

/* =========================================================
   Footer contrast on dark background (body: rgb(50, 58, 69))
   ========================================================= */

footer .dim-header {
    color: #E0E0E0 !important;
}

footer p,
footer address {
    color: #E0E0E0 !important;
}

/* Scope to specific address spans only - do NOT use footer span (overrides glyphicons) */
footer .address-line,
footer .agency-contact .header {
    color: #E0E0E0 !important;
}

footer a,
footer a:visited {
    color: #66B3FF !important;
}

footer a:hover,
footer a:focus {
    color: #99CCFF !important;
}

/* =========================================================
   Address block formatting (replaces <br> tags)
   ========================================================= */

.agency-contact .address-line {
    display: block;
}

/* =========================================================
   Submit button contrast fix
   Ensures btn-primary text passes 4.5:1 contrast ratio
   ========================================================= */

.btn-primary.btn-wide {
    background-color: #1a5c9e;
    border-color: #154d87;
    color: #ffffff !important;
}

.btn-primary.btn-wide:hover,
.btn-primary.btn-wide:focus {
    background-color: #154d87;
    border-color: #0f3d6b;
    color: #ffffff !important;
}

/* =========================================================
   Receipt page alert-success contrast fix
   Bootstrap alert-success green background with white text fails contrast
   Darkened background to #1e6b1e = ~6.6:1 with white (passes WCAG 1.4.3 AA)
   ========================================================= */

.receipt-page .alert-success {
    background-color: #1e6b1e;
    border-color: #185a18;
    color: #ffffff !important;
}

/* =========================================================
   Make Payment button contrast fix (review.tpl)
   Bootstrap btn-success (#5cb85c) with white text = ~2.3:1 (fails)
   Darkened to #1e6b1e = ~6.6:1 with white (passes WCAG 1.4.3 AA)
   ========================================================= */

.btn-success.btn-wide {
    background-color: #1e6b1e;
    border-color: #185a18;
    color: #ffffff !important;
}

.btn-success.btn-wide:hover,
.btn-success.btn-wide:focus {
    background-color: #185a18;
    border-color: #124712;
    color: #ffffff !important;
}
