/* =========================================================================
 * Services, Trust Metrics, Process, Tech Toggle & FAQ Styles
 * Compatible with Hektor Light & Dark Mode (body.tt-dark-mode-on)
 * Responsive down to 375px mobile width (no horizontal overflow)
 * ========================================================================= */

.sv-equal-row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
}

.sv-equal-col {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

/* 1. Trust Metrics Bar */
.sv-trust-section {
    background: var(--tt-accent-bg-color, #f1efe9);
    border-bottom: 1px solid var(--tt-border-color, #16171a);
    padding: 36px 0 12px;
}

body.tt-dark-mode-on .sv-trust-section {
    background: rgba(255, 255, 255, 0.02);
    border-bottom-color: rgba(233, 230, 222, 0.14);
}

.sv-trust-card {
    border: 1px solid var(--tt-border-color, #16171a);
    background: var(--tt-bg-color, #e9e6de);
    padding: 22px 18px;
    border-radius: 4px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.tt-dark-mode-on .sv-trust-card {
    border-color: rgba(233, 230, 222, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.sv-trust-card:hover {
    border-color: var(--tt-main-color, #9d2e13);
    transform: translateY(-3px);
}

.sv-trust-icon {
    font-size: 20px;
    color: var(--tt-main-color, #9d2e13);
    margin-bottom: 10px;
}

.sv-trust-title {
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 6px;
    color: var(--tt-text-color);
}

.sv-trust-desc {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--tt-text-muted-color);
    margin: 0;
}

/* 2. Services Cards */
.sv-card {
    border: 1px solid var(--tt-border-color, #16171a);
    background: var(--tt-bg-color, #e9e6de);
    border-radius: 4px;
    padding: 28px 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.tt-dark-mode-on .sv-card {
    border-color: rgba(233, 230, 222, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.sv-card:hover {
    border-color: var(--tt-main-color, #9d2e13);
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.07);
}

body.tt-dark-mode-on .sv-card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}

.sv-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 4px;
    background: rgba(157, 46, 19, 0.1);
    color: var(--tt-main-color, #9d2e13);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}

body.tt-dark-mode-on .sv-card-icon {
    background: rgba(157, 46, 19, 0.22);
    color: #ff8a65;
}

.sv-card-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px;
    color: var(--tt-text-color);
}

.sv-card-fit {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--tt-text-muted-color);
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(22, 23, 26, 0.18);
}

body.tt-dark-mode-on .sv-card-fit {
    border-bottom-color: rgba(233, 230, 222, 0.16);
}

.sv-deliverables {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.sv-deliverables li {
    position: relative;
    padding-left: 22px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--tt-text-color);
    margin-bottom: 10px;
}

.sv-deliverables li:last-child {
    margin-bottom: 0;
}

.sv-deliverables li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 12px;
    color: var(--tt-main-color, #9d2e13);
}

body.tt-dark-mode-on .sv-deliverables li::before {
    color: #ff8a65;
}

.sv-card-footer {
    border-top: 1px solid rgba(22, 23, 26, 0.12);
    padding-top: 16px;
    margin-top: auto;
}

body.tt-dark-mode-on .sv-card-footer {
    border-top-color: rgba(233, 230, 222, 0.14);
}

.sv-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tt-main-color, #9d2e13);
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

body.tt-dark-mode-on .sv-card-link {
    color: #ff8a65;
}

.sv-card-link:hover {
    color: #d5350e;
    transform: translateX(3px);
}

.sv-commitment-bar {
    margin-top: 16px;
    padding: 18px 24px;
    border: 1px dashed var(--tt-main-color, #9d2e13);
    background: rgba(157, 46, 19, 0.06);
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    color: var(--tt-text-color);
}

body.tt-dark-mode-on .sv-commitment-bar {
    background: rgba(157, 46, 19, 0.14);
    border-color: rgba(255, 138, 101, 0.5);
}

/* 3. Process Section */
.sv-process-card {
    border: 1px solid var(--tt-border-color, #16171a);
    background: var(--tt-bg-color, #e9e6de);
    border-radius: 4px;
    padding: 26px 22px;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

body.tt-dark-mode-on .sv-process-card {
    border-color: rgba(233, 230, 222, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.sv-process-card:hover {
    border-color: var(--tt-main-color, #9d2e13);
    transform: translateY(-4px);
}

.sv-step-num {
    display: inline-block;
    background: var(--tt-main-color, #9d2e13);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.sv-step-title {
    font-size: 17.5px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 10px;
    color: var(--tt-text-color);
}

.sv-step-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--tt-text-muted-color);
    margin: 0;
}

/* 4. Section 01 Tech Stack Details Toggle */
.sv-tech-details {
    margin-top: 8px;
}

.sv-tech-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin: 0 auto;
    padding: 10px 22px;
    border: 1px solid var(--tt-border-color, #16171a);
    background: var(--tt-bg-color, #e9e6de);
    border-radius: 4px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--tt-text-color);
    transition: all 0.25s ease;
    user-select: none;
}

.sv-tech-summary::-webkit-details-marker {
    display: none;
}

body.tt-dark-mode-on .sv-tech-summary {
    border-color: rgba(233, 230, 222, 0.25);
    background: rgba(255, 255, 255, 0.04);
}

.sv-tech-summary:hover {
    border-color: var(--tt-main-color, #9d2e13);
    color: var(--tt-main-color, #9d2e13);
}

body.tt-dark-mode-on .sv-tech-summary:hover {
    border-color: #ff8a65;
    color: #ff8a65;
}

.sv-tech-summary .sv-chevron {
    transition: transform 0.25s ease;
    font-size: 12px;
    color: var(--tt-main-color, #9d2e13);
}

.sv-tech-details[open] .sv-tech-summary .sv-chevron {
    transform: rotate(180deg);
}

/* 5. FAQ Accordion */
.sv-faq-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.sv-faq-item {
    border: 1px solid var(--tt-border-color, #16171a);
    background: var(--tt-bg-color, #e9e6de);
    border-radius: 4px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.25s ease;
}

body.tt-dark-mode-on .sv-faq-item {
    border-color: rgba(233, 230, 222, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.sv-faq-item[open] {
    border-color: var(--tt-main-color, #9d2e13);
}

.sv-faq-question {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--tt-text-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}

.sv-faq-question::-webkit-details-marker {
    display: none;
}

.sv-faq-question::after {
    content: "+";
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--tt-main-color, #9d2e13);
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

body.tt-dark-mode-on .sv-faq-question::after {
    color: #ff8a65;
}

.sv-faq-item[open] .sv-faq-question::after {
    content: "−";
}

.sv-faq-answer {
    padding: 0 24px 20px;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--tt-text-muted-color);
    border-top: 1px dashed rgba(22, 23, 26, 0.12);
    padding-top: 14px;
}

body.tt-dark-mode-on .sv-faq-answer {
    border-top-color: rgba(233, 230, 222, 0.14);
}

/* Mobile Responsive Adjustments (<= 575px & 375px viewport) */
@media (max-width: 575px) {
    .sv-trust-card {
        padding: 16px 12px;
    }
    .sv-trust-title {
        font-size: 14.5px;
    }
    .sv-trust-desc {
        font-size: 11.5px;
    }
    .sv-card,
    .sv-process-card {
        padding: 22px 18px;
    }
    .sv-faq-question {
        padding: 16px 18px;
        font-size: 15px;
    }
    .sv-faq-answer {
        padding: 12px 18px 18px;
        font-size: 13.5px;
    }
    .sv-commitment-bar {
        padding: 14px 16px;
        font-size: 13px;
    }
}

/* =========================================================================
 * 6. Header Mobile CTA & Desktop Submenu Alignment
 * ========================================================================= */
@media (min-width: 1025px) {
    .tt-header-btn .tt-btn-text-mobile {
        display: none !important;
    }
    .tt-main-menu-list > li:last-child > .tt-submenu {
        left: auto !important;
        right: 0 !important;
    }
}

@media (max-width: 1024px) {
    #tt-header.tt-header-alter .tt-header-col-left {
        flex: 0 1 auto !important;
    }
    #tt-header.tt-header-alter .tt-header-col-right {
        flex: 1 1 auto !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        align-items: center !important;
        gap: 8px !important;
    }
    .tt-header-btn {
        display: inline-flex !important;
        align-items: center !important;
    }
    .tt-header-btn .tt-btn-text-desktop {
        display: none !important;
    }
    .tt-header-btn .tt-btn-text-mobile {
        display: inline-flex !important;
    }
    #tt-header .tt-header-btn .tt-btn {
        margin: 0 !important;
        padding: 0 12px !important;
        height: 32px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        letter-spacing: 0.2px !important;
        white-space: nowrap !important;
        box-shadow: none !important;
    }
}

@media (max-width: 400px) {
    #tt-header.tt-header-alter .tt-header-col-right {
        gap: 6px !important;
    }
    #tt-header .tt-header-btn .tt-btn {
        padding: 0 10px !important;
        height: 30px !important;
        font-size: 11.5px !important;
    }
    .tt-m-menu-toggle-btn-text {
        font-size: 14px !important;
    }
    .tt-m-menu-toggle-btn {
        width: 34px !important;
        height: 34px !important;
    }
}

/* =========================================================================
 * 7. Floating Quick Contact Cluster (Zalo + Call) & Scroll-to-Top Offset
 * ========================================================================= */
.sv-floating-contact {
    position: fixed;
    right: 26px;
    bottom: 24px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sv-fab-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    border: 2px solid rgba(255, 255, 255, 0.85);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-family: var(--tt-heading-font, sans-serif);
}

body.tt-dark-mode-on .sv-fab-btn {
    border-color: rgba(233, 230, 222, 0.25);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55);
}

.sv-fab-btn:hover,
.sv-fab-btn:focus {
    transform: translateY(-3px) scale(1.05);
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.sv-fab-zalo {
    background: #0068ff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.sv-fab-call {
    background: var(--tt-main-color, #9d2e13);
    font-size: 18px;
}

/* Push scroll-to-top button above the floating contact cluster */
.tt-scroll-to-top {
    right: 26px !important;
    bottom: 144px !important;
    z-index: 998;
}

.tt-scroll-to-top .tt-stt-inner {
    width: 48px !important;
    height: 48px !important;
}

@media (max-width: 1400px) {
    .sv-floating-contact {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }
    .tt-scroll-to-top {
        right: 15px !important;
        bottom: 130px !important;
    }
}

@media (max-width: 575px) {
    .sv-fab-btn,
    .tt-scroll-to-top .tt-stt-inner {
        width: 44px !important;
        height: 44px !important;
    }
    .sv-fab-zalo {
        font-size: 11.5px;
    }
    .sv-fab-call {
        font-size: 16px;
    }
    .tt-scroll-to-top {
        bottom: 120px !important;
    }
}

body.tt-m-menu-open .sv-floating-contact,
body.tt-m-menu-active .sv-floating-contact {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media print {
    .sv-floating-contact,
    .tt-scroll-to-top {
        display: none !important;
    }
}

/* =========================================================================
   Công cụ tạo yêu cầu báo giá (quote wizard)
   ========================================================================= */
.qw { max-width: 920px; margin: 0 auto; border: 1px solid var(--tt-border-color); background: var(--tt-bg-color); padding: 32px 28px; }
.qw-progress { list-style: none; display: flex; gap: 10px; padding: 0; margin: 0 0 28px; flex-wrap: wrap; }
.qw-progress-item { flex: 1 1 160px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--tt-text-muted-color); padding-bottom: 10px; border-bottom: 3px solid var(--tt-border-color); }
.qw-progress-item span { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid currentColor; font-size: 12px; }
.qw-progress-item.is-active, .qw-progress-item.is-done { color: #9d2e13; border-bottom-color: #9d2e13; }
.qw-question { font-weight: 700; font-size: 16px; margin: 0 0 12px; }
.qw-question small { font-weight: 400; color: var(--tt-text-muted-color); }
.qw-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.qw-option { position: relative; cursor: pointer; margin: 0; }
.qw-option input { position: absolute; opacity: 0; pointer-events: none; }
.qw-option-box { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 14px; border: 1px solid var(--tt-border-color); background: var(--tt-accent-bg-color, #f1efe9); font-size: 14px; line-height: 1.4; transition: border-color .2s, background .2s; }
.qw-option-box i { color: #9d2e13; width: 18px; text-align: center; }
.qw-options-check .qw-option-box i { opacity: 0; }
.qw-option input:checked + .qw-option-box { border-color: #9d2e13; box-shadow: inset 0 0 0 1px #9d2e13; }
.qw-options-check .qw-option input:checked + .qw-option-box i { opacity: 1; }
.qw-option input:focus-visible + .qw-option-box { outline: 2px solid #9d2e13; outline-offset: 2px; }
.qw-note { width: 100%; border: 1px solid var(--tt-border-color); background: var(--tt-accent-bg-color, #f1efe9); color: inherit; padding: 12px 14px; font-size: 14px; resize: vertical; }
.qw-error { color: #c0392b; font-size: 13px; margin: 10px 0 0; }
.qw-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.qw-actions [data-qw-next], .qw-actions [data-qw-submit] { margin-left: auto; }
@media (max-width: 575px) { .qw { padding: 22px 16px; } .qw-options { grid-template-columns: 1fr; } }
.qw [hidden] { display: none !important; }
.qw-contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; position: relative; }
.qw-done { text-align: center; padding: 30px 10px; }
.qw-done i { font-size: 46px; color: #2e7d32; margin-bottom: 14px; }
.qw-done h3 { font-size: 24px; font-weight: 800; margin: 0 0 10px; }
.qw-done p { color: var(--tt-text-muted-color); line-height: 1.8; margin: 0; }
.qw-done a { color: #9d2e13; font-weight: 700; }
/* Ô đã chọn: nền đỏ, chữ & icon trắng cho rõ */
.qw-option input:checked + .qw-option-box { background: #9d2e13; border-color: #9d2e13; color: #ffffff; box-shadow: none; }
.qw-option input:checked + .qw-option-box i { color: #ffffff; opacity: 1; }
.qw-option:hover .qw-option-box { border-color: #9d2e13; }
/* Các ô cao bằng nhau, không thò thụt khi chữ dài ngắn khác nhau */
.qw-options { grid-auto-rows: 1fr; }
.qw-option { display: flex; }
.qw-option-box { flex: 1 1 auto; min-height: 64px; }
