/* --------------------------------------------------------- */

/*  Table of Contents: */
/*
   1. GLOBAL STYLING
   2. GLOBAL FOUNDATION.CSS OVERRIDES/ADDITIONS
   3. HEADER/MASTHEAD
   4. TOP BAR - TITLE BAR - NAVIGATION
   5. LOGO
   6. HEADERS
   7. TEXT
   8. APPLICATION PROGRESS MENU
   9. CONTENT/CONTENT PAGE
  10. FORMS
  11. BUTTONS
  12. DIV BOXES
  13. SUMMARY
  14. FOOTER
*/

/* 1. GLOBAL STYLING
/* --------------------------------------------------------- */

:root {
    --blue: rgba(0, 93, 161, 1);
    --gray: rgba(46, 53, 81, 0.59);
    --dkblue: #142C6C; /* from client live site footer bg */
    --brightblue: #39aefc; /* from axure mock */
    --red: #be1e2d; /* from axure mock */
    --ltgray: #ebebeb; /* for application review odd row bg */
    --gray_ro: #BFBFBF; /* from client live site footer */
    --inputgray: #7e7e7e; /* from live site contact email form */
    --placeholder_gray: #767676; /* inputgray darkened 3% to meet color contrast requirements */
    --dkgray: #3b3f42; /* from live site */
    --black: #000;
    --white: #fff;
    --orange: #ff8c00; /* focus outline color */
}

*{  -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box; }

*:focus { /* chrome/safari issue - this removes yellow border appearing on selected items */
    outline: none; }

body {
    margin: 0px;
    padding: 0px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem; /* 16px */
    background-color: var(--white);
    color: var(--textblack); }

div {
    margin: 0;
    padding: 0;	}

/* 2. GLOBAL FOUNDATION.CSS OVERRIDES/ADDITIONS
/* (also look for specific overrides in sections within css) */
/* --------------------------------------------------------- */

.menu > li > a {
    padding: .2rem 1rem; } /* this globally controls all the padding for all menu li links*/

.menu > li > a img, .menu > li > a i, .menu > li > a svg { /*to correct and have even padding around all the .top-bar-right li items*/
    margin-right: 0; }
.req::after {
    content: " *";
}
.noStar.req::after, .noStar::after {
    content: none !important; /* Set content to none to remove the asterisk */
    color: inherit; /* Optionally inherit color from parent */
}
select:focus{
    border: 1px solid #8a8a8a;
    background-color: #fefefe;
    outline: 2px solid var(--orange);
    outline-offset: -2px;

}

/* 3. HEADER/MASTHEAD/POSTMASTHEAD
/* --------------------------------------------------------- */

/* masthead */
#masthead {
    margin: 0;
    padding: 0;
    height: auto; }
@media only screen and (min-width: 64em) { /* any screen 1024px or wider (large screens and up) */
    #masthead {
        height: 125px; /* Increased to accommodate the larger logo */ }}

/* postmasthead */
#postmasthead {
    margin: 0;
    padding: 0;
    height: 50px;
    background-color: var(--blue); }
@media only screen and (min-width: 40em) { /* any screen 640px or wider (medium screens) */
    #postmasthead {
        height: 88px; }}

/* 4. TOP BAR - TITLE BAR - NAVIGATION
/* --------------------------------------------------------- */

/* Secondary Top Bar */
.secondary-top-bar {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 25px;
    border: 1px solid #797979;
    background-color: #ebebeb;
    box-sizing: border-box;
}

.secondary-top-bar .row {
    max-width: 1200px;
    margin: 0 auto;
}

.secondary-top-bar-right {
    float: right;
}

