
/* ==========================================
   MARKETERMS - SERVICES PAGE
   Professional blue design
========================================== */

:root {
    --mt-navy: #101B35;
    --mt-blue: #315EEA;
    --mt-blue-dark: #2449C5;
    --mt-white: #FFFFFF;
    --mt-bg: #F4F7FC;
    --mt-text: #26334D;
    --mt-muted: #718096;
    --mt-border: #E5EAF3;
}

/* Main page */

.mt-services-page {
    margin-top: 28px;
    margin-bottom: 30px;
    color: var(--mt-text);
}

/* Toolbar */

.mt-services-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 22px;
}

.mt-services-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.mt-filter-button,
.mt-currency-button {
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 9px;
    background: var(--mt-navy);
    border-color: var(--mt-navy);
    color: var(--mt-white);
    font-weight: 600;
}

.mt-filter-button:hover,
.mt-filter-button:focus,
.mt-currency-button:hover,
.mt-currency-button:focus {
    background: var(--mt-blue);
    border-color: var(--mt-blue);
    color: var(--mt-white);
}

/* Dropdown menus */

.mt-filter-menu {
    min-width: 200px;
    padding: 7px;
    border: 1px solid var(--mt-border);
    border-radius: 11px;
    box-shadow: 0 10px 30px rgba(16, 27, 53, 0.12);
}

.mt-filter-menu li a {
    display: block;
    padding: 10px 12px;
    border-radius: 7px;
    color: var(--mt-text);
}

.mt-filter-menu li a:hover,
.mt-filter-menu li.active a {
    background: #EEF3FF;
    color: var(--mt-blue);
}

.mt-category-icon {
    display: inline-block;
    max-width: 22px;
    max-height: 22px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Search */

.mt-services-search {
    width: 320px;
    max-width: 100%;
}

.mt-services-search .input-group {
    width: 100%;
}

.mt-services-search .form-control {
    height: 44px;
    border: 1px solid var(--mt-border);
    border-radius: 9px 0 0 9px;
    box-shadow: none;
    padding: 10px 14px;
}

.mt-services-search .form-control:focus {
    border-color: var(--mt-blue);
    box-shadow: 0 0 0 3px rgba(49, 94, 234, 0.10);
}

.mt-services-search .btn {
    height: 44px;
    width: 48px;
    background: var(--mt-blue);
    border-color: var(--mt-blue);
    color: var(--mt-white);
    border-radius: 0 9px 9px 0;
}

/* Main card */

.mt-services-card {
    background: var(--mt-white);
    border: 1px solid var(--mt-border);
    border-radius: 15px;
    box-shadow: 0 8px 28px rgba(16, 27, 53, 0.06);
    overflow: hidden;
}

/* Card heading */

.mt-services-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--mt-border);
}

.mt-services-card-header h3 {
    margin: 0 0 6px;
    color: var(--mt-navy);
    font-size: 19px;
    font-weight: 700;
}

.mt-services-card-header p {
    margin: 0;
    color: var(--mt-muted);
    font-size: 13px;
}

.mt-services-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: #EEF3FF;
    color: var(--mt-blue);
    font-size: 19px;
}

/* Table wrapper */

.mt-services-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mt-services-table-wrapper .table {
    width: 100%;
    min-width: 680px;
    margin: 0;
    border-collapse: collapse;
}

/* Table headings */

