﻿/* GLOBAL TYPOGRAPHY RESET */

h1, h2, h3, h4, h5, h6,
p, li, blockquote, td, th, caption {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: normal;
    font-style: normal;
    line-height: 180%;
    font-size: 15px;
    text-decoration: none;
    color: #000;
}

body {
    font-size: 15px;
    margin: 0;
    padding: 0;
    color: #000;
    box-sizing: border-box;
    background-color: #eeeeee;
    max-width: 100%;
}

*, *::before, *::after {
    box-sizing: inherit;
}

/* ICON FONT SAFETY (CRITICAL FIX) */

i,
i::before,
i::after,
.fa,
.fas,
.far,
.fab,
[class^="fa-"],
[class*=" fa-"] {
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free", FontAwesome !important;
    font-weight: 900;
    font-style: normal;
    line-height: 1;
    text-transform: none;
    speak: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-display: swap;
}

i::before {
    display: inline-block;
    text-decoration: inherit;
}

/* HEADINGS */

h1 {
    font-size: 25px;
    font-weight: 600;
    margin: 0 0 20px 0;
    border-bottom: 1px solid #999;
    padding: 10px 0;
    text-align: center;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 10px 0;
}

h3 {
    font-size: 15px;
    font-weight: 600;
}

h4, h5, h6 {
    font-size: 14px;
}

/* IMAGES */

img {
    margin: 0;
    padding: 0;
    border: 0;
    display: block;
}

.imglft {
    float: left;
    margin-right: 10px;
}

.imgrgt {
    float: right;
    margin-left: 10px;
}

.imgctr {
    display: block;
    margin: 0 auto;
}

/* WRAPPER */

#wrapper {
    max-width: 1150px;
    margin: 0 auto;
    background-color: #ffffff;
}

/* HEADER / MASTHEAD */

#top {
    background-color: #236AB9;
    width: 100%;
    padding: 40px 0 30px 0;
    overflow: hidden;
}

#logo {
    float: left;
    margin-left: 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 46px;
    color: #ffffff;
    font-weight: 600;
}

/* SOCIAL MEDIA (FIXED VERSION) */

#social-media {
    float: right !important;
    margin-right: 20px !important;
    text-align: right !important;
    color: #ffffff !important;
}

#social-media p {
    margin: 6px 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
}

#social-media ul {
    list-style: none !important;
    margin: 6px 0 !important;
    padding: 0 !important;
}

#social-media ul li {
    display: inline !important;
}

#social-media ul li a {
    display: inline-block !important;
    margin-right: 10px !important;
    text-decoration: none !important;
}

#social-media ul li a:last-child {
    margin-right: 0 !important;
}

#social-media ul li a:hover {
    opacity: 0.8 !important;
}

/* Properly style the social media images */
#social-media ul li img {
    width: 26px !important;
    height: 26px !important;
    display: block !important;
    border: none !important;
}

/* TOP NAVIGATION */

#topnav {
    clear: both;
    width: 100%;
    background-color: #333333;
}

#topnav ul {
    list-style: none;
    margin: 0;
    padding: 0 10px;
    overflow: hidden;
}

#topnav ul li {
    float: left;
}

#topnav ul li a {
    display: block;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

#topnav ul li a:hover {
    background-color: #900000;
}

/* SUB BANNER */

#subbanner {
    width: 100%;
    background-color: #D4E4F7;
}

#subbanner p {
    margin: 0;
    padding: 30px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

/* MAIN CONTENT LAYOUT (CONVENTIONAL SITE METHOD) */

#content {
    padding: 10px !important;
    background-color: #ffffff !important;
    min-height: 800px !important;
    float: left !important;
    width: 68% !important;
    margin-right: 2% !important;
    overflow: hidden !important;
}

#content p {
    line-height: 220%;
    margin: 10px 10px 0 0;
}

#content ul,
#content ol {
    margin: 0 0 20px 40px;
}

#content li {
    margin-bottom: 10px;
}

/* SIDEBAR (CONVENTIONAL SITE METHOD) */

#rightside {
    float: right !important;
    width: 28% !important;
    background-color: #ffffff !important;
    padding: 10px !important;
}

.sidebar-heading {
    background-color: #000;
    color: #fff;
    font-weight: 600;
    padding: 4px 10px;
    margin: 20px 0 10px 0;
}

#rightside a {
    color: #0000EE;
    text-decoration: none;
    display: block;
    margin: 6px 0;
}

#rightside a:hover {
    color: #cc0000;
    text-decoration: underline;
}

/* TABLES (TABLEIZER SAFE) */

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 8px;
    border: 1px solid #ccc;
}

thead, th {
    background-color: #ccc;
}

.tableizer-table {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
}

.tableizer-table th {
    background-color: #104E8B;
    color: #ffffff;
    font-weight: 600;
}

/* FORMS */

form {
    margin: 20px;
}

label {
    float: left;
    width: 200px;
    text-align: right;
    font-weight: 600;
}

input, textarea, select {
    width: 280px;
    margin-left: 10px;
    padding: 5px;
    border: 1px solid #bbb;
}

input:focus, textarea:focus {
    background-color: #EFDEDE;
}

/* BOTTOM SECTIONS (FULL WIDTH WITH GREY SEPARATORS) */

#bottom-sections {
    overflow: auto !important;
    font-family: Verdana, Geneva, Tahoma, sans-serif !important;
    clear: both !important;
    width: 100% !important;
    background-color: #eeeeee !important;
    padding: 10px !important;
}

.bottom-div {
    width: 100% !important;
    background-color: #ffffff !important;
    padding: 15px !important;
    text-align: left !important;
    box-sizing: border-box !important;
    margin-bottom: 10px !important;
}

.bottom-div:last-child {
    margin-bottom: 0 !important;
}

/* FOOTER */

.footer {
    clear: both;
    background-color: #236AB9;
    padding: 15px;
    font-size: 13px;
}

#footer {
    clear: both;
    background-color: #236AB9;
    padding: 15px;
    font-size: 13px;
}

#footer p,
#footer a {
    color: #ffffff;
    text-align: center;
}

/* UTILITIES */

.center { text-align: center; }
.bold { font-weight: 600; }

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Confirmation Page Styling */
.confirmation-container {
  max-width: 700px;
  margin: 80px auto;
  background-color: #ffffff;
  border: 1px solid #ccc;
  padding: 40px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.confirmation-container h1 {
  font-size: 24px;
  color: #2a5934;
  margin-bottom: 20px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.confirmation-container p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.confirmation-container a.back-home {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #6D9886;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.confirmation-container a.back-home:hover {
  background-color: #53786c;
}

.arm-calculator-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  box-sizing: border-box;
}
.arm-calculator-wrapper * {
  box-sizing: border-box;
}

.perdieminnterest {
	margin-right: 10px;
	padding-right: 10px;
}

/* Fix for jump issue in FHA template */
#bottom-sections {
    clear: both !important;
    position: relative;
    margin-top: 30px;
    padding-top: 20px;
}

/* Ensure main-wrapper properly contains floats */
#main-wrapper.clearfix {
    overflow: hidden;
    min-height: 1px; /* Ensure it has content height */
}

/* Prevent focus jumps */
#bottom-sections *:focus {
    outline: none !important;
}