﻿.overlay-content {
    width: min(1100px,92%);
    background-color: #6d361e;
    border-radius: 12px;
    padding: 2.5rem;
    opacity: 0.9;
}

.hero__title {
    margin-bottom: 1rem;
    color: #fefcf5;
}

#filter.filter {
    display: flex;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-inline: auto;
}

.amount-input {
    border: none;
    padding: 0;
    font-size: inherit;
    background: #fdfbf5;
}

.field {
    background-color: #fefcf5;
    border-radius: 14px;
    padding: 10px 12px;
    min-width: 200px;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

    .field .label {
        text-transform: uppercase;
        letter-spacing: .02em;
        color: #6d361e;
        margin: 0 0 4px;
    }

    .field select {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        border: none;
        outline: none;
        background: #fefcf5 right 10px center / 12px no-repeat;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236d361e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
        padding: 0 0.5rem;
        border-radius: 10px;
        font-weight: 500;
        color: #6d361e;
    }

#apply.btn {
    background: #fefcf5;
    color: #6d361e;
    text-transform: uppercase;
    border: none;
    outline: none;
    padding: 14px 16px;
    border-radius: 14px;
    cursor: pointer;
    transition: transform .05s ease, box-shadow .2s ease;
}

    #apply.btn:active {
        transform: translateY(1px);
    }

#marketplaceCarousel .carousel-item img {
    max-width: 100%;
    margin: auto;
    border-radius: 16px;
    overflow: hidden;
}

.carousel-indicators-bottom {
    position: static;
    margin-top: 1rem;
}

    .carousel-indicators-bottom button {
        width: 8px;
        height: 8px;
        min-width: 8px;
        padding: 0;
        border-radius: 50%;
        opacity: 1;
        margin: 0 6px;
    }

        .carousel-indicators-bottom button.active {
            background-color: #6d361e;
        }

#marketplaceCarousel .carousel-control-prev,
#marketplaceCarousel .carousel-control-next {
    width: auto;
    background: none;
    border: none;
    opacity: 1;
}

#marketplaceCarousel .carousel-control-prev-icon,
#marketplaceCarousel .carousel-control-next-icon {
    background-image: none; /* kill Bootstrap default */
}

#marketplaceCarousel .carousel-control-prev-icon {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3C/svg%3E") no-repeat center;
    background-color: #6d361e;
}

#marketplaceCarousel .carousel-control-next-icon {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.59 16.59 10 18l6-6-6-6-1.41 1.41L13.17 12z'/%3E%3C/svg%3E") no-repeat center;
    background-color: #6d361e;
}

#marketplaceCarousel .carousel-control-prev,
#marketplaceCarousel .carousel-control-next {
    opacity: 0;
    transition: opacity 0.25s ease;
}

#marketplaceCarousel:hover .carousel-control-prev,
#marketplaceCarousel:hover .carousel-control-next {
    opacity: 1;
}

#marketplaceCarousel:hover .carousel-control-prev-icon,
#marketplaceCarousel:hover .carousel-control-next-icon {
    transform: scale(3.15);
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.9)) drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}

@media (min-width: 992px) {
    #marketplaceCarousel {
        max-width: 85%;
        margin-left: auto;
        margin-right: auto;
    }
}

/*.finarch-card {
    width: fit-content;
    margin: auto;
    background: transparent;
    border: 1px solid #fefcf5;
    border-radius: 40px;
    padding: 5px;
    box-shadow: 0px 3px 8px -4px #6d361e;
    transition: all 0.3s ease-in-out;
}*/

/*    .finarch-card:hover {
        box-shadow: 0px 3px 12px -4px rgb(109, 54, 30);
        transform: translateY(-0.5em);
    }*/

.finarch-card iframe {
    height: 240px;
}

@media (max-width: 980px) {
    .overlay-content {
        padding: 32px 24px 24px;
    }

    #filter.filter {
        gap: 10px;
    }

    .field {
        min-width: 200px;
    }
}

@media (min-width: 1344px) {
    .container, .container-sm, .container-md, .container-lg, .container-xl {
        /* max-width: 1400px; */
        max-width: 100%;
    }
}

@media (max-width: 620px) {

    #filter.filter {
        justify-content: stretch;
    }

    .field, #apply.btn {
        width: 100%;
        max-width: 100%;
    }

    #apply.btn {
        padding: 14px;
    }
}