.mt-services-table-wrapper .table thead th {
    padding: 15px 13px;
    background: #F4F7FC;
    color: var(--mt-navy);
    border-bottom: 1px solid var(--mt-border);
    border-top: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

/* Table body */

.mt-services-table-wrapper .table tbody td {
    padding: 14px 13px;
    border-top: 1px solid #EDF0F6;
    color: var(--mt-text);
    font-size: 13px;
    vertical-align: middle;
}

.mt-services-table-wrapper .mt-service-row {
    transition: background 0.2s ease;
}

.mt-services-table-wrapper .mt-service-row:hover {
    background: #F8FAFF;
}

/* Category rows */

.mt-services-table-wrapper .mt-category-row td {
    padding: 14px 16px;
    background: #EEF3FF;
    color: var(--mt-navy);
    border-top: 1px solid #DCE6FF;
    border-bottom: 1px solid #DCE6FF;
    font-size: 14px;
    font-weight: 700;
}

.mt-services-table-wrapper .mt-category-row strong {
    margin-left: 5px;
}

/* Service names and rates */

.mt-services-table-wrapper .service-name {
    min-width: 190px;
    color: var(--mt-navy);
    font-weight: 600;
    line-height: 1.5;
}

.mt-services-table-wrapper .mt-service-rate {
    color: var(--mt-blue);
    font-weight: 700;
    white-space: nowrap;
}

.mt-services-table-wrapper .nowrap {
    white-space: nowrap;
}

/* Favorites */

.mt-favorite-column {
    width: 42px;
    text-align: center;
}

.mt-services-table-wrapper [data-favorite-service-id] {
    display: inline-block;
    padding: 5px;
    cursor: pointer;
    color: #AAB4C5;
    font-size: 16px;
}

.mt-services-table-wrapper [data-favorite-service-id]:hover,
.mt-services-table-wrapper .favorite-active {
    color: #F3B52B;
}

/* Description button */

.mt-description-button {
    padding: 7px 11px;
    border-radius: 7px;
    background: #EEF3FF;
    border: 1px solid #DCE6FF;
    color: var(--mt-blue);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.mt-description-button:hover,
.mt-description-button:focus {
    background: var(--mt-blue);
    border-color: var(--mt-blue);
    color: var(--mt-white);
}

/* Services text */

.mt-services-text {
    margin-bottom: 30px;
}

.mt-services-text .well {
    padding: 25px;
    border: 1px solid var(--mt-border);
    border-radius: 13px;
    background: var(--mt-white);
    box-shadow: 0 5px 20px rgba(16, 27, 53, 0.04);
}

/* RTL support */

.rtl-nav .mt-services-filters {
    direction: rtl;
}

.rtl-table {
    direction: rtl;
}

/* Mobile responsive */

@media (max-width: 767px) {

    .mt-services-page {
        margin-top: 15px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .mt-services-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .mt-services-filters {
        width: 100%;
    }

    .mt-filter-dropdown,
    .mt-currency-dropdown {
        flex: 1;
    }

    .mt-filter-button,
    .mt-currency-button {
        width: 100%;
        font-size: 12px;
        padding: 10px;
    }

    .mt-services-search {
        width: 100%;
    }

    .mt-services-card {
        border-radius: 11px;
    }

    .mt-services-card-header {
        padding: 16px;
    }

    .mt-services-card-header h3 {
        font-size: 16px;
    }

    .mt-services-card-header p {
        font-size: 12px;
    }

    .mt-services-header-icon {
        width: 38px;
        height: 38px;
    }

    .mt-services-table-wrapper .table {
        min-width: 680px;
    }

    .mt-services-table-wrapper .table thead th,
    .mt-services-table-wrapper .table tbody td {
        padding: 12px 10px;
        font-size: 12px;
    }

    .mt-services-text .well {
        padding: 17px;
    }
}

/* ==========================================
   MARKETERMS - NEW ORDER PAGE
========================================== */

.mt-order-page {
    margin-top: 30px;
    margin-bottom: 35px;
    color: #26334D;
}

.mt-order-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.mt-order-heading-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #EEF3FF;
    color: #315EEA;
    font-size: 22px;
}

.mt-order-heading h2 {
    margin: 0 0 6px;
    color: #101B35;
    font-size: 23px;
    font-weight: 750;
}

.mt-order-heading p {
    margin: 0;
    color: #718096;
    font-size: 13px;
}

.mt-order-card {
    background: #FFFFFF;
    padding: 30px;
    border: 1px solid #E5EAF3;
    border-radius: 17px;
    box-shadow: 0 10px 35px rgba(16, 27, 53, 0.07);
}

.mt-order-group {
    margin-bottom: 23px;
}

.mt-order-card label {
    display: block;
    color: #101B35;
    font-weight: 650;
    font-size: 13px;
    margin-bottom: 9px;
}

.mt-order-card label i {
    color: #315EEA;
    margin-right: 5px;
}

.mt-order-card .form-control {
    min-height: 48px;
    border: 1px solid #E2E8F2;
    border-radius: 10px;
    background: #FAFBFE;
    color: #26334D;
    box-shadow: none;
    padding: 11px 14px;
    font-size: 14px;
}

.mt-order-card .form-control:focus {
    border-color: #315EEA;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(49, 94, 234, 0.10);
}

.mt-order-card .input-wrapper {
    position: relative;
}

.mt-order-card .mt-search-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #718096;
    padding: 0;
}

.mt-order-card #template-input {
    padding-left: 40px;
}

.mt-order-card .mt-service-description .panel-body {
    background: #F4F7FC;
    border: 1px solid #E5EAF3;
    border-radius: 10px;
    padding: 17px;
    color: #26334D;
    line-height: 1.7;
}

.mt-order-dynamic-fields .form-group {
    margin-bottom: 22px;
}