.secondary-top-bar-right .menu {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.secondary-top-bar-right .menu li {
    display: inline-block;
    margin: 0;
    padding: 0;
}

.secondary-top-bar-right .menu li a {
    display: inline-block;
    padding: 2px 10px;
    color: var(--dkgray);
    font-size: 0.875rem;
    text-decoration: none;
}

.secondary-top-bar-right .menu li a:hover {
    text-decoration: underline;
}

/* Foundation Overrides */
.top-bar {
    margin: 0;
    padding: .625rem .625rem .625rem .625rem;
    background: var(--white); }

.top-bar-left {
    text-align: center;
    width: 100%;
    float: none; }
@media only screen and (min-width: 64em) { /* any screen 1024px or wider (large screens and up) */
    .top-bar-left {
        text-align: left;
        width: auto;
        float: left; }}
@media only screen and (min-width: 48em) and (orientation : portrait) { /* any screen 768px or wider (medium screens) in portrait */
    .top-bar {
        padding: .625rem .9375rem; }}
@media only screen and (min-width: 40em) and (orientation : landscape) { /* any screen 640px or wider (medium screens) */
    .top-bar {
        padding: .625rem .9375rem; }}
@media only screen and (min-width: 41.6875em) and (orientation : landscape) { /* any screen 667px or wider (medium screens) */
    .top-bar {
        padding: .625rem .9375rem; }}
@media only screen and (min-width: 50.75em) and (orientation : landscape) { /* any screen 812px or wider (medium screens) */
    .top-bar {
        padding: .625rem .9375rem; }}
@media only screen and (min-width: 56em) and (orientation : landscape) { /* any screen 896px or wider (large medium screens) */
    .top-bar {
        padding: .625rem .9375rem; }}
@media only screen and (min-width: 60.125em) and (orientation : landscape) { /* any screen 962px or wider (large medium screens) */
    .top-bar {
        padding: .625rem .9375rem; }}
@media only screen and (min-width: 64em) { /* any screen 1080px or wider (large screens and up) */
    .top-bar {
        padding: .625rem .625rem; }}
@media only screen and (min-width: 80em) { /* any screen 1280px or wider (large screens and up) */
    .top-bar {
        padding: .625rem .625rem; }}

.top-bar .contact_info {
    text-align: center;
    margin: .9375rem auto 0 auto;
    font-size: 1.125rem;
    color: var(--dkgray); }
@media only screen and (min-width: 64em) { /* any screen 1024px or wider (large screens and up) */
    .top-bar .contact_info {
        text-align: right;
        margin: .625rem 0 0 0; }}

/* 5. LOGO
/* --------------------------------------------------------- */

.logo {
    display: block;
    margin: 1.25rem auto .5rem auto;
    width: 296px;
    height: 115px;
    max-width: 100%;
    object-fit: contain; }
@media only screen and (min-width: 64em) { /* any screen 1024px or wider (large screens and up) */
    .logo {
        margin: .875rem 0 .875rem .3125rem; }}

.logo-small {
    display: block;
    width: 296px;
    height: 115px;
    max-width: 100%;
    object-fit: contain;
    margin: 0.5rem auto; }

/* 6. HEADERS
/* --------------------------------------------------------- */

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    text-rendering: optimizeLegibility;
    margin: 0;
    padding: 0;
    text-transform: capitalize;
    color: var(--textblack);
    font-weight: 700; }

h1 {
    font-size: 2rem;
    color: var(--dkgray); }
h2 {
    font-size: 1.0625rem;
    color: var(--green); }
@media only screen and (min-width: 64em) { /* any screen 1024px or wider (large screens and up) */
    h2 {
        font-size: 1.5rem; }}

h3 {
    font-size: 1.1875rem;
    color: var(--textblack);
    font-weight: 700; }
h4 {
    font-size: .8125rem;
    color: var(--black); }

/* 7. TEXT
/* --------------------------------------------------------- */

.explain_text {
    font-size: 1.0625rem;
    color: var(--dkgray); }

/* 8. APPLICATION PROGRESS MENU
/* --------------------------------------------------------- */

/* For small view */
#app_progress_small {
    display: block;
    margin: .5rem 0 0 0;
    padding: 0; }

#app_progress_small h4 {
    color: var(--black);
    white-space: nowrap;
    letter-spacing: normal;
    margin-left: .125rem;
    margin-bottom: .1875rem; }

/* Foundation Overrides */
.progress {
    background-color: var(--blue);
    height: 1.375rem;
    margin-bottom: .375rem;
    border-radius: 7px; }

.progress-meter {
    border-radius: 7px 0 0 7px;
    overflow: hidden; }

.progress-meter .progress-meter-text {
    font-size: .8125rem;
    font-weight: 500;
    color: var(--white); }

.progress-meter {
    background-color: var(--blue);
    z-index: 100; }
/* End Foundation Overrides */

/* For large view - horizontal progress bar */
#app_progress_large {
    margin: 0;
    padding: 0;
    background-color: var(--blue);
    height: 40px;
    max-width: 100%;
    clear: both; /* Ensure it clears any floated elements above it */
    width: 100%; /* Ensure it takes full width */ }

#app_progress_large ul {
    margin: 0;
    padding: 0;
    font-size: 0; /* fix for unwanted whitespace between inline list items */ }

#app_progress_large li {
    margin: 0;
    padding: 8px 32px;
    display: inline;
    position: relative;
    height: 40px;
    text-align: center;
    font-size: 1.125rem; /* 18px */
    color: var(--white); }

