/**
 * Support Pages Color Overrides - Signature Theme
 * Overrides hcm-online.css blue colors to match Signature theme orange primary
 */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.support--title .copy-link.copied {
    background-color: rgba(245, 96, 17, 0.1) !important;
    color: #F56011 !important;
}

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

.support--useful .row-links a:hover {
    background: rgba(245, 96, 17, 0.1) !important;
    color: #F56011 !important;
}

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

/* Table links if any */
.support--content table a {
    color: #F56011 !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 bottom, #ff8f4b 0%, #ff5c00 100%) !important;
}

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

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

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

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

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

/* =============================================
 * PADDING ALIGNMENT WITH HEADER
 * Match header padding: 240px horizontal
 * ============================================= */

/* Main wrapper - remove default padding */
.main-wrapper {
    padding: 0 !important;
}

/* Tabs container - add 240px padding to match header */
.hyper-fast-support.tab-wrapper .tabs-container {
    max-width: 1440px;
    margin: 0 auto;
}

/* ==========================================================================
   SUCCESS MODAL POPUP
   ========================================================================== */

.success-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.success-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-modal {
    background: #FFFFFF;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(30px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal-overlay.show .success-modal {
    transform: scale(1) translateY(0);
}

.success-modal__icon {
    margin-bottom: 24px;
}

.success-modal__icon svg {
    width: 80px;
    height: 80px;
}

.success-modal__title {
    font-family: var(--font-primary, 'SF Pro', sans-serif);
    font-size: 24px;
    font-weight: 700;
    color: #252525;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.success-modal__message {
    font-family: var(--font-primary, 'SF Pro', sans-serif);
    font-size: 16px;
    font-weight: 400;
    color: #666666;
    margin: 0 0 32px 0;
    line-height: 1.5;
}

.success-modal__button {
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, #FF8F4B 0%, #FF5C00 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-family: var(--font-primary, 'SF Pro', sans-serif);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-modal__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 92, 0, 0.4);
}

.success-modal__button:active {
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 767px) {
    .success-modal {
        width: 92%;
        padding: 32px 24px;
        border-radius: 20px;
    }

    .success-modal__icon svg {
        width: 64px;
        height: 64px;
    }

    .success-modal__title {
        font-size: 20px;
    }

    .success-modal__message {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .success-modal__button {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* =============================================
   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;
    }
}