.mt-order-price-card {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    padding: 18px;
    background: #F0F4FF;
    border: 1px solid #DCE6FF;
    border-radius: 13px;
}

.mt-order-price-icon {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #315EEA;
    color: #FFFFFF;
    font-size: 19px;
}

.mt-order-price-content {
    flex: 1;
    min-width: 0;
}

.mt-order-price-content label {
    margin-bottom: 6px;
    color: #101B35;
}

.mt-order-price-content .form-control {
    min-height: 42px;
    background: #FFFFFF;
    color: #315EEA;
    font-weight: 750;
    font-size: 18px;
}

.mt-order-terms {
    padding: 15px;
    background: #F8FAFE;
    border: 1px solid #E5EAF3;
    border-radius: 10px;
}

.mt-order-terms .terms {
    margin: 0;
    line-height: 1.8;
    font-weight: 400;
}

.mt-order-terms input {
    margin-right: 6px;
}

.mt-order-terms a {
    color: #315EEA;
    font-weight: 650;
}

.mt-order-submit {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 11px;
    background: #315EEA;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(49, 94, 234, 0.20);
    transition: all 0.2s ease;
}

.mt-order-submit:hover,
.mt-order-submit:focus {
    background: #2449C5;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.mt-order-submit i {
    margin-right: 8px;
}

.mt-order-success {
    border-radius: 11px;
    padding: 18px;
    line-height: 1.9;
}

.mt-order-success h4 {
    font-weight: 700;
    margin-top: 0;
}

.mt-order-extra {
    margin-bottom: 30px;
}

.mt-order-extra .well {
    padding: 24px;
    border: 1px solid #E5EAF3;
    border-radius: 13px;
    background: #FFFFFF;
    box-shadow: 0 5px 20px rgba(16, 27, 53, 0.04);
}

/* Mobile */

@media (max-width: 767px) {
    .mt-order-page {
        margin-top: 18px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .mt-order-heading {
        gap: 11px;
    }

    .mt-order-heading-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .mt-order-heading h2 {
        font-size: 19px;
    }

    .mt-order-heading p {
        font-size: 12px;
        line-height: 1.5;
    }

    .mt-order-card {
        padding: 18px 15px;
        border-radius: 13px;
    }

    .mt-order-card .form-control {
        min-height: 46px;
    }

    .mt-order-price-card {
        padding: 14px;
    }

    .mt-order-submit {
        min-height: 49px;
    }
}

/* RTL */

.rtl-form .mt-order-heading {
    direction: rtl;
}

.rtl-form .mt-order-card {
    direction: rtl;
}

.rtl-form .mt-order-card label i {
    margin-right: 0;
    margin-left: 5px;
}

.rtl-form .mt-order-card #template-input {
    padding-left: 14px;
    padding-right: 40px;
}

.rtl-form .mt-order-card .mt-search-icon {
    left: auto;
    right: 13px;
}

/* =========================================
   MARKETERMS - BALANCE CARD
   Modern International Design
========================================= */

.mt-balance-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 19px 22px;
    margin: 0 0 22px;
    background: linear-gradient(120deg, #101B35, #24447D);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(16, 27, 53, 0.12);
    color: #FFFFFF;
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mt-balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(16, 27, 53, 0.18);
}

/* Wallet icon */

.mt-balance-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    font-size: 21px;
    color: #FFFFFF;
}

/* Balance information */

.mt-balance-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.mt-balance-label {
    font-size: 12px;
    color: #C5D5F5;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.mt-balance-amount {
    display: block;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: #FFFFFF;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mt-balance-caption {
    font-size: 11px;
    color: #B7C9EA;
    font-weight: 400;
}

/* Available status icon */

.mt-balance-status {
    margin-left: auto;
    font-size: 20px;
    color: #73E2AC;
    flex-shrink: 0;
}

[dir="rtl"] .mt-balance-status {
    margin-left: 0;
    margin-right: auto;
}

/* Mobile responsive */

@media (max-width: 480px) {
    .mt-balance-card {
        padding: 15px;
        gap: 12px;
        margin-bottom: 18px;
        border-radius: 13px;
    }

    .mt-balance-icon {
        width: 42px;
        height: 42px;
        min-width: 42px;
        font-size: 18px;
    }

    .mt-balance-amount {
        font-size: 21px;
    }

    .mt-balance-label {
        font-size: 11px;
    }

    .mt-balance-caption {
        font-size: 10px;
    }
}

/* Small screen protection */

@media (max-width: 340px) {
    .mt-balance-card {
        gap: 9px;
        padding: 12px;
    }

    .mt-balance-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 16px;
    }

    .mt-balance-amount {
        font-size: 18px;
    }
}