/* progress states */
#app_progress_large li.active, #app_progress_large li.not_active, #app_progress_large li.completed {
    display: inline-block;
    font-size: 1.125rem;
    height: 40px; }

/* active */
#app_progress_large li.active {
    color: var(--blue);
    font-weight: 700;
    background-color: var(--white);
    border-left: 1px solid var(--white);
    border-right: 1px solid var(--white);
    border-top: none;
    border-bottom: none; }

/* not_active */
#app_progress_large li.not_active {
    color: var(--white);
    font-weight: 400;
    background-color: var(--blue);
    border-left: 1px solid var(--white);
    border-right: 1px solid var(--white);
    border-top: none;
    border-bottom: none; }

/* completed */
#app_progress_large li.completed {
    color: var(--white);
    font-weight: 400;
    background-color: var(--blue);
    border-left: 1px solid var(--white);
    border-right: 1px solid var(--white);
    border-top: none;
    border-bottom: none; }

#app_progress_large li:last-child {
    border-right: none; }

/* 9. CONTENT/CONTENT PAGE
/* --------------------------------------------------------- */

/* Foundation Overrides */
#content .column:last-child:not(:first-child), #content .columns:last-child:not(:first-child) {
    float: right; /* keep this to control the <aside>(app_progress_large right-aligned with contact_info */
    /* float: left;  */ } /*this affects form fields: to align left when in columns that don't add up to 12 on grid*/
/* End Foundation Overrides */

#content {
    margin: 0;
    padding: 0;
    background-color: var(--white); }

/* content_page headers */
/* header title */
#content .header_title {
    margin: .875rem .125rem .125rem .125rem;
    padding: 0 ;
    line-height: 1.2;
}
@media only screen and (min-width: 64em) { /* any screen 1024px or wider (large screens and up) */
    #content .header_title {
        margin: 2.5rem -.3125rem .125em .125rem; /* needed negative right margin to align with contact_info and app_progress_large */ }}

/* explain text */ /*see also .explain_text in section TEXT, this style applies only within #content section */
#content p.explain_text {
    display: block;
    margin-bottom: .625rem;
    padding: 0 .125rem; }
/* end content_page headers */

/* content_page */
.content_page {
    margin: 0;
    padding: 0 .125rem;
    background-color: var(--white);
    border: none; }
@media only screen and (min-width: 64em) { /* any screen 1024px or wider (large screens and up) */
    .content_page {
        margin: 1.75rem 0;
        padding: .625rem 1.4375rem;

        overflow: hidden; }}

.content_page_summary {
    margin: 0;
    padding: 0 .125rem;
    background-color: var(--white);
    border: none; }
@media only screen and (min-width: 64em) { /* any screen 1024px or wider (large screens and up) */
    .content_page_summary {
        margin: 1.75rem 0;
        padding: 0;

        overflow: hidden; }}

.content_page small {
    display: block;
    font-size: .75rem;
    margin: 0 0 .25rem 0;
    float: none; }
@media only screen and (min-width: 40em) { /* any screen 640px or wider (medium screens) */
    .content_page small {
        float: right;
        margin: 0 0 .125rem 0; }}

.loanChoice a[role="button"] {
    display: block;
    text-align: center;
    margin-bottom: 1.5rem;
}

.loan-img-wrap {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loan-img-wrap img {
    width: 150px;
    height: 97px;
    border-radius: 45px;
}

.loan-label-wrap {
    text-align: center;
    margin-top: 0.5rem;
}

/* 10. FORMS
/* --------------------------------------------------------- */

form {
    margin: 0;
    padding: 0;
    clear: both;
    background-color: var(--white); }

label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dkgray); }

[type=text], [type=email], [type=tel], [type=number], [type=date], textarea, select, .input-group-field {
    background-color: var(--white);
    height: 2.375rem;
    color: var(--dkgray);
    font-weight: 400;
    border: 1px solid var(--inputgray);
    border-radius: 5px;
    box-shadow: none; }

.fieldset {
    border: none;
    padding: 0 .9375rem 0 .6875rem;
    margin: .5rem 0 .25rem 0; }
@media only screen and (min-width: 40em) { /* any screen 640px or wider (medium screens) */
    .fieldset {
        padding: 0 .9375rem 0 .9375rem;	}}

.fieldset legend {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dkgray);
    margin: 0;
    margin-left: -1.5rem;
    padding: .4375rem 1.4375rem 0 1.4375rem; }