.coming-soon-logo {
    height: 3vw;
    max-height: 80px;
    width: auto;
    margin-bottom: 1.5rem;
}

/* PRODUCTS SECTION */

.section-title {
    margin: 38px 0 6px;
}

.section-sub {
    margin: 0 0 18px;
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.tab {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    border: 2px solid #6d361e;
    background: transparent;
    color: #6d361e;
    font-weight: 600;
    cursor: pointer;
}

    .tab.is-active {
        background: #6d361e;
        color: #fefcf5;
    }

.product-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    transition: transform .28s ease-in-out;
    transform: translateZ(0);
    background: #f6f2ee;
    position: relative;
}

.product-card:hover .product-image-wrapper img {
    transform: scale(1.04) translateZ(0);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
    transition: transform .28s ease;
}

.bank {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fefcf5;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 12px;
    z-index: 2;
}

.product-info-wrapper.card__body {
    padding: 16px;
    background: #6d361e;
    color: #fefcf5;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.product-title,
.card__title {
    min-height: 50px;
    color: #fefcf5;
}

.product-description p,
.card__desc {
    line-height: 1.45;
    opacity: .95;
    margin: 0 0 14px;
    color: #fefcf5;
    min-height: 70px;
}

.meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.pill {
    background: #fefcf5;
    color: #6d361e;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 12px;
    font-weight: 600;
}

.cta,
.apply-btn {
    background-color: #fefcf5;
    color: #6d361e;
    text-align: center;
}

.empty {
    text-align: center;
    padding: 32px;
    display: none;
}

/* FAQ SECTION */
.faq {
    margin: 56px 0;
    justify-self: center;
}

    .faq details {
        border-bottom: 1px solid #e8ded7;
        padding: 14px 0;
    }

    .faq summary {
        list-style: none;
        cursor: pointer;
        font-weight: 700;
        position: relative;
    }

        .faq summary::after {
            content: "+";
            position: absolute;
            right: 0;
        }

    .faq details[open] summary::after {
        content: "−";
    }

    .faq p {
        margin: 10px 0 0;
    }

.controls {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: end;
    margin: 10px 0 22px;
}

.control {
    min-width: 240px;
}

    .control label {
        display: block;
        margin-bottom: 6px;
    }

#f-bank, #f-sort {
    width: 100%;
    padding: 10px 12px;
    border-radius: 5px;
    background-color: transparent;
}

a:hover {
    color: #6d361e;
}

.best-option-label {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: #fefcf5;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: none; /* Hide by default */
}

.product-card.best-option .best-option-label {
    display: block;
}


/* ---------- DIGITAL PAYMENTS FIX ---------- */
.digital-payments {
    padding: 60px 0;
    background: #fefcf5;
}

    .digital-payments .dp-head {
        text-align: center;
        max-width: 900px;
        margin: 0 auto 40px;
    }

    .digital-payments .section-title {
        margin-bottom: 12px;
        color: #6d361e;
    }

/* Card grid */
.dp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

@media (max-width: 980px) {
    .dp-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .dp-grid {
        grid-template-columns: 1fr;
    }
}

/* Card style */
.dp-card {
    background: transparent;
    border-radius: 10px;
    padding: 2rem 1.5rem;
    border: 1px solid #6d361e;
    display: flex;
    flex-direction: column;
}

.dp-card--accent {
    background: #6d361e;
    color: #fefcf5;
}

.dp-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dp-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #6d361e;
    color: #fefcf5;
    font-weight: 700;
    font-size: 9px;
}

.dp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    color: #fefcf5;
    font-weight: 700;
    font-size: 9px;
}

    .dp-icon svg {
        flex: 0 0 auto;
        display: block;
        fill: #fefcf5 !important;
    }

.dp-badge {
    background: #fefcf5;
    color: #6d361e;
    border: 1px solid #6d361e;
    border-radius: 999px;
    padding: 2px 10px;
}

.dp-card--accent .dp-badge {
    background: #6d361e;
    color: #fefcf5;
    border-color: #fefcf5;
}

.dp-card__title {
    margin: 6px 0;
}

.dp-card__desc {
    margin: 0 0 12px;
}

.dp-list {
    margin: 0;
    padding-left: 18px;
}

/* Steps layout */
.dp-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 32px 0 16px;
    flex-wrap: wrap;
}

.step {
    background: #fff;
    border: 1px solid #e8ded7;
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}

.step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #6d361e;
    color: #fefcf5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step__text {
    font-weight: 600;
}

