/* Public website overhaul — bridges Finbest chrome with Laravel pages */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video,
iframe {
    max-width: 100%;
}

.tp-header-area,
.tp-header-box,
.tp-hero-area,
.tp-hero-wrapper-slider,
.tp-about-area,
.tp-faq-area,
.tp-cta-area,
.tp-footer-area,
.breadcrumb__area {
    overflow-x: hidden;
    max-width: 100%;
}

.tp-header-box {
    width: 100%;
}

.tp-header-wrapper-inner {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
}

.tp-header-logo {
    overflow: hidden;
}

.tp-header-logo-bg {
    width: 100% !important;
}

.tp-header-top-info {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tp-header-main-menu {
    min-width: 0;
    gap: 12px;
}

.tp-header-main-sticky.tp-header-sticky {
    display: block;
    max-width: 100%;
}

@media (min-width: 1200px) {
    .tp-header-area .tp-header-btn {
        display: none;
    }

    .tp-header-main-menu {
        padding-left: 28px;
    }
}

@media (max-width: 1199.98px) {
    .tp-header-area,
    .tp-header-box {
        height: 65px;
        max-height: 65px;
    }

    .tp-header-box {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        overflow: hidden;
    }

    .tp-header-wrapper-inner {
        display: none !important;
    }

    .tp-header-logo {
        height: 65px;
        width: auto;
        max-width: calc(100% - 65px);
        flex: 1 1 auto;
        justify-content: flex-start;
        padding: 0 16px;
    }

    .tp-header-logo a {
        display: flex;
        align-items: center;
        height: 100%;
    }

    .tp-header-area .tp-header-logo img,
    .tp-header-area .fx-logo img {
        max-height: 36px;
        width: auto;
    }

    .tp-header-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 65px !important;
        min-width: 65px;
        height: 65px;
        flex: 0 0 65px;
    }

    .tp-header-main-right-hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 65px;
        line-height: 65px;
        width: 100%;
    }

    .hamburger-btn {
        transform: none;
        position: relative;
    }

    .tp-header-main-sticky.tp-header-sticky,
    .tp-header-main-sticky.tp-header-sticky .tp-header-space-2 {
        height: 65px;
        max-height: 65px;
        overflow: hidden;
    }

    .tp-header-main-sticky.tp-header-sticky .row {
        flex-wrap: nowrap;
        align-items: center;
        height: 65px;
    }

    .tp-header-logo-2 {
        height: 65px;
        display: flex;
        align-items: center;
    }

    .tp-header-logo-2 img {
        max-height: 36px;
        width: auto;
    }
}

.tp-hero-thumb-shape .shape-1 {
    right: 0;
}

.tp-about-thumb-wrapper .shape-2 {
    left: 0;
}

.tp-about-thumb-wrapper .shape-4 {
    right: 0;
}

.tp-hero-title {
    overflow-wrap: anywhere;
}

.fx-hero-slide {
    position: relative;
}

@media (max-width: 575px) {
    .fx-hero-slide {
        padding-top: 80px;
    }
}

.fx-logo img,
.tp-header-logo img,
.tp-header-logo-2 img,
.tp-footer-logo img,
.offcanvas__logo img {
    max-height: 42px;
    width: auto;
}

.tp-header-main-right .tp-btn {
    margin-left: 12px;
}

.fx-auth-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fx-auth-links .tp-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    transition: 0.25s ease;
}

.fx-auth-links .tp-btn-outline:hover {
    background: #fff;
    color: #16243e;
}

.tp-header-main-sticky .fx-auth-links .tp-btn-outline {
    border-color: #16243e;
    color: #16243e;
}

.tp-header-main-sticky .fx-auth-links .tp-btn-outline:hover {
    background: #16243e;
    color: #fff;
}

.fx-inner-page {
    padding: 90px 0 120px;
}

.fx-inner-page .container {
    position: relative;
    z-index: 1;
}

.fx-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(22, 36, 62, 0.08);
    padding: 32px;
    height: 100%;
}

.fx-form .form-group {
    margin-bottom: 18px;
}

.fx-form label {
    display: block;
    font-weight: 600;
    color: #16243e;
    margin-bottom: 8px;
}

.fx-form .form--control,
.fx-form input,
.fx-form textarea,
.fx-form select {
    width: 100%;
    border: 1px solid #e3e8ef;
    background: #f7f8fb;
    border-radius: 8px;
    min-height: 52px;
    padding: 12px 16px;
    color: #16243e;
}

.fx-form textarea.form--control {
    min-height: 140px;
}

.fx-form .form--control:focus {
    outline: none;
    border-color: #00accc;
    background: #fff;
}

.fx-info-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(22, 36, 62, 0.06);
    height: 100%;
}

.fx-info-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #16243e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.fx-info-card h4 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #16243e;
}

.fx-info-card a,
.fx-info-card p {
    margin: 0;
    color: #5b6577;
}

.fx-map iframe,
.map-wrapper iframe,
.google-map {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 12px;
}

.fx-policy-content,
.fx-cookie-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(22, 36, 62, 0.06);
    color: #3d4658;
    line-height: 1.8;
}

.custom--table {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(22, 36, 62, 0.06);
}

.custom--table thead th {
    background: #16243e;
    color: #fff;
    padding: 14px 16px;
    font-weight: 600;
    white-space: nowrap;
}

.custom--table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #eef1f6;
    color: #3d4658;
}

.plan-card,
.service-card,
.feature-card,
.choose-card,
.how-work-card,
.about-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(22, 36, 62, 0.06);
    padding: 28px;
    height: 100%;
}

.section-header {
    margin-bottom: 40px;
}

.section-top-title,
.tp-section-title-pre {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 13px;
    font-weight: 700;
    color: #00accc;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    color: #16243e;
    font-weight: 700;
}

.btn--base,
.btn.btn--base {
    background: #00accc;
    color: #fff !important;
    border: 0;
    border-radius: 4px;
    padding: 12px 28px;
    font-weight: 600;
}

.btn--base:hover {
    background: #16243e;
}

.cookies-card {
    width: 420px;
    padding: 24px;
    color: #16243e;
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(22, 36, 62, 0.18);
    transition: all 0.4s;
}

.cookies-card.hide {
    bottom: -500px !important;
}

.cookies-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #16243e;
    color: #fff;
    font-size: 22px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 767px) {
    .cookies-card {
        width: calc(100% - 24px);
        left: 12px;
        bottom: 12px;
    }
}

.fx-product-grid .tp-service-static {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(22, 36, 62, 0.08);
    height: 100%;
    margin-bottom: 30px;
}

.fx-product-grid .tp-service-item-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.fx-product-grid .tp-service-item-content {
    padding: 22px 22px 28px;
}

.fx-product-grid .tp-service-item-title {
    font-size: 20px;
    margin-bottom: 8px;
}

.fx-product-grid .tp-service-item-title a {
    color: #16243e;
}

.language-select {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px;
}

.tp-header-main-sticky .language-select {
    border-color: #dbe3ee;
    color: #16243e;
}

.tp-footer-widget-contact-inner a {
    word-break: break-word;
}
