/**
 * Support Pages Color Overrides
 * Overrides hcm-online.css blue colors to match Basic theme green primary
 */

/* Tab List - Active state background */
.hyper-fast-support.tab-wrapper .tab-list li.active {
    background: rgba(64, 199, 6, 0.1) !important;
}

.hyper-fast-support.tab-wrapper .tab-list li.active a {
    color: #40C706 !important;
}

.hyper-fast-support.tab-wrapper .tab-list li a {
    color: #3D3D3D;
}

.hyper-fast-support.tab-wrapper .tab-list li:hover {
    color: #40C706 !important;
}

.hyper-fast-support.tab-wrapper .tab-list li:hover a {
    color: #40C706 !important;
}

/* Support content links - Override #4564ED */
.support--content .link,
.support--content .color-blue {
    color: #40C706 !important;
}

.support--content a {
    color: #40C706 !important;
}

.support--content a:hover {
    color: #34AD00 !important;
}

/* Call hotline hover state - Override #4564ED */
.support--content .call-hotline:hover {
    color: #40C706 !important;
}

/* Call hotline link */
.support--call-hotline a,
p.support--call-hotline a {
    color: #40C706 !important;
    font-weight: 700;
}

.support--call-hotline a:hover,
p.support--call-hotline a:hover {
    color: #34AD00 !important;
}

/* View packages link - Override #4564ED */
.new-title-label.title-location .view-packages {
    color: #40C706 !important;
}

.new-title-label.title-location .view-packages:hover {
    color: #34AD00 !important;
}

/* Copy link button hover state */
.support--title .copy-link:hover {
    background-color: rgba(64, 199, 6, 0.1) !important;
}

.support--title .copy-link.copied {
    background-color: rgba(64, 199, 6, 0.1) !important;
    color: #40C706 !important;
}

/* Support useful box */
.support--useful:hover {
    border-color: #40C706 !important;
}

.support--useful .row-links a:hover {
    background: rgba(64, 199, 6, 0.1) !important;
    color: #40C706 !important;
}

/* Form elements focus state */
.hyper-fast-support input:focus,
.hyper-fast-support select:focus,
.hyper-fast-support textarea:focus {
    border-color: #40C706 !important;
    outline-color: #40C706 !important;
}

/* Table links if any */
.support--content table a {
    color: #40C706 !important;
}

/* Banner content - white text */
.wrap-banner-content {
    color: #FFFFFF !important;
}

.wrap-banner-content .title {
    color: #FFFFFF !important;
}

.wrap-banner-content .decription {
    color: #FFFFFF !important;
}

.wrap-banner-content .box-search .btn-search {
    background: linear-gradient(to right, #40C706, #34AD00) !important;
}

.wrap-banner-content .box-search .btn-search:hover {
    background: linear-gradient(135deg, #34AD00 0%, #2d9600 100%) !important;
}

/* Document box links */
.support--content .box-documents a {
    color: #40C706 !important;
}

.support--content .box-documents a:hover {
    color: #34AD00 !important;
    text-decoration: underline;
}

/* Form button overrides - Override #4564ED */
.form--hcm-online .content-block .btn-register-internet .btn-link {
    color: #40C706 !important;
}

.form--hcm-online .content-block .btn-register-internet .btn-link:hover,
.form--hcm-online .content-block .btn-register-internet .btn-link:focus {
    color: #34AD00 !important;
}

/* =============================================
   Mobile Responsive Fixes for Support Pages
   ============================================= */

/* Tab content - full width on mobile */
@media screen and (max-width: 768px) {
    .hyper-fast-support.tab-wrapper .tab-content {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hyper-fast-support.tab-wrapper .tab-pane {
        width: 100% !important;
    }

    /* Support title - stack on mobile */
    .support--title {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-right: 0 !important;
        gap: 12px;
    }

    .support--title .copy-link {
        position: relative !important;
        right: auto !important;
        top: auto !important;
    }

    /* Support content - better spacing on mobile */
    .support--content {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Scrollable table container */
    .support--content {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .support--content table {
        min-width: 600px !important;
        width: 100% !important;
        border-collapse: collapse;
    }

    .support--content table td,
    .support--content table th {
        padding: 10px 12px;
        vertical-align: top;
    }

    /* Box documents scrollable */
    .support--content .box-documents {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    .support--content .box-documents .document-rows {
        min-width: 500px;
    }

    .support--content img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Box documents - responsive padding */
    .support--content .box-documents .document-rows {
        padding: 16px 20px;
    }

    /* Support useful box - full width */
    .support--useful {
        min-width: 100% !important;
        width: 100% !important;
    }

    .support--useful .row-links {
        flex-wrap: wrap;
    }

    .support--useful .row-links a {
        width: calc(50% - 9px) !important;
    }
}

@media screen and (max-width: 540px) {
    .support--title .title-name {
        font-size: 18px !important;
        line-height: 26px !important;
    }

    .support--content {
        font-size: 15px;
    }

    .support--content .box-documents .document-rows {
        padding: 12px 16px;
    }
}