/* =========================================================
   TRADE SERVICES PAGE
========================================================= */


/* =========================================================
   TRADE SERVICES HERO
========================================================= */

.trade-hero {
    position: relative;
    width: 100%;
    min-height: 600px;

    background-image: url("../img/trade/img1.png");
    background-size: cover;
    background-position: 90% center;
    background-repeat: no-repeat;

    overflow: hidden;

    display: flex;
    align-items: center;
}


/* =========================================================
   HERO OVERLAY
========================================================= */

.trade-hero::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 0;

    background-image:
        linear-gradient(
            to right,
            rgba(22, 39, 94, 0.88) 0%,
            rgba(22, 39, 94, 0.72) 28%,
            rgba(22, 39, 94, 0.35) 50%,
            rgba(22, 39, 94, 0.05) 75%,
            rgba(22, 39, 94, 0) 100%
        );
}


/* =========================================================
   HERO CONTENT
========================================================= */

.trade-hero-content {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 720px;

    padding: 1rem 1rem;
}


/* =========================================================
   MAIN TITLE
========================================================= */

.trade-hero-content h1 {
    margin: 0 0 12px;

    color: #fff;

    font-size: 60px;
    line-height: 1.15;
    font-weight: 700;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.trade-hero-description {
    max-width: 520px;

    margin: 0 0 22px;

    color: #fff;

    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}


/* =========================================================
   VIEW DETAILS BUTTON
========================================================= */

.trade-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-width: 145px;

    padding: 12px 18px;

    background: #e64555;
    color: #ffffff;

    border-radius: 10px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


/* =========================================================
   BUTTON HOVER
========================================================= */

.trade-details-btn:hover {
    background: #d63d4d;
    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   BUTTON ICON
========================================================= */

.trade-details-btn i {
    font-size: 15px;
}


/* =========================================================
   LARGE DESKTOP
   1201px+
========================================================= */

@media (min-width: 1201px) {

    .trade-hero {
        min-height: 500px;

        display: flex;
        align-items: center;

        background-size: cover;
        background-position: bottom;
    }

    .trade-hero-content {
        max-width: 820px;

        padding: 40px;
    }

    .trade-hero-content h1 {
        margin-bottom: 12px;
    }

    .trade-hero-description {
        margin-bottom: 22px;
    }
}


/* =========================================================
   LAPTOP
   1001px - 1200px
========================================================= */

@media (min-width: 1001px) and (max-width: 1200px) {

    .trade-hero {
        min-height: 300px;

        display: flex;
        align-items: center;

        background-size: cover;
        background-position: 90% center;
    }

    .trade-hero-content {
        max-width: 680px;

        padding: 35px 30px;
    }

    .trade-hero-content h1 {
        font-size: 52px;
    }

    .trade-hero-description {
        font-size: 15px;
    }
}


/* =========================================================
   TABLET
   769px - 1000px
========================================================= */

@media (min-width: 769px) and (max-width: 1000px) {

    .trade-hero {
        min-height: 400px;

        display: flex;
        align-items: center;

        background-size: cover;
        background-position: 75% center;
    }

    .trade-hero-content {
        max-width: 650px;

        padding: 28px 25px 35px;
    }

    .trade-hero-content h1 {
        font-size: 42px;

        margin-bottom: 10px;
    }

    .trade-hero-description {
        max-width: 430px;

        font-size: 15px;
        line-height: 1.4;

        margin-bottom: 18px;
    }

    .trade-details-btn {
        min-width: 140px;

        padding: 11px 17px;

        font-size: 13px;
    }
}


/* =========================================================
   MOBILE
   768px and below
========================================================= */

@media (max-width: 768px) {

    .trade-hero {
        min-height: 300px;

        display: flex;
        align-items: center;

        background-size: cover;
        background-position: 75% center;
    }

    .trade-hero-content {
        max-width: 100%;

        padding: 30px 22px;
    }

    .trade-hero-content h1 {
        font-size: 36px;

        line-height: 1.15;

        margin-bottom: 12px;
    }

    .trade-hero-description {
        max-width: 100%;

        font-size: 14px;
        line-height: 1.4;

        margin-bottom: 20px;
    }

    .trade-details-btn {
        width: auto;
        min-width: 140px;

        padding: 11px 16px;

        font-size: 13px;
    }

    .trade-details-btn i {
        font-size: 14px;
    }
}


/* =========================================================
   TRADE PRICE CALCULATOR
========================================================= */

.trade-price-section {
    width: 100%;
    padding: 40px 20px;
    background: #ffffff;
    box-sizing: border-box;
}


/* =========================================================
   MAIN CALCULATOR CONTAINER
========================================================= */

.trade-price-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 0;
    background: #eaf2fb;
    border-radius: 16px;
    padding: 15px;
}


/* =========================================================
   LEFT CALCULATOR
========================================================= */

.trade-calculator-card {
    width: 100%;

    padding: 0 15px 15px;

    background: transparent;

    border-radius: 12px;

    box-sizing: border-box;
}


/* =========================================================
   PRICE CALCULATOR TITLE
========================================================= */

.trade-calculator-card h2 {
    margin: 0 0 17px;

    color: #283570;

    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}


/* =========================================================
   FORM
========================================================= */

#tradePriceForm {
    width: 100%;
}


