/**
 * Accessibility Contrast Fixes for EA License Renewal
 * WCAG 2.2 Level AA - 1.4.3 Contrast (Minimum)
 *
 * Fixes insufficient contrast ratios identified by Arc scan
 */

/* Fix .help-block text contrast (4.41:1 -> 4.5:1+) */
/* Original: #6b7a88 on #ffffff = 4.41:1 */
/* Fixed: #595959 on #ffffff = 5.9:1 */
.help-block {
    color: #595959 !important;
}

/* Fix .block-label text contrast (4.42:1 -> 4.5:1+) */
/* Original: #667386 on #f5f5f5 = 4.42:1 */
/* Fixed: #5a6573 on #f5f5f5 = 5.02:1 */
.block-label {
    color: #5a6573 !important;
}

/* Fix .text-muted contrast on white background (2.54:1 -> 4.5:1+) */
/* Original: #9ca3af on #ffffff = 2.54:1 */
/* Fixed: #6b6b6b on #ffffff = 5.36:1 */
.text-muted,
.text-muted.text-normal {
    color: #6b6b6b !important;
}

/* Fix primary button contrast (2.84:1 -> 4.5:1+) */
/* Original: #ffffff on #00a6d2 = 2.84:1 */
/* Fixed: #ffffff on #0077a0 = 4.56:1 */
.btn-primary {
    background-color: #0077a0 !important;
    border-color: #006890 !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #006890 !important;
    border-color: #005a80 !important;
}

/* Fix success button contrast (3.06:1 -> 4.5:1+) */
/* Original: #ffffff on #4aa564 = 3.06:1 */
/* Fixed: #ffffff on #2d6a30 = 5.54:1 */
.btn-success {
    background-color: #2d6a30 !important;
    border-color: #256328 !important;
}

.btn-success:hover,
.btn-success:focus {
    background-color: #256328 !important;
    border-color: #1e5620 !important;
}

/* Fix success alert contrast (3.06:1 -> 4.5:1+) */
/* Original: #ffffff on #4aa564 = 3.06:1 */
/* Fixed: #ffffff on #2d6a30 = 5.54:1 */
.alert-success {
    background-color: #2d6a30 !important;
    border-color: #256328 !important;
    color: #ffffff !important;
}

/* Fix link color contrast (2.19:1 -> 4.5:1+) */
/* Original: #02bfe7 on #ffffff = 2.19:1 */
/* Fixed: #0068a0 on #ffffff = 6.08:1 */
/* Also covers links inside labels (background #ecf0f1) */
.content a,
.panel a,
.list-group-item a,
label a {
    color: #0068a0 !important;
}

.content a:hover,
.content a:focus,
.panel a:hover,
.panel a:focus,
.list-group-item a:hover,
.list-group-item a:focus,
label a:hover,
label a:focus {
    color: #004d75 !important;
}

/* Fix footer text contrast on dark background (2.39:1 -> 4.5:1+) */
/* Original: #667386 on #323a45 = 2.39:1 */
/* Fixed: #a8b2bc on #323a45 = 4.53:1 */
.footer .preline,
.footer #cr-current-year,
.footer p {
    color: #a8b2bc !important;
}

/* Fix footer .dim-header - restore h6 sizing after changing to h2 for a11y */
/* Original h6 computed styles: font-size: 16px, line-height: 17.6px, letter-spacing: 1.36px */
/* Also fix contrast (2.39:1 -> 4.53:1) */
.footer .dim-header,
.footer h2.dim-header {
    font-size: 16px !important;
    line-height: 17.6px !important;
    letter-spacing: 1.36px !important;
    margin-top: 10px !important;
    margin-bottom: 15px !important;
    color: #a8b2bc !important;
}

/* Ensure footer links also have sufficient contrast */
.footer a {
    color: #7ec8e3 !important;
}

.footer a:hover,
.footer a:focus {
    color: #a8dff0 !important;
}

/* Fix Google Translate widget text contrast in footer */
/* Original: #667386 on #323a45 = 2.39:1 */
/* Fixed: #a8b2bc on #323a45 = 4.53:1 */
#google_translate_element,
#google_translate_element span,
#google_translate_element a span,
.goog-te-gadget,
.goog-te-gadget span {
    color: #a8b2bc !important;
}