/* CTA buttons */
.dp-cta {
    text-align: center;
    margin-top: 20px;
}

    .dp-cta a {
        margin: 6px 8px;
    }

@media (max-width: 768px) {
    .coming-soon-section {
        height: 70vh !important;
        min-height: 70vh !important;
    }

    .finarch-card iframe {
        height: 340px;
    }
}

.contact-info-section {
    padding: 4rem 0;
    text-align: center;
}

.contact-info-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-info-box {
    flex: 1 1 250px;
    max-width: 300px;
    margin: 0 auto;
}

    .contact-info-box:hover i {
        transform: scale(1.3) translateZ(0);
    }

.icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info-box i {
    transition: all 0.3s ease-in-out;
    transform: translateZ(0);
}

.contact-info-box h2 {
    margin-bottom: 1rem;
}

.info-button {
    color: #6d361e;
    border: 2px solid #6d361e;
    transition: all 0.3s;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase !important;
    display: grid;
    line-height: normal;
}

    .info-button:hover {
        background-color: #6d361e;
        color: #fefcf5;
    }

/* 8 blocks across: 4 tall + 4 small squeezed into same 2 rows
   24 columns to fit all cards */
.marketplace-tiles {
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* Make anchors behave like blocks */
.marketplace-tile {
    display: block;
}

/* 8-tile layout with 4 tall cards */
.tile-0 {
    grid-column: 1 / span 5;
    grid-row: 1 / span 2;
}
/* tall left */
.tile-1 {
    grid-column: 6 / span 4;
    grid-row: 1 / span 2;
}
/* tall left 2 */

.tile-2 {
    grid-column: 10 / span 3;
    grid-row: 1 / span 1;
}
/* small top */
.tile-3 {
    grid-column: 13 / span 3;
    grid-row: 1 / span 1;
}
/* small top right */

.tile-4 {
    grid-column: 10 / span 3;
    grid-row: 2 / span 1;
}
/* small bottom */
.tile-5 {
    grid-column: 13 / span 3;
    grid-row: 2 / span 1;
}
/* small bottom right */

.tile-6 {
    grid-column: 16 / span 4;
    grid-row: 1 / span 2;
}
/* tall right */

.tile-7 {
    grid-column: 20 / span 5;
    grid-row: 1 / span 2;
}
/* tall right */

/* tall far right - same height as first 2 items */

.marketplace-tiles .service-card {
    align-content: center;
}
/* Responsive fallback */
@media (max-width: 1362px) {
    .marketplace-tiles {
        grid-template-columns: repeat(2, 1fr);
    }

    .tile-0, .tile-1, .tile-2, .tile-3, .tile-4, .tile-5, .tile-6, .tile-7 {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Replace the entire .marketplace-tiles and tile-N rules with: */

.marketplace-tiles {
    display: grid;
    gap: 20px;
    align-items: stretch;
}

.marketplace-tile {
    display: block;
}

.marketplace-tiles .service-card {
    align-content: center;
    height: 100%;
}

/* Mobile: 2 columns */
@media (max-width: 767px) {
    .marketplace-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet: 3 columns */
@media (min-width: 768px) and (max-width: 1362px) {
    .marketplace-tiles {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1362px) {
    .marketplace-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        justify-items: center;
    }
    /* Center the last row's items */
    .marketplace-tile:nth-last-child(2):nth-child(3n+1),
    .marketplace-tile:nth-last-child(2):nth-child(3n+1) ~ .marketplace-tile {
        grid-column: auto;
    }
    /* Use a wrapper approach instead — much simpler: */
    .marketplace-tiles {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .marketplace-tile {
        flex: 0 1 calc((100% - 40px) / 3);
    }
}




/* Immigrants page: 3-col flex (centers incomplete last row) */
.marketplace-tiles--grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.marketplace-tiles--grid .marketplace-tile {
    flex: 0 1 calc((100% - 40px) / 3);
}

.marketplace-tiles--grid .service-card {
    height: 100%;
    align-content: center;
}

@media (max-width: 767px) {
    .marketplace-tiles--grid .marketplace-tile {
        flex: 0 1 calc((100% - 20px) / 2);
    }
}

/* Marketplace Product Modal */

/* Backdrop */
.mp-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9999;
    padding: 24px;
}

/* Dialog */
.mp-modal__dialog {
    background: #fefcf5;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    margin-top: 20px;
    border-radius: 14px;
    position: relative;
    /* layout */
    display: flex;
    flex-direction: column;
    height: calc(100vh - 120px);
    max-height: calc(100vh - 120px);
    overflow: hidden;
}

/* Fixed header */
.mp-modal__header {
    flex: 0 0 auto;
    padding: 18px 22px 8px;
    border-bottom: 1px solid #eee;
}

/* Scrollable body */
.mp-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 22px;
}

/* Sticky footer */
.mp-modal__footer {
    flex: 0 0 auto;
    padding: 16px 22px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

/* Close button */
.mp-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: transparent;
    border: 0;
    font-size: 22px;
    cursor: pointer;
    opacity: .7;
    line-height: 1;
}

    .mp-modal__close:hover {
        opacity: 1;
    }

/* Primary button */
.mp-btn {
    border: 0;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
}

.mp-btn--primary {
    background: #6d361e;
    color: #fefcf5;
}

/* Header block  */

.mp-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.mp-modal-header__left {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

/* Bank logo/placeholder */
.mp-bankmark {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .mp-bankmark img {
        width: 100%;
        height: 100%;
    }

.mp-bankmark__placeholder {
    width: 26px;
    height: 26px;
    background: #ddd;
    border-radius: 6px;
}

/* Titles */
.mp-title {
    margin: 0;
    font-size: 18px;
}

.mp-product {
    margin: 6px 0 0;
    font-size: 14px;
}

.mp-muted {
    opacity: .6;
}

.mp-rich p {
    margin: 0 0 10px;
}

.mp-rich ul,
.mp-rich ol {
    margin: 0 0 10px 20px;
}

.mp-rich a {
    color: #6d361e;
    text-decoration: underline;
}

/* KPI cards */

.mp-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.mp-kpi {
    padding: 10px 16px;
    background: white;
    border: 1px solid #6d361e4a;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

    .mp-kpi:hover {
        box-shadow: 1px 12px 6px -13px #6d361e !important;
    }

.mp-kpi__label {
    opacity: .65;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 18px;
}

.mp-kpi__value {
    font-size: 14px;
}

@media (max-width: 900px) {
    .mp-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .mp-modal {
        padding: 14px;
    }

    .mp-modal__dialog {
        margin-top: 30px;
        height: calc(100vh - 60px);
        max-height: calc(100vh - 60px);
    }

    .mp-kpis {
        grid-template-columns: 1fr;
    }

    .mp-product {
        font-size: 16px;
    }
}

/* Tabs */

.mp-tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid #eee;
    margin: 10px 0 14px;
}

.mp-tab {
    background: transparent;
    border: 0;
    padding: 12px 0;
    font-weight: 700;
    cursor: pointer;
    opacity: .65;
    position: relative;
}

    .mp-tab.is-active {
        opacity: 1;
        color: #6d361e;
    }

        .mp-tab.is-active::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -1px;
            height: 2px;
            background: #6d361e;
        }

/* Tab panes */
.mp-pane {
    display: none;
}

    .mp-pane.is-active {
        display: block;
    }

/* specs table */

.mp-specs {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mp-spec {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

    .mp-spec strong {
        font-weight: 800;
    }

/* doc list */

.mp-docs {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .mp-docs a {
        display: inline-block;
        padding: 10px 12px;
        border: 1px solid #eef0f2;
        border-radius: 10px;
        background: #f6f7f8;
        text-decoration: none;
        color: inherit;
    }

        .mp-docs a:hover {
            background: #fff;
        }

/* dropdown */

input, .form-control {
    border-radius: 5px;
    font-size: 0.9rem;
    border: 1px solid #6d361e80;
    color: #6d361e;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    background-color: transparent;
    height: 45px;
    background-color: #fff;
    padding: 0 1rem;
    transition: all 0.2s ease;
}

    input:focus, .form-control:focus {
        border: 1px solid #ad603a;
        box-shadow: 0 0 0 3px rgba(173, 96, 58, 0.1);
        outline: none;
    }

select, .form-select {
    border-radius: 5px;
    font-size: 0.9rem;
    border: 1px solid #6d361e80;
    color: #6d361e;
    background-color: #fff;
    height: 45px;
    padding: 0 2.5rem 0 1rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236d361e' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    font-weight: 500;
}

    select:hover, .form-select:hover {
        border-color: #ad603a;
        background-color: #fafafa;
    }

    select:focus, .form-select:focus {
        border: 1px solid #ad603a;
        box-shadow: 0 0 0 3px rgba(173, 96, 58, 0.1);
        outline: none;
        background-color: #fff;
    }

.custom-select-wrapper {
    position: relative;
    width: auto;
}

    .custom-select-wrapper select {
        display: none;
    }

.input-group {
    flex-wrap: nowrap !important;
}

.custom-select-trigger {
    position: relative;
    width: 100%;
    height: 45px;
    padding: 0 2.5rem 0 1rem;
    background-color: #fff;
    border: 1px solid #6d361e80;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #6d361e;
    font-weight: 500;
    transition: all 0.2s ease;
    user-select: none;
}

    .custom-select-trigger::after {
        content: '';
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid #6d361e;
        transition: transform 0.2s ease;
    }

    .custom-select-trigger:hover {
        border-color: #ad603a;
        background-color: #fafafa;
    }

.custom-select-wrapper.open .custom-select-trigger {
    border-color: #ad603a;
    box-shadow: 0 0 0 3px rgba(173, 96, 58, 0.1);
}

    .custom-select-wrapper.open .custom-select-trigger::after {
        transform: translateY(-50%) rotate(180deg);
    }

.custom-select-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ad603a;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(109, 54, 30, 0.15);
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.custom-select-wrapper.open .custom-select-options {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-select-option {
    padding: 12px 16px;
    cursor: pointer;
    color: #6d361e;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f5f5f5;
}

    .custom-select-option:last-child {
        border-bottom: none;
    }

    .custom-select-option:hover {
        background-color: #f5ebe6;
        color: #ad603a;
    }

    .custom-select-option.selected {
        background-color: #ad603a;
        color: #fff;
        font-weight: 600;
    }

        .custom-select-option.selected:hover {
            background-color: #8d4e2e;
        }

.custom-select-options::-webkit-scrollbar {
    width: 8px;
}

.custom-select-options::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.custom-select-options::-webkit-scrollbar-thumb {
    background: #ad603a;
    border-radius: 4px;
}

    .custom-select-options::-webkit-scrollbar-thumb:hover {
        background: #8d4e2e;
    }

/* product cards */

.product-card {
    background-color: white;
    padding: 1rem;
    transition: all 0.3s ease-in-out;
    border-radius: 4px;
    border-color: #f5f5f5;
}

    .product-card:hover {
        box-shadow: 1px 12px 6px -13px #6d361e !important;
    }

    .product-card .row {
        align-items: start;
    }

    .product-card img {
        width: 40px;
        height: 40px;
        object-fit: contain;
        border-radius: 5px;
    }

    .product-card h4 {
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }

    .product-card .text-muted {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

.product-info-col, .product-info-col-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .product-info-col p, .product-info-col-details p {
        margin: 0;
        line-height: 1.3;
    }

/* buttons */

.btn-clear {
    white-space: nowrap;
    background-color: transparent;
    color: #ad603a;
    border: 1px solid #ad603a;
    border: 1.5px solid #ad603a;
    height: 45px;
    width: 100%;
    transition: all 0.2s ease;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    border: 1.5px solid #ad603a;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase !important;
}

    .btn-clear:hover {
        background-color: #ad603a;
        color: #fff;
    }

.btn-search {
    white-space: nowrap;
    background-color: #ad603a;
    color: #ffffff;
    height: 45px;
    width: 100%;
    transition: all 0.2s ease;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    border: 1.5px solid #ad603a;
    font-weight: 500;
    cursor: pointer;
    text-transform: uppercase !important;
    margin-right: 12px;
}

    .btn-search:hover {
        background-color: #834222;
        color: #fff;
    }

.btn-outline-custom {
    background-color: transparent;
    color: #ad603a;
    border: 1.5px solid #ad603a;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: 4px;
}

    .btn-outline-custom:hover {
        background-color: #ad603a;
        color: #fff;
    }

.btn-wrapper {
    margin: auto;
}

/* wrappers */

.img-wrapper {
    margin-left: 2% !important;
    margin: auto;
}

.name-wrapper {
    margin-left: 0 !important;
    margin: auto;
}

.text-muted, h4 {
    margin-bottom: 0 !important;
}

main {
    padding-top: 0 !important;
}

.hero-overlay-content {
    background-color: #6d361e;
    padding: 2rem;
    border-radius: 12px;
    margin-left: 1rem;
    margin-right: 1rem;
    margin-bottom: 10rem;
    opacity: 0.9;
    align-self: end;
}

    .hero-overlay-content h2 {
        margin-bottom: 1rem;
        color: #fff;
    }

.mortgage-cta-section h2 {
    margin-bottom: 1rem;
}

.mortgage-cta-section p {
    margin-bottom: 1.5rem;
}

.mortgage-cta-section .button {
    border: 2px solid #6d361e;
    background: transparent;
    color: #6d361e;
    transition: all 0.3s ease;
}

    .mortgage-cta-section .button:hover {
        background-color: #6d361e;
        color: #fefcf5;
    }

.cta-column {
    padding-left: 20px;
    padding-right: 20px;
}


.financial-tool-column {
    display: flex;
    flex-direction: column;
    height: fit-content;
}

    .financial-tool-column .tool-card {
        background-color: #fefcf5 !important;
        flex: 1;
        height: auto;
        display: flex;
        flex-direction: column;
    }

.tool-card {
    padding: 1rem;
    width: 100%;
    margin-bottom: 1rem !important;
    background: #fff;
    border: 1px solid #6d361e;
    border-radius: 18px;
    /* padding: 1rem; */
    box-shadow: 0 24px 60px rgba(20, 11, 5, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tool-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tool-title {
    margin: 0;
    color: #6d361e;
    font-size: 1.475rem;
    line-height: 1.2;
}

.tool-description {
    margin: 0;
    color: #6d361e;
    opacity: 0.8;
    font-size: 0.95rem;
}

.tool-card-body {
    flex: 1;
    height: auto;
    display: flex;
    flex-direction: column;
}



/*.mortgage-cta-card .tool-card-header .button {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    font-size: 0.9rem;
    border: 2px solid #6d361e;
    background: transparent;
    color: #6d361e;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
}

    .mortgage-cta-card .tool-card-header .button:hover {
        background-color: #6d361e;
        color: #fefcf5;
    }

.mortgage-cta-card .tool-card-body {
    flex: 1;
    overflow: hidden;
}

    .mortgage-cta-card .tool-card-body img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0 0 18px 18px;
    }

.tool-card-header {
    padding: 1rem;
}

<style >*/
/* Wrap the widget in a responsive container */
/*.xe-widget-wrapper {
    display: flex;*/ /* enables centering */
/*justify-content: center;*/ /* centers horizontally */
/*width: 100%;*/ /* full width container */
/*}*/

/* Make the iframe scale to fit smaller screens */
/*.xe-widget-wrapper iframe {
    max-width: 100%;*/ /* prevents overflow */
/*width: 340px;*/ /* original width */
/*height: 410px;*/ /* original height */
/*}*/

.exchange-calculator-section .finarch-card {
    /* height: auto; */
    /* width: 100%; */
    /* border-radius: 14px; */
    /* border: 1px solid rgba(109, 54, 30, 0.15); */
    /* box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08); */
    /* padding: 0; */
    /* overflow: hidden; */
    /* display: flex; */
    /* flex-direction: column; */
}

.exchange-widget {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .exchange-widget iframe {
        width: 100%;
        height: 100%;
        min-height: 240px;
        border: 0;
        flex: 0.65;
    }


.loan-card {
    display: flex;
    overflow: hidden;
    box-shadow: none;
    /* border: 1px solid #f0e4da; */
    border-radius: 14px;
    min-height: 400px;
    background: #fff;
}

.loan-calculator-section .loan-card {
    height: 100%;
}

.info-side {
    background-color: #fefcf5 !important;
    border-radius: 0;
    border: 0;
    border-right: 1px solid #f4e6dc;
    padding: 1rem;
    flex: 0 0 58.333333%;
    display: flex;
    flex-direction: column;
}

.result-side {
    border-radius: 0 10px 10px 0;
    background-color: #6d361e;
    padding: 2rem;
    color: #fefcf5;
    flex: 0 0 41.666667%;
}

.custom-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-button {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid #6d361e;
    border-radius: 8px;
    color: #6d361e;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 0;
}

    .dropdown-button .dropdown-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        min-width: 0;
        text-align: left;
    }

    .dropdown-button:hover {
        background: #fefcf5;
    }

    .dropdown-button.active {
        border-color: #6d361e;
        background: #fefcf5;
    }

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.dropdown-button.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu-custom {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #6d361e;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(109, 54, 30, 0.15);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

    .dropdown-menu-custom.show {
        display: block;
    }

.dropdown-item-custom {
    padding: 0.75rem 1rem;
    color: #6d361e;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 0.9rem;
}

    .dropdown-item-custom:hover {
        background: #f5ebe6;
    }

    .dropdown-item-custom:first-child {
        border-radius: 6px 6px 0 0;
    }

    .dropdown-item-custom:last-child {
        border-radius: 0 0 6px 6px;
    }

#calculateLoan {
    background: #6d361e;
    transition: all 0.3s ease;
    line-height: normal;
}

.result-label {
    margin-bottom: 0.3rem;
}

.result-currency {
    font-size: 0.7em;
    font-weight: 500;
    opacity: 0.9;
}

.loan-calculator-section input.form-control {
    width: 100%;
    padding: 0.75rem 3.5rem 0.75rem 1rem;
    border: 1px solid #6d361e;
    border-radius: 8px;
    outline: none;
    box-shadow: none;
    color: #6d361e;
    background-color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .loan-calculator-section input.form-control:focus {
        border-color: #6d361e;
        background: #fefcf5;
        box-shadow: none;
        outline: none;
    }

    .loan-calculator-section input.form-control::placeholder {
        color: #6d361e;
        opacity: 0.6;
    }

.label-with-tooltip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.loan-tooltip {
    display: none;
    position: absolute;
    top: 125%;
    background-color: #6d361e;
    color: #fefcf5;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.tooltip-wrapper:hover .loan-tooltip,
.tooltip-wrapper:focus-within .loan-tooltip,
.tooltip-wrapper.active .loan-tooltip {
    display: block;
}

.loan-info-icon {
    color: #6d361e;
    cursor: pointer;
    font-size: 0.85rem;
}

.input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

    .input-wrapper .money-input {
        width: 100%;
    }

.currency-suffix {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6d361e;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.7;
}

.static-value-display {
    padding: 0.75rem 1rem;
    border: 1px solid #6d361e;
    border-radius: 8px;
    background-color: #fefcf5;
    color: #6d361e;
    font-size: 0.9rem;
    font-weight: 600;
}

.credit-score-section {
    background: #fefcf5;
    padding: 3rem 0;
}

.credit-score-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    overflow-x: hidden;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .check-list li {
        position: relative;
        padding-left: 1.6rem;
        margin: .45rem 0;
    }

        .check-list li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: .05rem;
            color: #6d361e;
            font-weight: 700;
        }

.note {
    background: #f6efe9;
    border: 1px solid #e1d6cd;
    border-radius: 8px;
    padding: .6rem .8rem;
    color: #6d361e;
}

.credit-score-image {
    width: 100%;
}

.credit-score-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
}

    .credit-score-image-wrapper img {
        width: 100%;
        object-fit: cover;
        display: block;
    }

.credit-score-section .button {
    display: inline-block;
    padding: .7rem 1.4rem;
    font-size: .9rem;
    border: 1px solid #6d361e;
    background: transparent;
    color: #6d361e;
    text-decoration: none;
    border-radius: 5px;
    transition: all .2s ease;
}

    .credit-score-section .button:hover {
        background: #6d361e;
        color: #fefcf5;
        border-color: #6d361e;
    }

.info-card {
    background: #6d361e;
    color: #fefcf5;
    padding: 2rem 1.5rem;
    border-radius: 5px;
    text-align: left;
    height: 100%;
}

    .info-card .card-title {
        margin-bottom: 1rem;
    }

    .info-card .card-body-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

.tabs-header {
    display: flex;
    gap: 0.8rem;
    align-items: flex-end;
    border-bottom: 1px solid #e7ddd4;
    margin-bottom: 3rem;
}

.advice-tab {
    position: relative;
    border: 0;
    background: transparent;
    color: #6d361e;
    padding: 0.7rem 1rem;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.9;
}

    .advice-tab:hover {
        opacity: 1;
    }

    .advice-tab:active {
        transform: translateY(1px);
    }

    .advice-tab.active {
        opacity: 1;
        border-bottom: 1px solid #6d361e
    }

.tab-panel {
    display: none;
    overflow: hidden;
}

    .tab-panel.active {
        display: block;
    }

@@media (max-width: 768px) {
    .mortgage-hero-section {
        height: 70vh !important;
        min-height: 70vh !important;
    }

    .loan-tooltip {
        white-space: normal;
        width: 200px;
    }

    .mortgage-cta-section .button {
        display: inline-flex;
    }
}

@media (max-width: 767.98px) {
    .loan-card {
        flex-direction: column;
    }

    .info-side,
    .result-side {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .result-side {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .tabs-header {
        gap: 0.5rem !important;
    }

    .advice-tab {
        padding: 0.7rem !important;
    }
}

@media (max-width: 768px) {
    .credit-score-container {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .tool-card {
        padding: 1.5rem;
    }

    .exchange-widget iframe {
        min-height: 280px;
    }
}

/* make both cols stretch to equal height on md+ */
@media (min-width: 768px) {
    .credit-score-container {
        align-items: stretch;
    }

    .credit-score-text {
        align-self: center;
    }

    .credit-score-text,
    .credit-score-image {
        display: flex;
        flex-direction: column;
    }

    .credit-score-image-wrapper {
        height: 100%;
    }

        .credit-score-image-wrapper img {
            height: 100%;
            object-fit: cover;
        }
}

@media (min-width: 1200px) {
    .credit-score-image-wrapper {
        max-height: 640px;
    }
}


.loan-interest {
    text-wrap: auto;
    font-style: italic;
    font-size: 0.8rem;
    color: #6d361e;
    opacity: 0.85;
}

.warning-icon {
    color: #c0392b;
    font-size: 0.9rem;
    cursor: help;
    animation: pulse 2s ease-in-out infinite;
}


@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.financial-tools-row {
    display: flex;
    width: -webkit-fill-available;
    align-items: center !important;
    flex-direction: column;
}

    .financial-tools-row > .financial-tool-column {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

}

@media (max-width: 992px) {
    .product-card .btn-wrapper {
        place-content: end;
    }

    .product-info-col {
        padding-top: 15px;
        padding-bottom: 15px;
        display: grid;
        grid-template-rows: 2.2em auto;
        row-gap: 0.25rem;
    }

    .product-info-col-details {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .btn-outline-custom {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .btn-search {
        margin-right: 30px;
    }
}


/* ============================================
   PRODUCT CARD – Reusable product list component
   Works for: Llogari Kursimi, Kredi, Depozita, etc.
   ============================================ */

.product-card {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 10px;
    margin-bottom: 14px;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

    .product-card:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
        border-color: #c5ccd3;
    }

.product-card__inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
}

/* --- Logo --- */
.product-card__logo {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-card__logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 6px;
    }

/* --- Name / Bank --- */
.product-card__name {
    flex: 0 0 260px;
    min-width: 0;
}

    .product-card__name h4 {
        margin: 0 0 2px;
        font-size: 0.95rem;
        font-weight: 600;
        word-break: break-word;
    }

    .product-card__name p {
        margin: 0;
        font-size: 0.8rem;
        color: #7a8a9e;
        word-break: break-word;
    }

/* --- Details row --- */
.product-card__details {
    flex: 1 1 auto;
    display: flex;
    gap: 12px;
}

.product-card__detail {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-card__label {
    font-size: 0.72rem;
    font-weight: 500;
    color: #1c1f23;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-card__value {
    font-size: 0.92rem;
    font-weight: 600;
}

/* --- Action button --- */
.product-card__action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.btn-outline-custom {
    display: inline-block;
    padding: 8px 20px;
    font-size: 0.82rem;
    font-weight: 600;
    background: transparent;
    border: 1.5px solid;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}



/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1199px) {
    .product-card__inner {
        flex-wrap: wrap;
        gap: 14px;
        padding: 16px 20px;
    }

    .product-card__name {
        flex: 1 1 auto;
    }

    .product-card__details {
        flex: 1 1 100%;
        order: 3;
    }

    .product-card__action {
        order: 4;
        flex: 1 1 100%;
        justify-content: flex-end;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .product-card__inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }

    .product-card__logo {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }

    .product-card__name {
        flex: 1 1 0;
    }

    .product-card__details {
        flex-wrap: wrap;
        gap: 0;
    }

    .product-card__detail {
        flex: 0 0 50%;
        padding: 8px 0;
        border-top: 1px solid #f0f2f5;
    }
        /* Remove top border from first row */
        .product-card__detail:nth-child(-n+2) {
            border-top: none;
        }
        /* If odd number of details, last one full width */
        .product-card__detail:last-child:nth-child(odd) {
            flex: 0 0 100%;
        }

    .product-card__action {
        justify-content: stretch;
    }

        .product-card__action .btn-outline-custom {
            width: 100%;
            text-align: center;
        }
}

/* --- Stacked detail (two label/value pairs in one column) --- */
.product-card__detail--stacked {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card__detail-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