/* =========================================================
   FORM GROUP
========================================================= */

.trade-form-group {
    width: 100%;

    display: grid;

    grid-template-columns: 140px minmax(0, 1fr);

    align-items: center;

    column-gap: 12px;

    margin-bottom: 13px;

    box-sizing: border-box;
}


/* =========================================================
   LABEL
========================================================= */

.trade-form-group>label {
    margin: 0;

    color: #283570;

    font-size: 17px;
    line-height: 1.2;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   CUSTOM SELECT
========================================================= */

.trade-custom-select {
    position: relative;

    width: 100%;

    min-width: 0;
}


/* =========================================================
   SELECT BUTTON
========================================================= */

.trade-select-button {
    width: 100%;
    height: 51px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 17px;

    background: #ffffff;

    border: 1px solid #aeb8c7;

    border-radius: 14px;

    color: #9da6b2;

    font-family: inherit;

    font-size: 17px;
    font-weight: 400;

    text-align: left;

    cursor: pointer;

    outline: none;

    box-sizing: border-box;

    transition: 0.2s ease;
}


/* Hover */

.trade-select-button:hover {
    border-color: #7f8ba0;
}


/* Selected */

.trade-custom-select.selected .trade-select-button {
    color: #283570;
}


/* Open */

.trade-custom-select.open .trade-select-button {
    border-color: #283570;

    box-shadow:
        0 0 0 2px rgba(40, 53, 112, 0.08);
}


/* =========================================================
   SELECT ARROW
========================================================= */

.trade-select-button i {
    color: #283570;

    font-size: 15px;

    transition: transform 0.2s ease;
}

.trade-custom-select.open .trade-select-button i {
    transform: rotate(180deg);
}


/* =========================================================
   CUSTOM DROPDOWN
========================================================= */

.trade-select-menu {
    position: absolute;

    top: calc(100% + 5px);
    left: 0;

    width: 100%;

    max-height: 230px;

    padding: 5px;

    background: #ffffff;

    border: 1px solid #d3dae4;

    border-radius: 12px;

    box-shadow:
        0 8px 20px rgba(36, 47, 103, 0.16);

    overflow-y: auto;

    box-sizing: border-box;

    z-index: 9999;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(-5px);

    transition:
        opacity 0.15s ease,
        visibility 0.15s ease,
        transform 0.15s ease;
}


/* Open */

.trade-custom-select.open .trade-select-menu {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}


/* =========================================================
   DROPDOWN OPTIONS
========================================================= */

.trade-select-menu button {
    width: 100%;

    min-height: 40px;

    display: flex;
    align-items: center;

    padding: 9px 12px;

    border: none;

    background: transparent;

    color: #283570;

    font-family: inherit;

    font-size: 15px;
    font-weight: 400;

    text-align: left;

    border-radius: 8px;

    cursor: pointer;

    box-sizing: border-box;

    transition: 0.15s ease;
}


/* Hover */

.trade-select-menu button:hover {
    background: #eaf2fb;
}


/* Selected option */

.trade-select-menu button.active {
    background: #283570;

    color: #ffffff;
}


/* Check */

.trade-select-menu button.active::after {
    content: "\F26E";

    margin-left: auto;

    font-family: "bootstrap-icons";

    font-size: 15px;
}


/* =========================================================
   NORMAL INPUTS
========================================================= */

.trade-form-group>input {
    width: 100%;
    height: 51px;

    padding: 0 17px;

    background: #ffffff;

    border: 1px solid #aeb8c7;

    border-radius: 14px;

    color: #283570;

    font-family: inherit;

    font-size: 15px;

    outline: none;

    box-sizing: border-box;

    transition: 0.2s ease;
}


/* Placeholder */

.trade-form-group>input::placeholder {
    color: #9da6b2;

    opacity: 1;
}


/* Hover */

.trade-form-group>input:hover {
    border-color: #7f8ba0;
}


/* Focus */

.trade-form-group>input:focus {
    border-color: #283570;

    box-shadow:
        0 0 0 2px rgba(40, 53, 112, 0.08);
}


/* =========================================================
   CALCULATE BUTTON
========================================================= */

.trade-calculate-btn {
    width: 100%;
    height: 51px;

    margin-top: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 20px;

    background: #283570;

    border: none;

    border-radius: 14px;

    color: #ffffff;

    font-family: inherit;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}


.trade-calculate-btn:hover {
    background: #1f275c;

    transform: translateY(-1px);
}


/* =========================================================
   RIGHT RESULTS CARD
========================================================= */

.trade-result-card {
    position: relative;

    width: 100%;
    min-height: 435px;

    background: #f8fafc;

    border: 1px solid #d7dee8;

    border-radius: 15px;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.15);

    box-sizing: border-box;

    overflow: visible;
}


