/* ==========================================================================
   FIBIS – site.css
   Loaded after the template CSS (bootstrap, style, style-home3, fibis-custom).
   Contains what used to be inline <style> blocks in the old CMS pages, the
   language switcher / flags, and the per-element overrides of the old visual
   editor. (base.css, loaded first, holds the old CMS base rules.)
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. FIBIS CSS variables (teal design)
   -------------------------------------------------------------------------- */
:root {
    --fibis-primary: #132136;
    --fibis-primary-dark: #0a151f;
    --fibis-teal: #0f6466;
    --fibis-teal-dark: #0d5355;
    --fibis-light: #f8f9fa;
    --fibis-white: #ffffff;
    --fibis-dark: #333333;
    --fibis-text: #666666;
    --fibis-topbar: #132136;

    /* Override Agencyo theme colors */
    --theme-color1: #132136;
    --theme-color2: #0f6466;
    --theme-color3: #0f6466;
}


/* --------------------------------------------------------------------------
   2. Language switcher (desktop header + mobile menu)
      Markup: .mw-dropdown > .mw-dropdown-value + .mw-dropdown-content
      (base styles in base.css and fibis-custom.css)
      assets/js/site.js toggles .active on click.
   -------------------------------------------------------------------------- */
.mw-dropdown.active > .mw-dropdown-content {
    display: block;
}

.mw-dropdown-value:focus-visible {
    outline: 2px solid var(--fibis-teal);
    outline-offset: 2px;
}

/* Each language is a real link */
.mw-dropdown-content li > a {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: inherit !important;
    text-decoration: none;
}

.mw-dropdown-content li > a[aria-current="page"] {
    font-weight: 600;
}

/* Flags (formerly flag-icon-css) */
.flag-icon {
    background-size: contain;
    background-position: 50%;
    background-repeat: no-repeat;
    position: relative;
    display: inline-block;
    width: 1.33333333em;
    line-height: 1em;
}

.flag-icon::before {
    content: "\00a0";
}

.flag-icon-bg {
    background-image: url(../flags/bg.svg);
}

.flag-icon-us {
    background-image: url(../flags/us.svg);
}

.module-multilanguage-change-language .flag-icon {
    margin-right: 7px;
}

.module-multilanguage-change-language {
    display: inline-block;
}

.multilanguage-display-icon-custom {
    width: 26px;
    height: 28px;
    object-fit: contain;
    max-width: unset;
    max-height: unset;
}


/* --------------------------------------------------------------------------
   3. Testimonials slider
   -------------------------------------------------------------------------- */
.testimonial-section-five .module-testimonials {
    width: 100%;
}

.testimonial-section-five .testimonial-block_five .inner .info .image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-section-five .swiper-slide {
    height: auto;
}


/* --------------------------------------------------------------------------
   4. Contact form (Web3Forms)
   -------------------------------------------------------------------------- */
.fibis-contact-form {
    color: rgba(255, 255, 255, 0.9);
}

.fibis-contact-form .form-group,
.fibis-contact-form .form-group:last-child {
    /* :last-child – keeps the original spacing (style.css sets 0 on the last group) */
    margin-bottom: 20px;
}

.fibis-contact-form input,
.fibis-contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.fibis-contact-form input:focus,
.fibis-contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    outline: none;
}

.fibis-contact-form input::placeholder,
.fibis-contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.fibis-contact-form label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.fibis-contact-form .submit-btn {
    background: var(--fibis-teal, #0f6466);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.fibis-contact-form .submit-btn:hover {
    background: var(--fibis-teal-dark, #0d5355);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(15, 100, 102, 0.4);
}

.fibis-contact-form .submit-btn[disabled] {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.fibis-contact-form .message-sent {
    text-align: center;
    padding: 30px;
    background: rgba(15, 100, 102, 0.2);
    border-radius: 10px;
    display: none;
}

.fibis-contact-form .message-sent.show {
    display: block;
}

.fibis-contact-form .message-sent.is-error {
    background: rgba(220, 53, 69, 0.25);
}

.fibis-contact-form .message-sent p {
    color: #fff;
    font-size: 18px;
    margin: 0;
}

/* Anti-spam honeypot: must stay invisible */
.fibis-contact-form .fibis-botcheck {
    display: none !important;
}

/* Footer legal links on phones: fibis-custom.css centres them, but when the
   (shorter) English labels fit on one line their wrapper shrinks to the left.
   Give the wrapper the full width so the links stay centred in both languages. */
@media (max-width: 767px) {
    .main-footer .footer-bottom > .edit:has(> .footer-bottom_nav) {
        width: 100%;
    }
}


/* --------------------------------------------------------------------------
   5. Per-element overrides made in the old visual editor
      (they target the id="mw-element-…" attributes in the HTML – keep both)
   -------------------------------------------------------------------------- */
@media screen, print {
    #mw-element-1768676389796 {
        max-width: 100%;
        width: 218px;
    }
    #mw-element-1768676389801 {
        max-width: 100%;
    }
    #mw-element-1768676389819 {
        max-width: 100%;
    }
    #mw-element-1768676389828 {
        max-width: 100%;
    }
    #mw-element-1768676389859 {
        max-width: 100%;
        width: 332px;
        min-height: 71px;
    }
    #mw-element-1768676389993 {
        max-width: 100%;
    }
    #mw-element-1768673339574 {
        max-width: 100%;
    }
    #mw-element-1768673340292 {
        max-width: 100%;
        width: 238px;
    }
    #mw-element-1768673338017 {
        color: #666667;
        font-style: normal;
        font-size: 20px;
        font-weight: 500;
        text-align: left;
    }
    #mw-element-1768829932289 {
        color: #ffffff;
    }
    #mw-element-1768744757460 {
        font-size: 16px;
    }
    #mw-element-1768673336193 {
        text-align: justify;
    }
    #mw-element-1769013438391 {
        color: #666666;
    }
    #mw-element-1768676389978 {
        color: #666666;
    }
    #mw-element-1768676389979 {
        color: #666666;
    }
    #mw-element-1768676389977 {
        color: #666666;
    }
    #mw-element-1769013438396 {
        font-weight: 700;
        color: #666666;
    }
    #mw-element-1769013438429 {
        max-width: 100%;
        width: 160px;
        min-height: 25px;
        font-weight: 700;
        color: revert-layer;
    }
    #mw-element-1769013438445 {
        max-width: 100%;
        width: 132px;
        min-height: 20px;
        color: #ffffff;
        font-weight: 700;
    }
    #mw-element-1769013438463 {
        color: #ffffff;
    }
    #mw-element-1769013438411 {
        font-weight: 700;
        background-color: rgba(0, 0, 0, 0);
        color: #666666;
    }
    #mw-element-1769013438470 {
        font-weight: 700;
        color: #ffffff;
    }
    #mw-element-1769013438475 {
        color: #ffffff;
        font-weight: 700;
    }
    #mw-element-1769013438477 {
        font-weight: 700;
    }
    #mw-element-1768676390083 {
        max-width: 100%;
        width: 672px;
    }
    #mw-element-1769015221553 {
        background-color: rgba(0, 0, 0, 0);
        font-size: 20px;
    }
}
