
/*FPT Service V2*/
.fpt-card {
    max-width: 380px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===== Header Image ===== */

/* Image */
.fpt-card-image img {
    width: 100%;
    height: 238px;
    object-fit: cover;
    display: block;
}

/* Header */
.fpt-card-header {
    padding: 18px 24px 10px;
}

.fpt-badge {
    display: inline-block;
    background: #fff7ed;
    color: #f97316;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.fpt-card-header .fpt-card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.45;
    color: #111827;
    font-weight: 700;
}

/* ===== Body ===== */
.fpt-card-body {
    padding: 0 24px;
}

/* Price */
.fpt-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 16px;
}

.fpt-price .price {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
}

.fpt-price .unit {
    font-size: 14px;
    color: #6b7280;
}

/* Speed */
.fpt-speed {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F7F7F8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.speed-item span {
    font-size: 12px;
    color: #6b7280;
}

.speed-item strong {
    display: block;
    font-size: 14px;
    color: #111827;
}

.speed-arrow {
    font-size: 18px;
    color: #fb923c;
}

/* Feature list (scroll) */
.feature-scroll-wrapper {
    position: relative;
}

/* fake scrollbar track */
.ios-scrollbar {
    position: absolute;
    top: 4px;
    right: 2px;
    width: 3px;
    height: calc(100% - 8px);
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    pointer-events: none;
}

/* fake thumb */
.ios-scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px; /* sẽ được JS tính lại */
    background: rgba(0, 0, 0, 0.35);
    border-radius: 4px;
    transform: translateY(0);
}

.ios-scrollbar {
    display: none;
}

/* khi user scroll -> ẩn fake */
.is-scrolling .ios-scroll-thumb {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .ios-scrollbar {
        display: block;
    }
}

@supports (-webkit-touch-callout: none) {
    .ios-scroll-indicator {
        display: block;
    }
}

.fpt-feature-list {
    max-height: 85px;
    overflow-y: auto;
    padding-right: 10px;
    margin: 0;
    list-style: none;
}

.fpt-feature-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
    text-align: left;
}

.fpt-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background-image: url('../img/icon/icon-check-green.svg'); /* xanh */
    background-size: contain;
    background-repeat: no-repeat;
}

/* Custom scrollbar */
.fpt-feature-list::-webkit-scrollbar {
    width: 6px;
}

.fpt-feature-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.fpt-feature-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #fb923c, #f97316);
    border-radius: 10px;
}

/* ===== Footer ===== */
.fpt-card-footer {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-primary {
    display: block;
    text-align: center;
    background: #2563eb;
    color: #fff;
    padding: 17px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.btn-link {
    text-align: center;
    font-size: 16px;
    color: #2563eb;
    text-decoration: none;
    display: block;
    background: #F3F3F3;
    padding: 17px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.main_internet .slider_internet .slick-slide , .main_package .silder_package .slick-slide{
    margin: 12px;
}

/*.main_banner_v2 .slider_item .slick-slide{*/
/*    height: 100vh;*/
/*    position: relative;*/
/*}*/

/*.main_banner_v2 img {*/
/*    position: absolute;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    object-fit: cover;*/
/*    object-position: center center;*/
/*}*/

/* Overlay trắng */
.main_banner_v2 .slick-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(243, 243, 243, 0) 76.22%, #F3F3F3 100%);
    pointer-events: none;
    z-index: 2;
}

.fpt_card {
    margin: 0;
    background: #F3F3F3;
    padding: 24px;
    max-width: 100%;
    width: 100%;
}

.fpt_card_content {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 24px;
    max-width: 1440px;
    margin: auto;
}

.fpt_card_title {
    margin-bottom: 12px;
    text-align: center;
    padding: 0 12px;
    display: flex;
    flex-direction: column;
}

.fpt_card_title h2{
    font-size: 28px;
    font-weight: 700;
    line-height: 40px;
    color: #3D3D3D;
    text-align: center;
    margin: 0;
}

.fpt_card_title p {
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
}

.main_news .fpt_card_title {
    margin-bottom: 18px;
}

.fpt-speed-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    gap: 16px;
    margin-bottom: 16px;
}

/* Left */
.fpt-speed-left {
    flex: 1;
}

.fpt-speed-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.fpt-speed-values {
    display: flex;
    align-items: center;
    gap: 16px;
}

.speed-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #111827;
}