@media only screen and (min-width: 40em) { /* any screen 640px or wider (medium screens) */
    .fieldset legend {
        margin-left: -1.4375rem; }}

.fieldset .length_of_residence_menu {
    padding: 0 0 0 1.3125rem; }

.fieldset .length_of_residence_menu li {
    padding: .5rem .75rem .5rem 0; }

.fieldset .fieldset_label {
    margin-bottom: .1875rem; }

.fieldset .radio_label {
    margin-bottom: .25rem;
    color: var(--dkgray);
    font-weight: 400; }

[type=checkbox] {
    vertical-align: -2px; }

textarea {
    margin: .625rem auto;
    padding: 8px 16px;
    box-sizing: border-box;
    background-color: var(--white);
    font-size: 1rem;
    outline: none; }

.comments p {
    margin-bottom: 0;
    padding: 1rem 1.4375rem .25rem 1.4375rem; }

select, select option {
    /* text-transform: capitalize; */
    color: var(--dkgray); }

/* placeholder text */
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    font-size: 1rem;
    font-weight: 400;
    /* text-transform: none; */
    color: var(--placeholder_gray); }

input::-moz-placeholder, textarea::-moz-placeholder { /* Firefox 19+ */
    font-size: 1rem;
    font-weight: 400;
    /* text-transform: none; */
    color: var(--placeholder_gray); }

input:-ms-input-placeholder, textarea:-ms-input-placeholder { /* IE 10+ */
    font-size: 1rem;
    font-weight: 400;
    /* text-transform: none; */
    color: var(--placeholder_gray); }

input::placeholder, textarea::placeholder {
    font-size: 1rem;
    font-weight: 400;
    /* text-transform: none; */
    color: var(--placeholder_gray); }

/* 11. BUTTONS
/* --------------------------------------------------------- */

/* Foundation Overrides */
button, .button {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 23px;
    padding: 8px 16px;
    overflow: hidden;
    text-align: center;
    white-space: normal;
    height: auto;
    min-height: 35px;
    min-width: 105px;
    line-height: 1.2;  }

/* Override specific styles for CTA buttons */
.button.cta, .button.summary_cta, .button.back.cta {
    font-size: 1rem; /* Slightly smaller font size for better fit */
}
/* End Foundation Overrides */

.button.cta, .button.summary_cta {
    color: var(--white);
    background-color: var(--blue);
    display: inline-block;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border-radius: 20px;
    border: 1px solid var(--white);

    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -ms-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease; }
@media only screen and (min-width: 40em) { /* any screen 640px or wider (medium screens) */
    .button.cta, .button.summary_cta {
        width: 140px;
        min-width: 140px; /* Ensure minimum width */
        height: auto; /* Keep height auto for text wrapping */
        min-height: 35px; /* Maintain minimum height */ }

    .button.summary_cta {
        margin-left: 1rem;
        margin-right: 1rem; }}

.button.cta:hover, .button.summary_cta:hover {
    text-decoration: none;
    color: var(--blue);
    background-color: var(--white);
    border: 1px solid var(--blue); }

/* Make span.saved.button.cta always look like button.cta:hover */
span.button.cta {
    text-decoration: none;
    color: var(--blue);
    background-color: var(--white);
    border: 1px solid var(--blue); }

.button.back.cta {
    background-color: var(--blue);
    color: var(--white);
    border-radius: 20px;
    border: 1px solid var(--white);

}

.button.back.cta:hover {
    background-color: var(--white);
    color: var(--blue);
    border: 1px solid var(--blue);
}

.client_button_group {
    margin-top: 1rem; }
@media only screen and (min-width: 64em) { /* any screen 1024px or wider (large screens and up) */
    .client_button_group {
        margin-top: 2rem;
        margin-left: 0; }}

.client_button_group_summary {
    margin-top: 1rem; }
@media only screen and (min-width: 64em) { /* any screen 1024px or wider (large screens and up) */
    .client_button_group_summary {
        margin: .5rem 10rem; }}

/* 12. DIV BOXES
/* --------------------------------------------------------- */

.light-box {
    font-size: .9375rem;
    font-weight: 400;
    background-color: var(--blue);
    border: 3px solid var(--blue);
    color: var(--white);
    padding: 12px 15px;
    margin: 20px; }

.light-box h3, .errors h3, .saved h3 {
    font-size: 1.1875rem;
    margin-bottom: .25rem;
    font-weight: 700; }

.light-box h3 {
    color: var(--green); }

.light_box_subheader {
    text-transform: uppercase;
    font-size: 1.0625rem; }

