/* Citizens Fidelity Insurance — refresh layer on top of the original theme (style.css + responsive.css). */
:root {
  --navy: #1a2a44;
  --blue: #345489;
  --blue-2: #355590;
  --link: #246fc1;
  --gold: #d9c45a;
  --cream: #f7f4ed;
  --line: #e3e6eb;
  --text: #4a4f57;
}

/* Typography: same fonts, a little more breathing room and contrast */
body { -webkit-font-smoothing: antialiased; }
#main, #main p, #main li { color: var(--text); }
#main p { line-height: 1.75; }
#main a { color: var(--link); }
#main a:hover { color: var(--navy); }
.content-container-anchor h4 { color: var(--navy); margin-top: 6px; }
.content-container-anchor h5 { color: var(--blue); letter-spacing: .3px; }
.content-container-anchor blockquote { margin: 0 0 0 18px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; }

/* Header: phone + agent login replace the old (non-working) search box */
.header-actions { padding: 24px 0 14px; display: flex; align-items: center; gap: 14px; }
.hdr-phone { color: #fff; font-weight: bold; font-size: 17px; text-decoration: none; letter-spacing: .3px; }
.hdr-phone:hover { color: var(--gold); }
.hdr-hello { color: #c9d3e6; font-size: 14px; }
.hdr-btn { display: inline-block; background: var(--gold); color: var(--navy) !important; font-weight: bold; font-size: 13px; padding: 9px 16px;
  border-radius: 5px; text-decoration: none; text-transform: uppercase; letter-spacing: .5px; transition: background .2s; }
.hdr-btn:hover { background: #f0dc72; }

/* Banner image (replaces the old backstretch script) */
#page-title-page { background-size: cover; background-position: center; }

/* Content cards */
.content-container-anchor { border-radius: 4px; }
#content-container.full-width { width: 100%; float: none; }

/* Sidebar */
#sidebar ul.side-links li a { font-weight: bold; }
#sidebar ul.side-links li.active a { color: var(--navy); }
#sidebar ul.side-links li.active:before { color: var(--gold); }
.side-cta { margin-top: 22px; padding: 18px; background: var(--cream); border-left: 3px solid var(--gold); border-radius: 0 6px 6px 0; }
.side-cta-title { font-weight: bold; color: var(--navy) !important; margin: 0 0 4px; font-size: 16px; }
.side-cta p { margin: 0 0 12px; line-height: 1.5 !important; }
.side-cta .cfi-btn { display: block; text-align: center; margin-top: 8px; }
#sidebar .contact-lines { line-height: 1.9; }
#sidebar .dove { float: right; margin: 0 0 6px 10px; }

/* Buttons */
.cfi-btn { display: inline-block; background: var(--blue); color: #fff !important; font-weight: bold; font-size: 14px; padding: 11px 20px; border-radius: 6px;
  text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .1s; letter-spacing: .3px; }
.cfi-btn:hover { background: var(--navy); }
.cfi-btn:active { transform: translateY(1px); }
.cfi-btn-alt { background: var(--link); }
.cfi-btn-gold { background: var(--gold); color: var(--navy) !important; }
.cfi-btn-gold:hover { background: #f0dc72; }
.cfi-btn-sm { padding: 7px 13px; font-size: 13px; }
.cfi-btn-danger { background: #b3261e; }
.cfi-btn-danger:hover { background: #8c1d17; }

/* Product highlight lists (life insurance pages) */
.plan-card { border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 6px; padding: 16px 20px; margin: 16px 0; background: #fff; }
.plan-card h5 { margin: 0 0 8px; }
.plan-card ul { margin: 0; padding-left: 20px; }
.plan-card li { margin-bottom: 3px; }

/* FAQ accordion */
.cfi-faq { margin-top: 30px; }
.cfi-faq h4 { margin-bottom: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 14px 44px 14px 18px; font-weight: bold; color: var(--navy); list-style: none; position: relative; font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after { content: '+'; position: absolute; right: 18px; top: 10px; font-size: 22px; color: var(--link); font-weight: normal; }
.faq-item[open] summary { background: var(--cream); }
.faq-item[open] summary:after { content: '–'; }
.faq-a { padding: 4px 18px 14px; }
.faq-a p:last-child { margin-bottom: 0; }

/* Forms */
.cfi-form { margin-top: 10px; }
.cfi-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 14px; }
.cfi-form .row.one { grid-template-columns: 1fr; }
.cfi-form .row.three { grid-template-columns: 1fr 1fr 1fr; }
.cfi-form label { display: block; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: .6px; color: var(--navy); margin-bottom: 6px; }
.cfi-form label .req { color: #b3261e; }
.cfi-form input[type=text], .cfi-form input[type=email], .cfi-form input[type=tel], .cfi-form input[type=date], .cfi-form input[type=password],
.cfi-form input[type=number], .cfi-form input[type=file], .cfi-form select, .cfi-form textarea {
  width: 100%; box-sizing: border-box; border: 1.5px solid #d6dbe3; border-radius: 6px; padding: 11px 12px; font-size: 15px; background: #fbfbfc;
  color: #222; font-family: inherit; height: auto; margin: 0; box-shadow: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.cfi-form select { -webkit-appearance: auto; appearance: auto; background-image: none; }
.cfi-form textarea { min-height: 120px; resize: vertical; }
.cfi-form input:focus, .cfi-form select:focus, .cfi-form textarea:focus { outline: none; border-color: var(--link); background: #fff; box-shadow: 0 0 0 3px rgba(36,111,193,.15); }
.cfi-form .choices { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 4px; }
.cfi-form .choices label { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: normal; color: var(--text); margin: 0; }
.cfi-form .hint { font-size: 13px; color: #7a8394; margin: 6px 0 0; }
.cfi-form .actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cfi-form .fine { font-size: 13px; color: #7a8394; margin: 10px 0 0; }
.hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.notice { border-radius: 6px; padding: 14px 18px; margin: 0 0 18px; font-size: 15px; }
.notice-ok { background: #edf7ee; border: 1px solid #b7dfba; color: #1e5b24; }
.notice-err { background: #fdf0ef; border: 1px solid #f3c0bc; color: #8c1d17; }
.notice-info { background: #eef4fb; border: 1px solid #c6d9f0; color: var(--navy); }
.form-intro { background: var(--cream); border-radius: 6px; padding: 14px 18px; margin-bottom: 18px; }
.form-intro p { margin: 0; }

/* Tables (agent area, services list) */
.cfi-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; background: #fff; }
.cfi-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: #7a8394; border-bottom: 2px solid var(--line); padding: 10px 8px; }
.cfi-table td { border-bottom: 1px solid var(--line); padding: 11px 8px; vertical-align: top; }
.cfi-table tr:hover td { background: #fafbfc; }
.cfi-table .muted, .muted { color: #8a919c; font-size: 13px; }
.doc-icon { display: inline-block; background: #b3261e; color: #fff; font-size: 10px; font-weight: bold; padding: 2px 5px; border-radius: 3px; margin-right: 6px; vertical-align: 2px; }
.pill { display: inline-block; font-size: 11px; font-weight: bold; padding: 2px 8px; border-radius: 20px; background: #eef4fb; color: var(--blue); text-transform: uppercase; letter-spacing: .4px; }
.pill-new { background: #fff4d6; color: #7a5b00; }
.pill-off { background: #f1f1f1; color: #888; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 12px; }
.toolbar input[type=search] { border: 1.5px solid #d6dbe3; border-radius: 6px; padding: 9px 12px; font-size: 14px; min-width: 240px; }

/* Home page */
.home-cta { text-align: center; }
.home-cta .cfi-btn { margin: 6px; }
.home-faq { padding-top: 6px; }

/* Footer */
footer .footer-links { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; }
footer .footer-links li { margin-bottom: 6px; break-inside: avoid; }
footer .footer-dove { float: right; margin: 0 8px 4px 8px; }
footer .footer-btn { display: block; text-align: center; margin: 10px 0 0; max-width: 240px; }
footer .bbb { text-align: center; }
#copyright { color: #c9d3e6; }
#copyright a { color: var(--gold); }

/* Agent area */
.agent-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 14px 0 6px; }
.agent-tile { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 18px; background: #fff; text-decoration: none !important; transition: box-shadow .2s, border-color .2s; }
.agent-tile:hover { border-color: var(--link); box-shadow: 0 6px 18px rgba(26,42,68,.08); }
.agent-tile strong { display: block; color: var(--navy); font-size: 16px; margin-bottom: 4px; }
.agent-tile span { color: #7a8394; font-size: 14px; }
.login-box { max-width: 440px; }
.proposal-frame { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* Mobile */
@media only screen and (max-width: 767px) {
  .header-actions { justify-content: center; padding: 6px 0 14px; flex-wrap: wrap; }
  .cfi-form .row, .cfi-form .row.three { grid-template-columns: 1fr; }
  footer .footer-links { columns: 1; }
  footer .footer-btn { margin-left: auto; margin-right: auto; }
  .cfi-table thead { display: none; }
  .cfi-table td { display: block; border-bottom: 0; padding: 4px 8px; }
  .cfi-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .proposal-frame { height: 560px; }
}

/* Home page extras */
.home-more { text-align: right; margin-top: -6px; }
.did-you-know { margin-top: 10px; }
.did-you-know .dyk-img { float: left; margin: 0 14px 6px 0; }
.map-wrap { position: relative; padding-top: 56%; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
footer .footer-btn:not(.cfi-btn-gold) { background: #ffffff; color: var(--navy) !important; }
footer .footer-btn:not(.cfi-btn-gold):hover { background: #e9eef7; }
#logo .m-logo { display: none; }
@media only screen and (max-width: 767px) {
  header { background-image: none; }
  body #logo img.d-logo { display: none; }
  body #logo { width: 100% !important; }
  body #logo img.m-logo { display: block; width: 92% !important; max-width: 420px !important; height: auto; margin: 14px auto 4px; background: #fff; padding: 8px 10px; border-radius: 8px; box-sizing: border-box; }
  .header-actions { padding-top: 4px; }
  .hdr-phone { font-size: 16px; }
}
.cfi-table td.muted { white-space: nowrap; }