.speed-item strong {
    font-weight: 700;
}

/* Arrow styles */
.speed-item.down .arrow {
    color: #6b7280;
}

.speed-item.up .arrow {
    color: #6b7280;
}

/* Right icon */
.fpt-speed-right {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrapper */
.fpt-tabs {
    width: 100%;
}

/* Tab list */
.fpt-tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    /*margin-bottom: 24px;*/
    justify-content: center;
}

/* Tab item */
.fpt-tab {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

/* Hover */
.fpt-tab:hover {
    background: #f8fafc;
}

/* Active tab */
.fpt-tab.active {
    border-color: #3b82f6;
    background: #eef2ff;
    color: #2563eb;
    font-weight: 600;
}

/* Content */
.fpt-tab-content {
    width: 100%;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.slider_package {
    visibility: hidden;
}

.slider_package.slick-initialized {
    visibility: visible;
}

.slider_package .slick-slide {
    margin: 12px;
}

/* Wrapper */
.slider-wrapper {
    position: relative;
}

/* Skeleton container */
.slider-skeleton {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    z-index: 10;
}

/* Skeleton item */
.skeleton-item {
    height: 400px;
    border-radius: 16px;
    background: linear-gradient(
            90deg,
            #f1f5f9 25%,
            #e5e7eb 37%,
            #f1f5f9 63%
    );
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
}

/* Skeleton animation */
@keyframes skeleton-loading {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* Hide slider before slick init */
.slider-wrapper.is-loading .slider_package {
    opacity: 0;
    visibility: hidden;
}

/* After slick ready */
.slider-wrapper.is-ready .slider-skeleton {
    display: none;
}

.slider-wrapper.is-ready .slider_package {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

/*FPT Wizard*/
.fpt-survey-widget {
    padding: 80px 16px;
    background-image: url("https://fpt.vn/frontend_layout_2025_vibecode/assets/images/suggest-data/background/upscale_image.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.fpt-survey-widget::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(128, 55, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

.fpt-survey-container {
    max-width: 1440px;
    margin: auto;
    position: relative;
    z-index: 10;
}

.fpt-survey-header h2 {
    color: #fff;
    text-align: center;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 60px;
    font-size: 32px;
}

.fpt-survey-content {
    position: relative;
    margin: 0 auto;
    border-radius: 24px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 25px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.fpt-survey-decor-img {
    position: absolute;
    top: -44px;
    left: -73px;
    width: 20%;
    max-width: 320px;
    transform: rotate(-45deg);
    z-index: 4;
    pointer-events: none;
}

.fpt-survey-step-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fpt-survey-step-indicator.is-hidden {
    opacity: 0;
    transform: translate(-50%, -20px) scale(0.9);
    pointer-events: none;
}

.fpt-survey-widget .progress-ring__circle {
    transition: stroke-dashoffset 0.7s ease-in-out;
    transform: rotate(-90deg);
    transform-origin: 68px 66px;
}

.fpt-survey-step {
    display: none;
    text-align: center;
}

.fpt-survey-step.is-active {
    display: block;
}

.fpt-survey-question {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.5;
}

.fpt-survey-description {
    margin-bottom: 10px;
}

.fpt-survey-description,
.fpt-survey-note {
    color: rgba(255,255,255,.9);
    font-size: 16px;
    font-weight: 500;
}

.fpt-survey-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.fpt-survey-option {
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    transition: .25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 220px;
    min-height: 180px;
    padding: 30px 20px;
    text-align: center;
}

.fpt-survey-option.is-active {
    outline: 2px solid #4564ED;
}

.fpt-survey-option-icon img{
    width: 72px;
    height: 72px;
    object-fit: contain;
    max-width: 100%;
}

.fpt-survey-option h4 {
    margin: 10px 0;
    color: #3D3D3D;
    font-weight: 700;
    font-size: 16px;;
    line-height: 1.4;
}

.fpt-survey-checkbox,
.fpt-survey-radio {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
}

.fpt-survey-option.is-active .fpt-survey-checkbox,
.fpt-survey-option.is-active .fpt-survey-radio {
    background: #4564ED;
    border-color: #4564ED;
}

.fpt-survey-actions {
    margin-top: 32px;
}

.fpt-btn-next,
.fpt-btn-restart {
    background: #4564ED;
    color: #fff;
    border: 0;
    border-radius: 32px;
    padding: 12px 32px;
    cursor: pointer;
}

.fpt-btn-next:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.fpt-survey-loading,
.fpt-survey-error,
.fpt-survey-empty
{
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    padding: 40px 0;
    color: #ffff;
    width: 100%;
}

.fpt-survey-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, max-content));

    gap: 30px;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 45px 0 20px;
}

.fpt-survey-packages .fpt-card-header .fpt-card-title {
    text-align: left;
}

.fpt-speed-right img {
}

.recommended-speed {
    font-size: 24px;
    color: #4564ED;
    font-weight: 700;
}

/*FPT Wizard*/

@media (max-width: 1024px) {
    .slider-skeleton {
        grid-template-columns: repeat(3, 1fr);
    }

    .fpt-survey-packages {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .fpt-tab-list {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;

        overflow-x: auto;
        overflow-y: hidden;

        padding: 6px 12px 10px;
        margin: 0; /* kéo tab cân đều hai bên */

        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        justify-content: flex-start;
    }

    /* Ẩn scrollbar Chrome / Safari */
    .fpt-tab-list::-webkit-scrollbar {
        display: none;
    }

    .fpt-tab-list::-webkit-scrollbar {
        height: 4px;
    }

    .fpt-tab-list::-webkit-scrollbar-thumb {
        background: #e5e7eb;
        border-radius: 999px;
    }

    .slider-skeleton {
        grid-template-columns: repeat(2, 1fr);
    }

    .fpt-survey-decor-img {
        display: none;
    }

    .fpt-survey-header h2 {
        font-size: 24px;
    }

    .fpt-survey-question {
        font-size: 18px;
    }

}

@media(max-width:640px){
    /*.fpt-survey-options{*/
    /*    grid-template-columns: 1fr;*/
    /*}*/

    .fpt-survey-packages {
        display: flex;
        overflow-x: auto;
        gap: 16px;
        padding: 20px 16px;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .fpt-survey-packages::-webkit-scrollbar {
        display: none;
    }

    .fpt-survey-packages .fpt-card {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: start;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .fpt-card {
        max-width: 100%;
    }

    .fpt_card_content {
        padding: 0;
        background: none;
    }
    .fpt_card {
        padding: 24px 0;
    }

    .slider-skeleton {
        grid-template-columns: 1fr;
    }

    .fpt_card_title {
        gap: 10px;
    }

    .fpt_card_title h2 {
        font-size: 20px;
        line-height: 24px;
    }

    .fpt_card_title p {
        font-size: 14px;
        line-height: 22px;
    }

    .fpt-survey-option-icon img {
        width: 60px;
        height: 60px;
    }

    .fpt-survey-option {
        width: calc(50% - 6px);
        max-width: 160px;
        min-height: 120px;
        padding: 16px 12px;
    }

    .fpt-survey-options {
        gap: 10px;
    }

    .fpt-survey-option h4 {
        font-size: 12px;
    }

    .fpt-survey-packages {
        padding: 15px 0 20px;
    }

    .recommended-speed {
        font-size: 16px;
    }
}

/*End Fpt Service V2*/