/* =========================================================
   RESULTS TAB
========================================================= */

.trade-result-label {
    position: absolute;

    top: 0;
    left: 0;

    min-width: 123px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 18px;

    background: #283570;

    color: #ffffff;

    border-radius: 15px 15px 15px 0;

    font-size: 11px;
    font-weight: 600;

    z-index: 5;

    box-sizing: border-box;
}


/* =========================================================
   RESULT CONTENT
========================================================= */

.trade-result-content {
    width: 100%;

    min-height: 435px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 55px 35px 30px;

    box-sizing: border-box;
}


/* =========================================================
   RESULT TITLE
========================================================= */

.trade-result-content h3 {
    max-width: 360px;

    margin: 0 0 12px;

    color: #283570;

    font-size: 16px;

    line-height: 1.4;

    font-weight: 700;
}


/* =========================================================
   RESULT DESCRIPTION
========================================================= */

.trade-result-content p {
    max-width: 330px;

    margin: 0;

    color: #283570;

    font-size: 11px;

    line-height: 1.5;

    font-weight: 400;
}


/* =========================================================
   DROPDOWN SCROLLBAR
========================================================= */

.trade-select-menu::-webkit-scrollbar {
    width: 5px;
}

.trade-select-menu::-webkit-scrollbar-track {
    background: transparent;
}

.trade-select-menu::-webkit-scrollbar-thumb {
    background: #c5ccd6;

    border-radius: 10px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .trade-price-section {
        padding: 30px 12px;
    }

    .trade-price-container {
        display: flex;

        flex-direction: column;

        gap: 15px;

        padding: 12px;

        border-radius: 14px;
    }


    /* Calculator */

    .trade-calculator-card {
        padding: 0 10px 12px;
    }

    .trade-calculator-card h2 {
        font-size: 23px;

        margin-bottom: 18px;
    }


    /* Form */

    .trade-form-group {
        grid-template-columns: 105px minmax(0, 1fr);

        column-gap: 9px;

        margin-bottom: 11px;
    }

    .trade-form-group>label {
        font-size: 12px;
    }

    .trade-select-button,
    .trade-form-group>input {
        height: 43px;

        padding: 0 12px;

        border-radius: 12px;

        font-size: 11px;
    }

    .trade-calculate-btn {
        height: 44px;

        border-radius: 12px;

        font-size: 14px;
    }


    /* Results */

    .trade-result-card {
        min-height: 270px;
    }

    .trade-result-content {
        min-height: 270px;

        padding: 55px 25px 25px;
    }

    .trade-result-content h3 {
        font-size: 14px;
    }

    .trade-result-content p {
        font-size: 10px;
    }
}

/* =========================================================
   CUSTOMER REVIEWS SECTION
========================================================= */

.customer-reviews-section {
    width: 100%;
    max-width: none;
    padding: 45px 20px 55px;
    background: #ffffff;
}

.customer-reviews-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.reviews-header {
    margin-bottom: 26px;
}

.reviews-header h2 {
    margin: 0 0 8px;
    color: #242f67;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 700;
}

.reviews-header p {
    margin: 0;
    color: #242f67;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 400;
}


/* =========================================================
   TRANSPORT TABS
========================================================= */

.review-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 34px;
}

.review-tab {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    padding: 12px 20px;

    border: 1px solid #d5d5d5;
    border-radius: 12px;

    background: #ffffff;
    color: #242f67;

    font-size: 15px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.review-tab i {
    font-size: 20px;
}

.review-tab:hover {
    border-color: #242f67;
}

.review-tab.active {
    background: #242f67;
    border-color: #242f67;
    color: #ffffff;
}

.review-tab.active:hover {
    background: #242f67;
    color: #ffffff;
}


/* =========================================================
   CAROUSEL
========================================================= */

.reviews-carousel {
    position: relative;
    width: 100%;
    padding: 0;
}

.reviews-viewport {
    width: 100%;
    overflow: hidden;

    padding: 36px 32px 55px;

    background: #f5f8fc;

    border: 1px solid #dce2ea;
    border-radius: 14px;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.15);
}

