@charset "utf-8";
@import url("https://fonts.googleapis.com/css?family=Fira+Sans:300");

/* some vars */
:root {
    font-family: 'Fira Sans', sans-serif;
    --slate: #333333;
    --dim: #aaaaaa;
    --link-active: #005690;
}


body {
    font-family: 'Fira Sans', sans-serif;
    line-height: 1.6;
    color: #222;
    max-width: 40rem;
    padding: 2rem;
    margin: auto;
    background: #fafafa;
}

header #actions {
    float: right;
    font-size: smaller;
    font-weight: bold;
}

header #actions ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline;
}

header #actions li {
    display: inline;
}

header #actions a {
    color: var(--dim);
    text-decoration: none;
}

header #actions a:hover {
    text-decoration: underline;
    color: var(--link-active);
}

header .page-login {
    padding: 5px 10px;
    border: 1px solid #aaaaaa;
    border-radius: 5px;
}

header .page-login:hover {
    border-color: #0A0;
    background-color: #EFE;
}

.liheader {
    padding-top: 10px;
}

.hiline {
    text-align: center;
}

.error {
    color: red;
    font-weight: bold;
}

.error a {
    color: inherit;
    font-weight: bolder;
    font-style: italic;
    text-decoration: none;
}

.error a:hover {
    text-decoration: underline;
}

.version {
    float: right;
    color: #aaaaaa;
    font-size: smaller;
    font-style: italic;
}

/* some styles about links */
a.special {
    font-weight: bold;
    text-decoration: none;
    color: var(--slate);
}

a.special:hover {
    text-decoration: underline;
    color: var(--link-active);
}

a.special:visited {
    color: var(--slate);
}

a[href^="http://"]:not([data-external="true"]),
a[href^="https://"]:not([data-external="true"]),
a.new-window {
    background: url("/includes/images/link-external-ltr-progressive.svg");
    background-position: center right;
    background-repeat: no-repeat;
    background-size: 0.75em;
    padding-right: 1em;
}

/* undo on local links
a[href^="https://www.electrictoolbox.com"]  {
    background: none;
    padding-right: 0;
}
*/

footer {
    margin-top: 20px;
}

footer .line {
    width: 50%;
    border-top: 1px solid #aaaaff;
}

footer .copyright {
    font-size: smaller;
}

.hide {
    display: none;
}

.terms_link {
    font-size: smaller;
}

.terms_link a {
    color: inherit;
    text-decoration: none;
}

.terms_link a:hover {
    color: var(--link-active);
    text-decoration: underline;
}

/* Terms/Privacy separator in footer */
.terms_link .separator {
    margin: 0 0.4rem;
    color: var(--dim);
}

/* Security Alert Styling */
.security-alert {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.warning-box {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-left: 4px solid #dc3545;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.warning-text {
    color: #721c24;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
}

.action-text {
    color: #721c24;
    font-weight: 600;
    margin: 0;
}

.policy-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    border-left: 4px solid #17a2b8;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.external-resource {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dim);
}

/* Accessibility and ARIA Support */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sr-only-focusable:focus {
    position: static !important;
    width: auto !important;
    height: auto !important;
    padding: 0.25rem 0.5rem !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
}

/* Form Enhancement */
.validation-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

input.error,
select.error,
textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* External Link Indicator */
a[data-external="true"]:after {
    content: " ↗";
    font-size: 0.8em;
    opacity: 0.7;
}

/* Focus Enhancement */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--link-active);
    outline-offset: 2px;
}

/* ARIA Regions */
[role="region"],
[role="main"],
[role="complementary"] {
    margin-bottom: 1rem;
}

/* Form Group Styling */
.element-group {
    margin-bottom: 1rem;
}

.element-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.element-group input,
.element-group select,
.element-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--dim);
    border-radius: 4px;
    font-family: inherit;
}

.element-group input[type="checkbox"],
.element-group input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Additional portal styling */
.instructions {
    color: var(--dim);
    font-style: italic;
    margin-bottom: 1rem;
}

.security-note {
    background-color: #f8f9fa;
    border-left: 3px solid var(--link-active);
    padding: 0.75rem;
    margin: 1rem 0;
    font-size: 0.9rem;
}