/* =====================================================================================
   Mercyland Insurance Depot - brand layer on top of the base frontend theme (style.css)
   Colours taken from the Mercyland mark: orange flame, green leaves, navy type.
   ===================================================================================== */
:root {
    --ml-navy: #16243a;
    --ml-navy-2: #22344f;
    --ml-orange: #f28a1c;
    --ml-orange-dark: #d8740c;
    --ml-green: #4f9d2d;
    --ml-green-soft: #eaf4e3;
    --ml-red: #d8432f;
    --ml-blue: #2a6fb4;
    --ml-paper: #fbf8f3;
    --ml-ink: #26303d;
    --ml-muted: #6b7280;
    --ml-line: #e6e1d8;
}

body { font-family: 'Poppins', sans-serif; color: var(--ml-ink); background: #fff; }
a { color: var(--ml-blue); }
a:hover { color: var(--ml-orange-dark); text-decoration: none; }
h1, h2, h3, h4, h5 { color: var(--ml-navy); }

/* ---------- buttons (theme .site_btn / .site_btn_2 recoloured) ---------- */
.site_btn { background-color: var(--ml-orange); font-weight: 500; border: 0; }
.site_btn:hover, .site_btn:focus { background-color: var(--ml-navy); color: #fff; }
.site_btn_2 { color: var(--ml-navy); border-color: var(--ml-navy); font-weight: 500; }
.site_btn_2:hover { color: var(--ml-orange-dark); border-color: var(--ml-orange-dark); }
.site_btn.btn-green { background-color: var(--ml-green); }
.site_btn.btn-green:hover { background-color: var(--ml-navy); }
.site_btn_sm { font-size: 15px; padding: 8px 22px !important; }

/* ---------- utility bar + header ---------- */
.ml-topbar { background: var(--ml-navy); color: #cfd6e0; font-size: 13px; padding: 7px 0; }
.ml-topbar a { color: #fff; margin-left: 18px; }
.ml-topbar a:hover { color: var(--ml-orange); }
.ml-topbar .ml-call { color: #fff; font-weight: 600; margin-left: 0; }
.ml-topbar .ml-call i { color: var(--ml-orange); margin-right: 6px; }

.heading.ml-heading { position: relative; background: var(--ml-navy-2); padding: 12px 0; border-bottom: 3px solid var(--ml-orange); }
.heading.ml-heading .heading_logo img { height: 46px; width: auto; }
.heading.ml-heading .heading_menu ul { display: flex; justify-content: flex-end; align-items: center; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; }
.heading.ml-heading .heading_menu_list { position: relative; }
.heading.ml-heading .heading_menu_list_links { color: #fff; font-size: 15px; padding: 10px 14px; }
.heading.ml-heading .heading_menu_list_links:hover,
.heading.ml-heading .heading_menu_list_links.active { color: var(--ml-orange); }
.heading.ml-heading .heading_menu_list .site_btn { margin-left: 10px; padding: 8px 20px; font-size: 15px; }
.ml-dropdown { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 560px; padding: 18px 20px; border-radius: 6px;
    box-shadow: 0 18px 40px rgba(22, 36, 58, .18); z-index: 50; border-top: 3px solid var(--ml-orange); }
.heading_menu_list:hover > .ml-dropdown, .heading_menu_list:focus-within > .ml-dropdown { display: flex; }
.ml-dropdown .ml-dd-col { flex: 1; padding: 0 10px; }
.ml-dropdown h6 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ml-muted); margin-bottom: 8px; }
.ml-dropdown a { display: block; color: var(--ml-ink); font-size: 14px; padding: 5px 0; }
.ml-dropdown a:hover { color: var(--ml-orange-dark); }
.mobile-menu-icon { color: #fff; font-size: 26px; position: absolute; right: 20px; top: 18px; display: none; }
@media (max-width: 991px) {
    .heading.ml-heading .heading_menu { display: none; }
    .mobile-menu-icon { display: block; }
    .ml-topbar .ml-hide-sm { display: none; }
}
.mobile-menu { background: var(--ml-navy); padding: 10px 20px 20px; }
.mobile-menu a { color: #fff !important; display: block; padding: 8px 0; }

/* ---------- hero (theme .hero_area re-proportioned) ---------- */
.hero_area.ml-hero { padding: 70px 0 80px; background: var(--ml-paper); overflow: hidden; }
.ml-hero::after { content: ""; position: absolute; right: -120px; top: -120px; width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 138, 28, .16), rgba(242, 138, 28, 0) 70%); z-index: -1; }
.ml-hero h1 { font-size: 40px; line-height: 1.2; font-weight: 700; margin-bottom: 16px; }
.ml-hero h1 em { font-style: normal; color: var(--ml-orange-dark); }
.ml-hero .ml-lead { font-size: 17px; color: var(--ml-muted); max-width: 560px; margin-bottom: 26px; }
.ml-quotebox { background: #fff; border: 1px solid var(--ml-line); border-radius: 10px; padding: 22px; box-shadow: 0 24px 50px rgba(22, 36, 58, .08); max-width: 600px; }
.ml-quotebox label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ml-muted); margin-bottom: 4px; }
.ml-quotebox .form-control { height: 48px; border-radius: 6px; border-color: var(--ml-line); }
.ml-quotebox .site_btn { width: 100%; height: 48px; padding: 0; }
.ml-quotebox .ml-alt { margin-top: 14px; font-size: 14px; color: var(--ml-muted); }
.ml-quotebox .ml-alt a { font-weight: 600; }
.ml-hero-mark { text-align: center; }
.ml-hero-mark img { width: 100%; max-width: 380px; }
.ml-trust { margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--ml-navy); }
.ml-trust span i { color: var(--ml-green); margin-right: 6px; }
@media (max-width: 767px) { .ml-hero h1 { font-size: 30px; } .ml-hero-mark { display: none; } }

/* ---------- sections ---------- */
.section_padding { padding: 70px 0; }
.section_title .section_title_meta { color: var(--ml-orange-dark); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 600; }
.section_title h2 { font-size: 30px; font-weight: 700; margin-top: 6px; }
.section_title p { color: var(--ml-muted); max-width: 640px; margin: 10px auto 0; }
.ml-band { background: var(--ml-paper); }
.ml-band-navy { background: var(--ml-navy); color: #d6dde7; }
.ml-band-navy h2, .ml-band-navy h3, .ml-band-navy h4 { color: #fff; }

/* product tiles (theme .features_items) */
.features_items.ml-product { display: block; height: 100%; border: 1px solid var(--ml-line); margin-top: 24px; transition: transform .15s, box-shadow .15s; color: var(--ml-ink); }
.features_items.ml-product:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(22, 36, 58, .10); color: var(--ml-ink); }
.ml-product .ml-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--ml-green-soft); color: var(--ml-green); display: flex;
    align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.ml-product h4 { font-size: 18px; margin-bottom: 8px; }
.ml-product p { color: var(--ml-muted); margin-bottom: 10px; }
.ml-product .ml-more { font-size: 14px; font-weight: 600; color: var(--ml-orange-dark); }

/* how it works */
.ml-steps { counter-reset: step; }
.ml-step { position: relative; padding-left: 58px; margin-bottom: 26px; }
.ml-step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
    background: var(--ml-orange); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ml-step h5 { margin-bottom: 4px; font-size: 17px; }
.ml-step p { color: var(--ml-muted); margin: 0; font-size: 15px; }
.ml-band-navy .ml-step p { color: #b9c3d1; }

.ml-note { border-left: 4px solid var(--ml-orange); background: #fff8ee; padding: 14px 18px; border-radius: 4px; font-size: 14px; color: var(--ml-ink); }
.ml-note.ml-note-green { border-color: var(--ml-green); background: var(--ml-green-soft); }
.ml-disclosure { font-size: 13px; color: var(--ml-muted); border-top: 1px solid var(--ml-line); padding-top: 14px; margin-top: 24px; }

/* inner page header */
.ml-pagehead { background: var(--ml-navy); color: #c9d2de; padding: 46px 0 40px; }
.ml-pagehead h1 { color: #fff; font-size: 32px; margin: 0 0 8px; font-weight: 700; }
.ml-pagehead .ml-crumbs { font-size: 13px; }
.ml-pagehead .ml-crumbs a { color: #fff; }

/* cards & lists */
.ml-card { background: #fff; border: 1px solid var(--ml-line); border-radius: 10px; padding: 24px; margin-bottom: 24px; }
.ml-card h3 { font-size: 20px; }
.ml-checklist { list-style: none; padding: 0; }
.ml-checklist li { padding: 6px 0 6px 28px; position: relative; }
.ml-checklist li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; position: absolute; left: 0; color: var(--ml-green); }
.ml-faq .card { border: 1px solid var(--ml-line); margin-bottom: 10px; border-radius: 8px !important; }
.ml-faq .card-header { background: #fff; border: 0; }
.ml-faq .card-header button { color: var(--ml-navy); font-weight: 600; text-decoration: none; width: 100%; text-align: left; padding: 6px 0; }

/* agents */
.ml-agent { text-align: center; }
.ml-agent .ml-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--ml-green-soft); color: var(--ml-green); font-size: 32px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }

/* wizard */
.ml-wizard .ml-progress { display: flex; gap: 6px; margin-bottom: 22px; }
.ml-wizard .ml-progress span { flex: 1; height: 6px; border-radius: 3px; background: var(--ml-line); }
.ml-wizard .ml-progress span.on { background: var(--ml-orange); }
.ml-wizard .ml-step-pane { display: none; }
.ml-wizard .ml-step-pane.active { display: block; }
.ml-wizard label { font-weight: 500; color: var(--ml-navy); }
.ml-wizard .form-control { height: 46px; }
.ml-wizard textarea.form-control { height: auto; }
.ml-choice { display: inline-block; margin: 0 8px 8px 0; }
.ml-choice input { display: none; }
.ml-choice span { display: inline-block; padding: 10px 18px; border: 1px solid var(--ml-line); border-radius: 30px; cursor: pointer; background: #fff; }
.ml-choice input:checked + span { background: var(--ml-navy); color: #fff; border-color: var(--ml-navy); }
.ml-consent { font-size: 13px; color: var(--ml-muted); }
.ml-consent label { font-weight: 400; color: var(--ml-ink); }

/* status timeline */
.ml-timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--ml-line); }
.ml-timeline li { position: relative; padding: 0 0 18px 22px; }
.ml-timeline li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--ml-line); }
.ml-timeline li.done::before { background: var(--ml-green); }
.ml-timeline li.current::before { background: var(--ml-orange); box-shadow: 0 0 0 4px rgba(242, 138, 28, .2); }
.ml-timeline li small { color: var(--ml-muted); }

/* proposal options */
.ml-option { border: 2px solid var(--ml-line); border-radius: 10px; padding: 20px; height: 100%; background: #fff; }
.ml-option.selected { border-color: var(--ml-green); }
.ml-option .ml-premium { font-size: 30px; font-weight: 700; color: var(--ml-navy); }
.ml-option .ml-premium small { font-size: 14px; color: var(--ml-muted); font-weight: 400; }
.ml-option dl dt { font-size: 12px; text-transform: uppercase; color: var(--ml-muted); letter-spacing: .05em; margin-top: 10px; }
.ml-option dl dd { margin-bottom: 0; }
.ml-badge { display: inline-block; font-size: 11px; padding: 3px 9px; border-radius: 20px; background: var(--ml-green-soft); color: var(--ml-green); font-weight: 600; }
.ml-badge.ml-badge-warn { background: #fff3e0; color: var(--ml-orange-dark); }

/* footer (theme .footer) */
.footer.ml-footer { background: var(--ml-navy); color: #b9c3d1; padding: 60px 0 0; }
.ml-footer h5 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.ml-footer a { color: #d6dde7; display: block; padding: 3px 0; font-size: 14px; }
.ml-footer a:hover { color: var(--ml-orange); }
.ml-footer .ml-footer-logo { height: 46px; margin-bottom: 14px; }
.ml-footer .ml-legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding: 18px 0; font-size: 12px; color: #8b97a8; }
.ml-footer .ml-legal a { display: inline; color: #8b97a8; margin-right: 14px; }

/* customer portal (uses the same frontend theme) */
.ml-portal-nav { background: #fff; border: 1px solid var(--ml-line); border-radius: 10px; padding: 10px 0; }
.ml-portal-nav a { display: block; padding: 10px 18px; color: var(--ml-ink); font-size: 15px; border-left: 3px solid transparent; }
.ml-portal-nav a.active, .ml-portal-nav a:hover { border-left-color: var(--ml-orange); background: var(--ml-paper); color: var(--ml-navy); }
.ml-portal-nav a i { width: 22px; color: var(--ml-green); }
.ml-table { width: 100%; }
.ml-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ml-muted); border-bottom: 1px solid var(--ml-line); padding: 10px 8px; font-weight: 600; }
.ml-table td { border-bottom: 1px solid var(--ml-line); padding: 12px 8px; vertical-align: top; }
.ml-status { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 20px; background: #eef1f5; color: var(--ml-navy-2); }
.ml-status.ok { background: var(--ml-green-soft); color: var(--ml-green); }
.ml-status.warn { background: #fff3e0; color: var(--ml-orange-dark); }
.ml-status.bad { background: #fdecea; color: var(--ml-red); }
.ml-empty { text-align: center; padding: 40px 10px; color: var(--ml-muted); }
.invalid-feedback { display: block; }

/* ---------- appointment booking ---------- */
.ml-daypick { display: flex; flex-wrap: wrap; gap: 8px; }
.ml-daypick a { display: flex; flex-direction: column; align-items: center; width: 68px; padding: 8px 0; border: 1px solid var(--ml-line); border-radius: 8px; color: var(--ml-ink); font-size: 12px; line-height: 1.3; }
.ml-daypick a strong { font-size: 20px; color: var(--ml-navy); }
.ml-daypick a:hover { border-color: var(--ml-orange); text-decoration: none; }
.ml-daypick a.active { background: var(--ml-navy); border-color: var(--ml-navy); color: #fff; }
.ml-daypick a.active strong { color: #fff; }
.ml-slotpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.ml-slotpick label { margin: 0; cursor: pointer; }
.ml-slotpick input { position: absolute; opacity: 0; }
.ml-slotpick span { display: block; text-align: center; padding: 9px 0; border: 1px solid var(--ml-line); border-radius: 6px; font-size: 14px; font-weight: 500; }
.ml-slotpick input:checked + span { background: var(--ml-orange); border-color: var(--ml-orange); color: #fff; }
.ml-slotpick input:focus-visible + span { outline: 2px solid var(--ml-navy); }

/* ---------- chat widget ---------- */
.ml-chat-toggle { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; align-items: center; gap: 8px; background: var(--ml-navy); color: #fff; border: 0; border-radius: 28px; padding: 12px 18px; font-weight: 500; box-shadow: 0 6px 20px rgba(22,36,58,.25); }
.ml-chat-toggle:hover { background: var(--ml-orange); }
.ml-chat { position: fixed; right: 18px; bottom: 80px; z-index: 1041; width: 340px; max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); overflow-y: auto; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(22,36,58,.28); }
.ml-chat-head { display: flex; justify-content: space-between; align-items: center; background: var(--ml-navy); color: #fff; padding: 12px 16px; border-radius: 12px 12px 0 0; }
.ml-chat-head button { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; }
.ml-chat-tabs { display: flex; border-bottom: 1px solid var(--ml-line); }
.ml-chat-tabs button { flex: 1; background: none; border: 0; padding: 9px; font-size: 14px; color: var(--ml-muted); border-bottom: 2px solid transparent; }
.ml-chat-tabs button.active { color: var(--ml-navy); border-color: var(--ml-orange); font-weight: 600; }
.ml-chat-pane { padding: 12px 14px 14px; }
.ml-chat-log { max-height: 260px; overflow-y: auto; margin-bottom: 8px; }
.ml-chat-msg { font-size: 14px; padding: 8px 11px; border-radius: 10px; margin-bottom: 8px; white-space: pre-line; max-width: 88%; }
.ml-chat-msg small { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.ml-chat-msg.me { background: var(--ml-navy); color: #fff; margin-left: auto; }
.ml-chat-msg.them { background: #f1f3f6; color: var(--ml-ink); }
.ml-chat-consent { display: flex; gap: 6px; font-size: 12px; color: var(--ml-muted); margin: 8px 0 4px; line-height: 1.35; }
.ml-chat-small { font-size: 11px; color: var(--ml-muted); margin: 8px 0 0; }
@media (max-width: 575px) { .ml-chat-toggle span { display: none; } }