.errors {
    font-size: .9375rem;
    background-color: var(--red);
    border: 3px solid var(--red);
    color: var(--white);
    padding: 12px 15px;
    margin: 20px; }

.errors h3 {
    color: var(--white); }

.saved {
    font-size: .9375rem;
    color: var(--white);
    background-color: var(--blue);
    border: 3px solid var(--blue);
    padding: 12px 15px;
    margin: 20px; }

.saved h3 {
    color: var(--black); }

.light-box p, .errors p, .saved p {
    margin-bottom: .1rem; }

/* 13. SUMMARY
/* --------------------------------------------------------- */

.summary-section {
    margin: 0;
    padding: 1rem 0;
    background-color: var(--white); }

/* Foundation Overrides */
.summary-section .column, .summary-section .columns {
    padding-left: .4rem; }
/* End Foundation Overrides */

.summary-section:nth-child(odd) {
    background-color: var(--ltgray); }

.summary-section h2 {
    color: var(--green);
    margin-top: .4375rem;
    margin-right: -.5rem; /*to correct misalignment from .columns in foundation.css */
    text-align: right;
    text-rendering: optimizeLegibility; }
@media only screen and (min-width: 64em) { /* any screen 1024px or wider (large screens and up) */
    .summary-section h2 {
        margin-top: .25rem;
        margin-right: -.4375rem; /*to correct misalignment from .columns in foundation.css */ }}

.summary-section .summary_btn {
    width: 100px; }

.summary1 {
    color: var(--maroon);
    font-size: 1rem;
    font-weight: 700;
    text-align: right;
    padding:0 .3rem 0 0;
    margin: 0; }
@media only screen and (min-width: 40em) { /* any screen 640px or wider (medium screens) */
    .summary1 {
        padding: .25rem .5rem; }}

.summary2 {
    color: var(--black);
    font-size: 1rem;
    text-align: left;
    padding: 0;
    margin: 0; }
@media only screen and (min-width: 40em) { /* any screen 640px or wider (medium screens) */
    .summary2 {
        font-size: 1rem;
        padding: .25rem .5rem; }}

/* 14. FOOTER
/* --------------------------------------------------------- */

/* needed special id (#client_footer) for footer since #content overrides footer styles */
#client_footer {
    margin: 0;
    padding: 1.5rem 0;
    background-color: var(--blue);
}

/* Foundation Overrides */
#client_footer .menu > li > a {
    padding: .25rem 0; }
/* End Foundation Overrides */

/* footer_links */
#client_footer .footer_links li {
    text-align: center;
    color: var(--white);
    font-size: 1rem; }
@media only screen and (min-width: 40em) { /* any screen 640px or wider (medium screens) */
    #client_footer .footer_links li {
        padding: 0 1rem; }}
@media only screen and (min-width: 64em) { /* any screen 1024px or wider (large screens and up) */
    #client_footer .footer_links li {
        padding: 0 .5rem 0 0;
        text-align: left; }}
@media only screen and (min-width: 85.375em) { /* any screen 1366px or wider (X-large screens and up) */
    #client_footer .footer_links li {
        padding: 0 .5rem 0 0;
        text-align: left; }}

#client_footer .footer_links a:link, #client_footer .footer_links a:visited {
    display: inline-block;
    color: var(--white);
    font-size: 1rem;
    text-decoration: underline; }

#client_footer .footer_links a:hover {
    display: inline-block;
    color: var(--gray_ro); }

/* logo_links */
#client_footer .logo_links {
    margin: 1rem 0 0 0; }
@media only screen and (min-width: 64em) { /* any screen 1024px or wider (large screens and up) */
    #client_footer .logo_links {
        margin: 0; }}

#client_footer .logo_links li {
    padding: .5rem 0; }
@media only screen and (min-width: 40em) { /* any screen 640px or wider (medium screens) */
    #client_footer .logo_links li {
        padding: .5rem 1.25rem .5rem 0; }}

#client_footer .logo_links li:last-child {
    padding: .5rem 0; }

#client_footer .logo_links_end li{
    padding: .5rem 0 0 0; }
@media only screen and (min-width: 40em) { /* any screen 640px or wider (medium screens) */
    #client_footer .logo_links_end li{
        padding: 0; }}

#client_footer .ncua {
    width: 154px;
    height: 72px; }

#client_footer .ehl {
    width: 70px;
    height: 72px; }

#client_footer .secure {
    width: 216px;
    height: 83px;
    max-width: 100%;
    object-fit: contain; }