.reviews-track {
    display: flex;
    align-items: stretch;

    gap: 14px;

    transition: transform 0.35s ease;
}


/* =========================================================
   REVIEW CARD
========================================================= */

.review-card {
    flex: 0 0 calc((100% - 28px) / 3);

    width: calc((100% - 28px) / 3);

    min-height: 15rem;
    height: 15rem;

    padding: 14px 13px;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    border: 1px solid #d5d5d5;
    border-radius: 13px;

    box-shadow:
        2px 4px 4px rgba(0, 0, 0, 0.22);

    overflow: hidden;
}


/* =========================================================
   TOP ROW
========================================================= */

.review-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 5px;

    margin-bottom: 6px;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 1px;

    color: #f5a623;

    font-size: 18px;
    line-height: 1;
}

.review-date {
    flex-shrink: 0;

    color: #222222;

    font-size: 10px;
    line-height: 1.2;

    white-space: nowrap;
}


/* =========================================================
   REVIEW TEXT
========================================================= */

.review-text {
    margin: 0.5rem;

    min-height: 43px;

    color: #111111;

    font-size: 15px;
    line-height: 1.35;

    font-weight: 400;
}


/* =========================================================
   CUSTOMER
========================================================= */

.review-customer {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-top: 5px;
    margin-bottom: 9px;
}

.review-customer img {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border-radius: 50%;

    object-fit: cover;

    background: #e9edf4;
}

.review-customer div {
    display: flex;
    flex-direction: column;
}

.review-customer strong {
    color: #111111;

    font-size: 15px;
    line-height: 1.3;

    font-weight: 500;
}

.review-customer span {
    color: #222222;

    font-size: 12px;
    line-height: 1.3;
}


/* =========================================================
   ROUTE
========================================================= */

.review-route {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-top: 0.5rem;

    color: #242f67;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.review-route>span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-route .fi {
    width: 15px;
    height: 11px;

    display: inline-block;

    background-size: cover;
    background-position: center;

    border-radius: 1px;
}

.review-route>i {
    font-size: 12px;
}


/* =========================================================
   TRANSPORT
========================================================= */

.review-transport {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-top: 9px;

    color: #242f67;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.review-transport i {
    font-size: 13px;
}


/* =========================================================
   ARROWS
========================================================= */

.review-arrow {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 20;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: #dfe2e7;
    color: #242f67;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.review-arrow:hover {
    background: #242f67;
    color: #ffffff;
}

.review-arrow-left {
    left: 8px;
}

.review-arrow-right {
    right: 8px;
}

.review-arrow:disabled {
    opacity: 0.45;
    cursor: default;
}


/* =========================================================
   DOTS
========================================================= */

.review-dots {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: -34px;

    position: relative;
    z-index: 10;
}

.review-dot {
    width: 13px;
    height: 13px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: #d9d9d9;

    cursor: pointer;

    transition: background 0.2s ease;
}

.review-dot.active {
    background: #b8b8b8;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .customer-reviews-section {
        padding: 35px 14px 45px;
    }

    .customer-reviews-container {
        width: 100%;
    }


    /* HEADER */

    .reviews-header {
        margin-bottom: 22px;
    }

    .reviews-header h2 {
        font-size: 23px;
    }

    .reviews-header p {
        font-size: 14px;
        line-height: 1.45;
    }


    /* TABS */

    .review-tabs {
        grid-template-columns: 1fr;
        gap: 10px;

        margin-bottom: 25px;
    }

    .review-tab {
        min-height: 48px;

        font-size: 14px;
    }


    /* CAROUSEL */

    .reviews-carousel {
        padding: 0;
    }

    .reviews-viewport {
        padding: 28px 18px 48px;

        overflow-x: hidden;
    }

    .reviews-track {
        gap: 12px;
    }


    /* CARD */

    .review-card {
        flex: 0 0 100%;
        width: 100%;

        height: 210px;
        min-height: 210px;
    }


    /* ARROWS */

    .review-arrow {
        width: 38px;
        height: 38px;

        font-size: 13px;
    }

    .review-arrow-left {
        left: -6px;
    }

    .review-arrow-right {
        right: -6px;
    }


    /* DOTS */

    .review-dots {
        margin-top: -31px;
    }

}