/* =========================================
   MARKETERMS - MODERN NAVIGATION
========================================= */

.mt-navbar {
    background: #FFFFFF;
    border: none;
    border-bottom: 1px solid #E9EDF5;
    border-radius: 0;
    margin-bottom: 24px;
    min-height: 70px;
    box-shadow: 0 4px 18px rgba(16, 27, 53, 0.05);
    z-index: 1000;
}

.mt-navbar .container-fluid,
.mt-navbar .container {
    min-height: 70px;
}

/* BRAND */

.mt-navbar .navbar-brand {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #101B35;
    font-weight: 800;
    font-size: 20px;
}

.mt-navbar .navbar-brand img {
    max-height: 46px;
    max-width: 190px;
    width: auto;
    object-fit: contain;
}

/* MENU LINKS */

.mt-navbar .navbar-nav > li > a {
    color: #526078;
    font-size: 13px;
    font-weight: 600;
    padding: 25px 13px;
    transition: all 0.2s ease;
}

.mt-navbar .navbar-nav > li > a:hover,
.mt-navbar .navbar-nav > li > a:focus {
    color: #315EEA;
    background: #F4F7FC;
}

.mt-navbar .navbar-nav > li.active > a,
.mt-navbar .navbar-nav > li.active > a:hover,
.mt-navbar .navbar-nav > li.active > a:focus {
    color: #315EEA;
    background: #EEF3FF;
}

/* MENU ICONS */

.mt-navbar .navbar-icon {
    margin-right: 6px;
    font-size: 14px;
    color: #315EEA;
}

.mt-navbar .navbar-nav > li > a:hover .navbar-icon {
    color: #2447BC;
}

/* BALANCE */

.mt-navbar .mt-balance-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    padding: 11px 15px !important;
    background: #EEF3FF !important;
    color: #2447BC !important;
    border: 1px solid #DCE6FF;
    border-radius: 10px;
    font-weight: 700 !important;
}

.mt-navbar .mt-balance-trigger:hover {
    background: #E2EAFF !important;
}

.mt-navbar .mt-balance-trigger .fas {
    font-size: 15px;
}

.mt-navbar .mt-balance-trigger .caret {
    margin-left: 3px;
}

.mt-navbar .dropdown-menu {
    border: 1px solid #E9EDF5;
    border-radius: 10px;
    padding: 6px;
    box-shadow: 0 10px 25px rgba(16, 27, 53, 0.10);
}

.mt-navbar .dropdown-menu > li > a {
    padding: 10px 13px;
    border-radius: 7px;
    color: #526078;
    font-size: 13px;
}

.mt-navbar .dropdown-menu > li > a:hover {
    color: #315EEA;
    background: #F4F7FC;
}

/* MOBILE BUTTON */

.mt-navbar .mt-navbar-toggle {
    border: 1px solid #E1E7F1;
    border-radius: 9px;
    margin-top: 17px;
    margin-bottom: 17px;
    background: #FFFFFF;
}

.mt-navbar .mt-navbar-toggle:hover,
.mt-navbar .mt-navbar-toggle:focus {
    background: #F4F7FC;
}

.mt-navbar .mt-navbar-toggle .icon-bar {
    background: #315EEA;
    border-radius: 3px;
}

/* RTL */

[dir="rtl"] .mt-navbar .navbar-icon {
    margin-right: 0;
    margin-left: 6px;
}

/* MOBILE RESPONSIVE */

@media (max-width: 767px) {

    .mt-navbar {
        min-height: 60px;
        margin-bottom: 18px;
    }

    .mt-navbar .container,
    .mt-navbar .container-fluid {
        min-height: 60px;
    }

    .mt-navbar .navbar-brand {
        height: 60px;
        padding: 10px 15px;
        font-size: 18px;
    }

    .mt-navbar .navbar-brand img {
        max-height: 40px;
        max-width: 160px;
    }

    .mt-navbar .navbar-toggle {
        margin-top: 13px;
        margin-bottom: 13px;
    }

    .mt-navbar .navbar-collapse {
        background: #FFFFFF;
        border-top: 1px solid #E9EDF5;
        box-shadow: 0 8px 16px rgba(16, 27, 53, 0.05);
    }

    .mt-navbar .navbar-nav {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .mt-navbar .navbar-nav > li > a {
        padding: 13px 16px;
        border-radius: 8px;
    }

    .mt-navbar .mt-balance-trigger {
        display: flex;
        width: fit-content;
        margin: 8px 12px 12px;
    }

    .mt-navbar .dropdown-menu {
        box-shadow: none;
        border: none;
        padding-left: 12px;
    }
}
