/*
 * -----------------------------------------------------------------------
 * @author     Akshari Solutions
 * @copyright  (c) 2026 Akshari Solutions. All rights reserved.
 * -----------------------------------------------------------------------
 *
 * Best Insurance Advice - site styles, loaded after the theme stylesheet
 * (frontend_assets/css/main_update_34.css).
 *
 * Everything here used to be inline: the <style> block of the old
 * head.blade.php and about 150 style="" attributes in the views. Classes
 * that replace a style="" attribute keep !important, because an inline
 * style beat every normal rule of the theme.
 *
 *  1. Page
 *  2. Header and menu
 *  3. Home page
 *  4. Content pages
 *  5. "Your TRUSTED ADVISOR" logo strip
 *  6. Contact forms
 *  7. Contact page
 *  8. Footer
 *  9. Keyboard focus
 */

/* 1. Page ---------------------------------------------------------------- */

body {
    overflow-x: hidden;
}

/* Highlighted notes on the insurance pages. */
.bi-highlight {
    background: #eded686b;
}

/* "Skip to content" link: hidden until it gets keyboard focus. */
.bi-skip-link:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100000;
    padding: 10px 16px;
    background: #fff;
    color: #000;
    font-weight: 700;
}

/* 2. Header and menu ---------------------------------------------------- */

.bi-nav-bar {
    background: #ac4780 !important;
}

.bi-main-menu {
    font-size: 12.2px !important;
}

.bi-submenu-link,
.bi-menu-link-compact {
    line-height: 15px !important;
}

/* "You are here": the theme has no style for it. The item of the current
   section gets a white bar under it, the page itself is underlined in the
   submenu. In the side menu on phones (a copy of this menu) both turn blue,
   the theme's hover colour there. */
.tpheader-3__menu .bi-menu-current > a {
    position: relative;
}

/* Placed from the middle of the link: Community's link is taller (old
   line-height), but every link has its text in the middle. */
.tpheader-3__menu .bi-menu-current > a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% + 12px);
    height: 3px;
    background: #fff;
}

.tpheader-3__menu .sub-menu a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.mean-container .mean-nav .bi-menu-current > a,
.mean-container .mean-nav a[aria-current="page"] {
    color: #0573aa;
}

.bi-text-black {
    color: black !important;
}

/* 3. Home page ------------------------------------------------------------ */

/* Slider titles in Paprika (Google Fonts, loaded in the layout). */
.bi-hero-title {
    font-size: 55px !important;
    font-family: "Paprika" !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.bi-hero-btn {
    font-size: 25px !important;
}

.bi-home-features {
    padding-top: 25px !important;
}

.bi-home-steps {
    padding-top: 50px !important;
}

.bi-home-testimonials {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

/* 4. Content pages ------------------------------------------------------- */

/* "Get Instant Quote" buttons (travel and visitor pages). */
.bi-quote-btn {
    font-size: 25px !important;
    margin: 10px 0px !important;
}

/* "Create Your Own Term Life Insurance Quote" button. */
.bi-quote-btn-large {
    color: white !important;
    text-transform: capitalize !important;
    font-weight: 100 !important;
    font-size: 30px !important;
}

/* Grey boxes with a button (Community page, RESP page). */
.bi-community-row {
    margin: 0px 0px 50px 0px !important;
}

.bi-community-card {
    background: #dbd9e7 !important;
    padding: 23px 0px 1px 0px !important;
}

.bi-community-card-title {
    text-align: center !important;
    line-height: 40px !important;
}

.bi-community-btn {
    color: white !important;
    padding: 15px 10px !important;
    text-transform: capitalize !important;
}

/* 5. "Your TRUSTED ADVISOR" logo strip ----------------------------------- */

.slide-track {
    width: 100%;
    display: flex;
    gap: 3em;
    overflow: hidden;
}

.slider {
    margin-top: 70px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translatex(-1000%);
    }
}

.img_slider {
    width: 300px;
    animation: scroll 60s linear infinite;
    max-width: 500px;
}

/* Visitors who ask for less motion get a still row of logos. */
@media (prefers-reduced-motion: reduce) {
    .img_slider {
        animation: none;
    }
}

/* 6. Contact forms ----------------------------------------------------- */

/* Result of the form ("We have received your request ..."), same colours
   and size as before. */
.bi-form-status {
    text-align: center;
}

.bi-status-success {
    color: green;
    font-size: 25px;
}

.bi-status-error {
    color: red;
    font-size: 25px;
}

/* Message under a field (server or browser check), just below the box;
   the box's own bottom margin keeps the next field at the usual distance. */
.bi-field-error {
    display: block;
    margin: 6px 0 0;
    color: #c40000;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

/* A message that was answered (e.g. the reCAPTCHA box ticked) is hidden;
   display:block above would otherwise keep an empty gap. */
.bi-field-error[hidden] {
    display: none;
}

.blog-form [aria-invalid="true"],
.contact__input [aria-invalid="true"] {
    border-color: #c40000 !important;
}

/* The "Need any help?" fields have no border in the theme, so the red line
   is drawn inside the box (the theme's soft shadow is kept). */
.comment-form__input-box [aria-invalid="true"] {
    box-shadow: inset 0 0 0 1px #c40000, 0px 8px 20px 0px rgba(0, 0, 0, 0.04) !important;
}

/* A textarea sits on a text line, which leaves a gap under it; while it has
   a message it is lifted to the top of the line, so the message is as close
   to it as under the other fields. */
.js-contact-form textarea[aria-invalid="true"] {
    vertical-align: top;
}

/* Room for the reCAPTCHA box, which is loaded when a form is about to be
   used, so the page does not jump when it appears. */
.bi-recaptcha {
    min-height: 78px;
}

/* Honeypot field: off screen for people, still in the form for bots. */
.bi-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* The "Need any help?" section above the footer. */
.bi-footer-message-area {
    background: rgba(5, 114, 169, 0.19) !important;
    padding: 25px 0px !important;
}

/* 7. Contact page ------------------------------------------------------- */

.bi-contact-aside {
    margin: -25px 0px !important;
}

.bi-contact-agent {
    margin: -50px 0px 25px 0px !important;
}

.bi-contact-line {
    margin: 15px 0px !important;
}

/* 8. Footer ------------------------------------------------------------- */

.bi-text-white,
.bi-footer-links a {
    color: white !important;
}

.bi-footer-bottom {
    background: #9c1b61 !important;
}

/* 9. Keyboard focus ----------------------------------------------------- */

/* The theme removes the focus outline of links and buttons; keyboard users
   get a visible ring back (mouse clicks do not show it). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid #ac4780 !important;
    outline-offset: 2px;
}

.footer__area a:focus-visible,
.bi-nav-bar a:focus-visible {
    outline-color: #fff !important;
}
