/* Extracted form & CRO modal styles (no global body/button overrides) */
/* Khóa toàn bộ tiêu đề bài viết và chữ đậm chuẩn font-weight 700 */
    .entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4, .entry-content h5, .entry-content h6,
    .entry-content strong, .entry-content b,
    .apw-cro-wrap h1, .apw-cro-wrap h2, .apw-cro-wrap h3, .apw-cro-wrap h4,
    .apw-cro-wrap strong, .apw-cro-wrap b,
    .single-post h1, .single-post h2, .single-post h3, .single-post h4,
    .single-post strong, .single-post b,
    .apw-bg-title, .apw-bg-body h3, .apw-bg-cta-btn {
        font-weight: 700 !important;
    }

    :root {
        --apw-primary: #1e3a8a;
        --apw-primary-dark: #0f172a;
        --apw-emerald: #059669;
        --apw-emerald-dark: #047857;
        --apw-emerald-light: #ecfdf5;
        --apw-amber: #d97706;
        --apw-amber-light: #fffbeb;
        --apw-text: #0f172a;
        --apw-muted: #475569;
        --apw-border: #cbd5e1;
        --apw-bg-card: #ffffff;
        --apw-radius: 10px;
    }

    /* Ẩn H1 mặc định của bài viết nếu trang đã có Hero Banner CRO độc bản */
    /* Khóa nền sáng chuẩn Doanh Nghiệp trên cả Desktop & Mobile */
    /* Base body background & text color are locked in theme.json & base.css */
    .single-post .entry-header {
        margin-bottom: 8px;
    }
    .apw-has-cro-lp .entry-header {
        display: none !important;
    }

    /* Reset xung đột viền đỏ table mặc định của theme cũ trong khối CRO */
    .apw-cro-wrap table,
    .apw-cro-wrap th,
    .apw-cro-wrap td {
        border-color: #e2e8f0 !important;
    }

    /* ================= WIDGET DỰ TOÁN CHI PHÍ TỰ ĐỘNG ================= */
    .apw-estimator-box {
        background: #ffffff;
        border: 1.5px solid #cbd5e1;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
        margin: 18px 0;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
        color: var(--apw-text);
    }
    .apw-est-modal {
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    .apw-est-topbar {
        background: #0f172a;
        padding: 8px 14px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .apw-est-dots {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .apw-est-dots .dot-r, .apw-est-dots .dot-y, .apw-est-dots .dot-g {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        display: inline-block;
    }
    .apw-est-dots .dot-r { background: #ef4444; }
    .apw-est-dots .dot-y { background: #f59e0b; }
    .apw-est-dots .dot-g { background: #10b981; }
    .apw-est-top-title {
        color: #cbd5e1;
        font-size: 11.5px;
        font-weight: 600;
        margin-left: 6px;
    }
    .apw-est-tag-auto {
        color: #10b981;
        font-size: 10px;
        font-weight: 700;
        background: rgba(16, 185, 129, 0.18);
        padding: 2px 7px;
        border-radius: 4px;
        white-space: nowrap;
        margin-right: 34px;
    }
    .apw-est-inline .apw-est-tag-auto {
        margin-right: 0;
    }
    .apw-est-body {
        padding: 16px;
        background: #f8fafc;
    }
    .apw-est-head {
        text-align: center;
        margin-bottom: 12px;
    }
    .apw-est-h3 {
        font-size: 15.5px !important;
        font-weight: 700 !important;
        color: #1e3a8a !important;
        margin: 0 0 3px 0 !important;
        text-transform: uppercase;
        line-height: 1.3 !important;
    }
    .apw-est-sub {
        font-size: 12px !important;
        color: #64748b !important;
        margin: 0 !important;
        line-height: 1.4 !important;
    }
    .apw-est-step {
        margin-bottom: 12px;
    }
    .apw-est-step-label {
        font-size: 11.5px;
        font-weight: 700;
        color: #334155;
        margin-bottom: 6px;
        text-transform: uppercase;
        letter-spacing: 0.2px;
    }
    .apw-est-type-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
    .apw-est-type-btn {
        background: #ffffff !important;
        border: 1.5px solid #cbd5e1 !important;
        border-radius: 6px !important;
        padding: 15px 6px 8px 6px !important;
        text-align: center !important;
        cursor: pointer !important;
        position: relative !important;
        transition: all 0.18s ease !important;
        margin: 0 !important;
        min-height: 58px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: none !important;
        text-transform: none !important;
        line-height: 1.25 !important;
    }
    .apw-est-type-btn strong {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 2px;
    }
    .apw-est-type-btn span {
        font-size: 10.5px;
        color: #64748b;
        font-weight: 500;
    }
    .apw-est-type-btn .apw-check-badge {
        display: none;
        position: absolute;
        top: 2px;
        right: 4px;
        background: #059669;
        color: #ffffff;
        font-size: 7.5px;
        line-height: 1.1;
        font-weight: 700;
        padding: 1.5px 4px;
        border-radius: 3px;
        letter-spacing: 0.2px;
    }
    .apw-est-type-btn.active {
        background: #ecfdf5 !important;
        border-color: #059669 !important;
        box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15) !important;
    }
    .apw-est-type-btn.active strong {
        color: #065f46;
    }
    .apw-est-type-btn.active span {
        color: #047857;
        font-weight: 600;
    }
    .apw-est-type-btn.active .apw-check-badge {
        display: inline-block;
    }
    .apw-est-sub-options {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    .apw-est-sub-pill {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        color: #334155 !important;
        font-size: 11.5px !important;
        font-weight: 600 !important;
        padding: 5px 10px !important;
        border-radius: 999px !important;
        cursor: pointer !important;
        margin: 0 !important;
        transition: all 0.15s ease !important;
        line-height: 1.3 !important;
        text-transform: none !important;
        min-height: 30px !important;
    }
    .apw-est-sub-pill.active {
        background: #1e3a8a !important;
        border-color: #1e3a8a !important;
        color: #ffffff !important;
    }
    .apw-est-slider-box {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        padding: 10px 12px;
        border-radius: 8px;
    }
    .apw-est-slider-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 6px;
    }
    .apw-est-val-badge {
        background: #eff6ff;
        color: #1e40af;
        border: 1px solid #bfdbfe;
        font-size: 12px;
        font-weight: 700;
        padding: 2px 9px;
        border-radius: 5px;
    }
    .apw-est-range {
        width: 100% !important;
        height: 7px !important;
        background: #cbd5e1 !important;
        border-radius: 4px !important;
        outline: none !important;
        margin: 8px 0 6px 0 !important;
        cursor: pointer !important;
        accent-color: #059669 !important;
    }
    .apw-est-ticks {
        display: flex;
        justify-content: space-between;
        font-size: 10px;
        color: #64748b;
        font-weight: 500;
    }
    .apw-est-ticks .tick-hl {
        color: #059669;
        font-weight: 700;
    }
    .apw-est-result {
        background: #f0fdf4;
        border: 1.5px dashed #059669;
        padding: 14px 12px;
        border-radius: 8px;
        text-align: center;
    }
    .apw-est-res-label {
        font-size: 11px;
        font-weight: 700;
        color: #065f46;
        text-transform: uppercase;
        letter-spacing: 0.2px;
    }
    .apw-est-res-price {
        font-size: 23px;
        font-weight: 900;
        color: #059669;
        margin: 4px 0;
        line-height: 1.2;
    }
    .apw-est-res-spec {
        font-size: 11.5px !important;
        color: #047857 !important;
        margin: 0 0 10px 0 !important;
        line-height: 1.4 !important;
    }
    .apw-est-actions {
        display: flex;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    .apw-est-btn-zalo,
    .apw-est-btn-book {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 9px 15px !important;
        border-radius: 6px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        border: none !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        transition: transform 0.15s, opacity 0.15s !important;
        min-height: 40px !important;
    }
    .apw-est-btn-zalo {
        background: #0284c7 !important;
        color: #ffffff !important;
    }
    .apw-est-btn-book {
        background: #059669 !important;
        color: #ffffff !important;
    }
    .apw-est-btn-zalo:hover,
    .apw-est-btn-book:hover {
        transform: translateY(-1px);
        opacity: 0.95;
    }
    .apw-est-quickform-wrap {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px dashed #a7f3d0;
        text-align: left;
    }
    .apw-qf-title {
        font-size: 12px;
        font-weight: 700;
        color: #065f46;
        margin-bottom: 6px;
    }
    .apw-qf-row {
        display: flex;
        gap: 6px;
    }
    .apw-qf-row input[type="tel"] {
        flex: 1 !important;
        height: 40px !important;
        min-height: 40px !important;
        margin: 0 !important;
        background: #ffffff !important;
    }
    .apw-qf-row .apw-submit-btn {
        width: auto !important;
        margin: 0 !important;
        padding: 0 16px !important;
        background: #0f172a !important;
    }
    .apw-qf-note {
        font-size: 10.5px;
        color: #047857;
        margin-top: 5px;
        text-align: center;
    }

    /* ================= 6 LANDING PAGES CRO DESIGN SYSTEM ================= */
    .apw-cro-wrap {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
        color: #0f172a;
        line-height: 1.55;
        font-size: 14.5px;
    }
    .apw-cro-hero {
        background: linear-gradient(135deg, #0a2558 0%, #0d3e8f 55%, #0284c7 100%) !important;
        color: #ffffff !important;
        border-radius: 12px;
        padding: 22px 20px;
        margin-bottom: 20px;
        border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
        box-shadow: 0 10px 25px -5px rgba(10, 37, 88, 0.4) !important;
        position: relative;
        overflow: hidden;
    }
    .apw-cro-hero-badge {
        display: inline-block;
        background: rgba(16, 185, 129, 0.2);
        border: 1px solid #34d399;
        color: #6ee7b7;
        font-size: 11px;
        font-weight: 700;
        padding: 3px 10px;
        border-radius: 999px;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    .apw-cro-hero h1 {
        color: #ffffff !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        margin: 0 0 8px 0 !important;
    }
    .apw-cro-hero-sub {
        color: #e2e8f0 !important;
        font-size: 13.5px !important;
        margin: 0 0 12px 0 !important;
        line-height: 1.45 !important;
    }
    .apw-cro-pills {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-bottom: 14px;
    }
    .apw-cro-pill {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.18);
        padding: 7px 10px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
        color: #f8fafc;
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .apw-cro-hero-ctas {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }
    .apw-btn-primary-cro {
        background: #059669 !important;
        color: #ffffff !important;
        border: none !important;
        padding: 9px 13px !important;
        border-radius: 6px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35) !important;
        white-space: nowrap !important;
        min-height: 42px !important;
        margin: 0 !important;
    }
    .apw-btn-secondary-cro {
        background: #ffffff !important;
        color: #1e3a8a !important;
        border: none !important;
        padding: 9px 12px !important;
        border-radius: 6px !important;
        font-size: 12.5px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        text-decoration: none !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        white-space: nowrap !important;
        min-height: 42px !important;
        margin: 0 !important;
    }
    .apw-sec {
        margin-bottom: 24px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 18px 16px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    }
    .apw-sec-head {
        border-bottom: 2px solid #f1f5f9;
        padding-bottom: 8px;
        margin-bottom: 14px;
    }
    .apw-sec-tag {
        display: inline-block;
        font-size: 10.5px;
        font-weight: 700;
        color: #059669;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        margin-bottom: 2px;
    }
    .apw-sec-head h2 {
        font-size: 17.5px !important;
        font-weight: 700 !important;
        color: #1e3a8a !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }
    .apw-sec-head p {
        font-size: 12.5px !important;
        color: #64748b !important;
        margin: 3px 0 0 0 !important;
    }
    .apw-grid-3 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .apw-grid-2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .apw-grid-4 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .apw-tier-card {
        border: 1.5px solid #e2e8f0;
        border-radius: 8px;
        padding: 14px;
        background: #fafafa;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
    }
    .apw-tier-card.featured {
        border-color: #059669;
        background: #f0fdf4;
        box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
    }
    .apw-tier-badge {
        position: absolute;
        top: -9px;
        right: 10px;
        background: #059669;
        color: #ffffff;
        font-size: 9.5px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 999px;
        text-transform: uppercase;
    }
    .apw-tier-name {
        font-size: 14px;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: 2px;
    }
    .apw-tier-sub {
        font-size: 11.5px;
        color: #64748b;
        margin-bottom: 8px;
    }
    .apw-tier-price {
        font-size: 18px;
        font-weight: 900;
        color: #dc2626;
        margin-bottom: 8px;
        padding-bottom: 8px;
        border-bottom: 1px dashed #cbd5e1;
    }
    .apw-tier-price small {
        font-size: 11.5px;
        font-weight: 600;
        color: #475569;
    }
    .apw-tier-list {
        list-style: none !important;
        margin: 0 0 14px 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }
    .apw-tier-list li {
        position: relative !important;
        padding: 0 0 0 24px !important;
        margin: 0 0 8px 0 !important;
        margin-left: 0 !important;
        text-align: left !important;
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        color: #334155 !important;
    }
    .apw-tier-list li::before {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        top: 2px !important;
        width: 16px !important;
        height: 16px !important;
        background-color: #059669 !important;
        border-radius: 4px !important;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
        background-size: 10px 10px !important;
    }
    .apw-cro-wrap img {
        max-width: 100% !important;
        height: auto !important;
    }
        .apw-gallery-card {
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .apw-gallery-card img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        margin: 0 !important;
        display: block !important;
    }
    .apw-gallery-cap {
        padding: 8px 10px !important;
        font-size: 12px !important;
        background: #ffffff !important;
        margin-top: auto !important;
    }
    .apw-gallery-cap strong {
        display: block !important;
        color: #0f172a !important;
        font-size: 12.5px !important;
        margin-bottom: 2px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
    }
    .apw-gallery-cap span {
        display: block !important;
        color: #64748b !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }
    @media (max-width: 640px) {
        .apw-gallery-card img {
            height: 150px !important;
        }
    }
    .apw-step-box {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-left: 3.5px solid #1e3a8a;
        border-radius: 6px;
        padding: 10px 12px;
    }
    .apw-cro-wrap .apw-step-num,
    .apw-step-box .apw-step-num {
        font-size: 10.5px !important;
        font-weight: 700 !important;
        color: #1e3a8a !important;
        text-transform: uppercase !important;
        display: block !important;
        margin-bottom: 4px !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
        line-height: 1.35 !important;
    }
    .apw-step-box h4 {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #0f172a !important;
        margin: 0 0 3px 0 !important;
    }
    .apw-step-box p {
        font-size: 11.5px !important;
        color: #475569 !important;
        margin: 0 !important;
        line-height: 1.35 !important;
    }
    .apw-s6-grid {
        display: grid;
        grid-template-columns: 1.15fr 0.85fr;
        gap: 14px;
        align-items: stretch;
    }
    .apw-s6-box {
        max-width: 100% !important;
        height: 100%;
    }
    .apw-s6-2col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .apw-s6-map-card {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 14px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .apw-s6-tag {
        display: inline-block;
        background: #fef3c7;
        color: #92400e;
        font-size: 10px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 4px;
        margin-bottom: 4px;
    }
    .apw-s6-map-info h4 {
        font-size: 14.5px !important;
        font-weight: 700 !important;
        color: #1e3a8a !important;
        margin: 0 0 6px 0 !important;
    }
    .apw-s6-map-info p {
        font-size: 12px !important;
        color: #334155 !important;
        margin: 0 0 4px 0 !important;
        line-height: 1.4 !important;
    }
    .apw-s6-iframe-wrap {
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #cbd5e1;
        margin-top: 8px;
    }
    .apw-btn-emerald {
        background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
        box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
    }

    /* ================= FORM & MODAL CORE STYLES ================= */
    .apw-form-wrapper {
        background: var(--apw-bg-card);
        border-radius: var(--apw-radius);
        padding: 18px 20px;
        box-sizing: border-box;
        font-family: inherit;
        color: var(--apw-text);
        position: relative;
    }
    .apw-is-inline {
        border: 1px solid #e2e8f0;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
        max-width: 520px;
        margin: 0 auto;
    }
    .apw-is-modal {
        border: none;
        padding: 14px 16px !important;
    }
    .apw-form-header {
        text-align: center;
        margin-bottom: 10px !important;
    }
    .apw-badge {
        display: inline-block;
        background: #eff6ff;
        color: var(--apw-primary);
        font-size: 10px !important;
        font-weight: 700;
        letter-spacing: 0.3px;
        padding: 2px 8px !important;
        border-radius: 999px;
        margin-bottom: 4px !important;
        border: 1px solid #bfdbfe;
    }
    .apw-title {
        color: var(--apw-primary) !important;
        font-size: 17px !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        margin: 0 0 3px !important;
        text-transform: uppercase;
        letter-spacing: 0.2px;
    }
    .apw-desc {
        color: var(--apw-muted) !important;
        font-size: 12px !important;
        margin: 0 !important;
        line-height: 1.35 !important;
    }
    .apw-quote-form .apw-form-group {
        margin-bottom: 8px !important;
        text-align: left;
    }
    .apw-quote-form label {
        display: block;
        font-size: 12px !important;
        font-weight: 600 !important;
        color: #334155 !important;
        margin-bottom: 3px !important;
    }
    .apw-required {
        color: #ef4444;
        font-weight: 700;
    }
    .apw-quote-form input[type="text"],
    .apw-quote-form input[type="tel"] {
        width: 100% !important;
        box-sizing: border-box !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 12px !important;
        font-size: 13.5px !important;
        border: 1.5px solid var(--apw-border) !important;
        border-radius: 6px !important;
        background: #f8fafc !important;
        color: var(--apw-text) !important;
        outline: none !important;
        margin-bottom: 0 !important;
    }
    .apw-select-wrap {
        position: relative;
    }
    .apw-select-wrap::after {
        content: "";
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 4.5px solid transparent;
        border-right: 4.5px solid transparent;
        border-top: 5px solid #64748b;
        pointer-events: none;
    }
    .apw-quote-form select,
    .apw-select-wrap select {
        appearance: none !important;
        -webkit-appearance: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
        height: 38px !important;
        min-height: 38px !important;
        line-height: 36px !important;
        padding: 0 32px 0 12px !important;
        font-size: 13px !important;
        border: 1.5px solid var(--apw-border) !important;
        border-radius: 6px !important;
        background: #f8fafc !important;
        color: var(--apw-text) !important;
        cursor: pointer !important;
        margin-bottom: 0 !important;
    }
    .apw-quote-form textarea {
        width: 100% !important;
        box-sizing: border-box !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 6px 12px !important;
        font-size: 13px !important;
        border: 1.5px solid var(--apw-border) !important;
        border-radius: 6px !important;
        background: #f8fafc !important;
        color: var(--apw-text) !important;
        resize: none !important;
        margin-bottom: 0 !important;
    }
    .apw-form-error {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #dc2626;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 12px;
        margin-bottom: 8px;
        text-align: center;
        font-weight: 500;
    }
    .apw-submit-btn {
        width: 100% !important;
        background: linear-gradient(135deg, #0a3d91 0%, #1d4ed8 100%) !important;
        color: #ffffff !important;
        border: none !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 16px !important;
        font-size: 13.5px !important;
        font-weight: 700 !important;
        letter-spacing: 0.4px !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 6px !important;
        white-space: nowrap !important;
    }
    .apw-trust-bar {
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 6px;
        margin-top: 8px;
        padding-top: 6px;
        border-top: 1px dashed #e2e8f0;
        font-size: 10.5px;
        color: #64748b;
        font-weight: 600;
    }
    .apw-form-success {
        text-align: center;
        padding: 18px 12px;
    }
    .apw-success-icon {
        width: 44px;
        height: 44px;
        background: #10b981;
        color: #ffffff;
        font-size: 24px;
        font-weight: 700;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 10px;
    }
    .apw-form-success h4 {
        color: #065f46;
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 6px;
    }
    .apw-form-success p {
        color: #334155;
        font-size: 12.5px;
        line-height: 1.45;
        margin: 0;
    }
    .apw-spinner {
        display: inline-block;
        width: 14px;
        height: 14px;
        border: 2px solid rgba(255, 255, 255, 0.4);
        border-top-color: #ffffff;
        border-radius: 50%;
        animation: apw-spin 0.7s linear infinite;
        margin-right: 8px;
    }
    @keyframes apw-spin {
        to { transform: rotate(360deg); }
    }

    /* ================= MODAL POPUP DỰ TOÁN ================= */
    .apw-modal-close {
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        width: 26px !important;
        height: 26px !important;
        background: #DC2626 !important;
        border: 1.5px solid #FFFFFF !important;
        border-radius: 50% !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        color: #FFFFFF !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 30 !important;
        box-shadow: none !important;
    }

    #apw-quote-modal-wrap {
        position: fixed;
        inset: 0;
        z-index: 9999999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 12px;
        box-sizing: border-box;
    }
    #apw-quote-modal-wrap.apw-active {
        display: flex;
    }
    .apw-modal-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.7);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    .apw-modal-box {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 600px;
        max-height: 92vh;
        overflow-y: auto;
        background: #ffffff;
        border-radius: 12px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
        animation: apw-modal-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
    @keyframes apw-modal-in {
        from { opacity: 0; transform: scale(0.95) translateY(10px); }
        to { opacity: 1; transform: scale(1) translateY(0); }
    }
    .apw-modal-close {
        position: absolute;
        top: 6px;
        right: 8px;
        width: 26px;
        height: 26px;
        background: rgba(255, 255, 255, 0.15);
        border: none;
        border-radius: 50%;
        font-size: 18px;
        line-height: 1;
        color: #ffffff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
    }
    .apw-modal-close:hover {
        background: #ef4444;
        color: #ffffff;
    }
    .hck-baogia-btn {
        cursor: pointer;
        background: #059669 !important;
    }

    /* Sticky Bar Mobile thêm nút Dự Toán Nhanh */
    #contact-bar-mobile .estimator-btn-mobile {
        background: #059669 !important;
        color: #ffffff !important;
        cursor: pointer;
    }

    /* Ẩn nút tròn đỏ gọi điện thoại nổi ở góc dưới trên Desktop */
    @media (min-width: 768px) {
        #button-contact-vr #phone-vr,
        #phone-vr.button-contact {
            display: none !important;
        }
    }
    .apw-copy-toast {
        position: fixed;
        bottom: 32px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        background: #0f172a;
        color: #ffffff;
        padding: 10px 20px;
        border-radius: 999px;
        font-size: 13.5px;
        font-weight: 600;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
        z-index: 9999999;
        opacity: 0;
        pointer-events: none;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .apw-copy-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    /* ================= RESPONSIVE MOBILE & TABLET ================= */
    @media (max-width: 768px) {
        .apw-est-type-grid {
            grid-template-columns: repeat(2, 1fr);
        }
        .apw-cro-pills,
        .apw-grid-3,
        .apw-grid-4,
        .apw-s6-grid,
        .apw-s6-2col {
            grid-template-columns: 1fr;
        }
        .apw-grid-2 {
            grid-template-columns: 1fr;
        }
        .apw-cro-hero {
            padding: 16px 14px;
        }
        .apw-cro-hero h1 {
            font-size: 18.5px !important;
        }
        #contact-bar-mobile .contact-btn {
            font-size: 12px !important;
            padding: 6px 4px !important;
            gap: 4px !important;
        }
    }
    @media (max-width: 480px) {
        .apw-est-body {
            padding: 12px 10px;
        }
        .apw-est-res-price {
            font-size: 19px;
        }
        .apw-est-actions {
            flex-direction: column;
        }
        .apw-est-btn-zalo,
        .apw-est-btn-book,
        .apw-btn-primary-cro,
        .apw-btn-secondary-cro {
            width: 100% !important;
        }
        .apw-qf-row {
            flex-direction: column;
        }
        .apw-qf-row .apw-submit-btn {
            width: 100% !important;
        }
        .apw-trust-bar {
            font-size: 9.5px;
            gap: 2px;
        }
    }
    /* === FIX DẤU X ĐÓNG POPUP NHỎ GỌN, TƯƠNG PHẢN CAO & BƯỚC 2 GỌN 1 HÀNG TRÊN MOBILE === */
    #apw-quote-modal-wrap .apw-modal-close,
    button.apw-modal-close {
        position: absolute !important;
        top: 6px !important;
        right: 8px !important;
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
        max-width: 26px !important;
        max-height: 26px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #dc2626 !important;
        color: #ffffff !important;
        border: 1.5px solid #ffffff !important;
        border-radius: 50% !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
        z-index: 30 !important;
        text-transform: none !important;
    }
    .apw-est-sub-options {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)) !important;
        gap: 6px !important;
    }
    .apw-est-sub-pill {
        width: 100% !important;
        min-height: 30px !important;
        height: 30px !important;
        padding: 0 6px !important;
        margin: 0 !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border-radius: 6px !important;
        box-shadow: none !important;
    }
    @media (max-width: 768px) {
        .apw-est-sub-pill {
            font-size: 10.5px !important;
            min-height: 28px !important;
            height: 28px !important;
            padding: 0 4px !important;
        }
    }
    
    /* === TRIỆT TIÊU TOÀN BỘ BOX-SHADOW Ở CÁC NÚT BẤM (MODERN FLAT MINIMALIST) === */
    .apw-btn-calc,
    .apw-btn-zalo,
    .apw-btn-booking,
    .apw-hero-btn,
    .apw-submit-btn,
    .apw-btn-emerald,
    .apw-btn-primary-cro,
    .hck-baogia-btn,
    .nut-lien-he,
    .estimator-btn-mobile,
    .apw-calc-modal-close,
    .apw-modal-close,
    .apw-fast-btn-submit,
    .apw-est-btn-zalo,
    .apw-est-btn-book,
    .apw-est-type-btn,
    .apw-chip,
    .contact-btn,
    .button,
    .apw-cro-wrap button, .apw-estimator-box button, .apw-quote-form button {
        box-shadow: none !important;
        text-shadow: none !important;
        filter: none !important;
    }
    .apw-btn-calc:hover,
    .apw-btn-emerald:hover,
    .apw-btn-primary-cro:hover {
        box-shadow: none !important;
    }

    /* ==========================================================================
       POPUP KẾT NỐI NHANH DESKTOP (HOTLINE, QR ZALO, COPY SỐ)
       ========================================================================== */
    #apw-quick-connect-modal {
        position: fixed;
        inset: 0;
        z-index: 99999999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 16px;
        box-sizing: border-box;
    }
    #apw-quick-connect-modal.apw-active {
        display: flex;
    }
    .apw-qc-box {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 540px;
        background: #ffffff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 25px 60px rgba(0, 21, 44, 0.35);
        border: 1px solid rgba(14, 81, 209, 0.15);
        animation: apw-modal-in 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
        font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    }
    .apw-qc-header {
        background: #00152C;
        padding: 20px 24px 18px;
        color: #ffffff;
        position: relative;
    }
    .apw-qc-badge {
        display: inline-block;
        background: rgba(251, 191, 36, 0.15);
        color: #fbbf24;
        border: 1px solid rgba(251, 191, 36, 0.3);
        font-size: 11px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 4px;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }
    .apw-qc-title {
        margin: 0 !important;
        font-size: 19px !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        line-height: 1.3 !important;
    }
    .apw-qc-sub {
        margin: 4px 0 0 !important;
        font-size: 13px !important;
        color: #94a3b8 !important;
        line-height: 1.4 !important;
    }
    .apw-qc-close {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.12);
        border: none;
        border-radius: 50%;
        font-size: 20px;
        line-height: 1;
        color: #ffffff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s ease;
    }
    .apw-qc-close:hover {
        background: #ef4444;
        color: #ffffff;
    }
    .apw-qc-body {
        display: flex;
        gap: 20px;
        padding: 22px 24px;
        background: #ffffff;
    }
    .apw-qc-col-qr {
        flex: 0 0 160px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .apw-qc-qr-frame {
        width: 160px;
        height: 160px;
        padding: 8px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
    }
    .apw-qc-qr-frame img {
        width: 120px;
        height: 120px;
        display: block;
        object-fit: contain;
    }
    .apw-qc-qr-tag {
        display: block;
        font-size: 10px;
        font-weight: 700;
        color: #0E51D1;
        margin-top: 4px;
        white-space: nowrap;
    }
    .apw-qc-qr-note {
        margin-top: 10px;
        font-size: 11.5px;
        line-height: 1.35;
        color: #64748b;
    }
    .apw-qc-qr-note strong {
        color: #00152C;
        display: block;
        margin-bottom: 2px;
    }
    .apw-qc-col-actions {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 12px;
    }
    .apw-qc-col-label {
        margin: 0 !important;
        font-size: 12.5px !important;
        color: #00152C !important;
    }
    .apw-qc-btn-zalo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background-color: #0068ff !important;
        color: #ffffff !important;
        padding: 12px 16px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 14.5px;
        text-decoration: none !important;
        transition: background 0.15s ease;
        text-align: center;
    }
    .apw-qc-btn-zalo:hover {
        background-color: #0056d6 !important;
        color: #ffffff !important;
    }
    .apw-qc-copy-wrap {
        display: flex;
        align-items: center;
        justify-content: space-between;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 6px 6px 6px 12px;
        gap: 8px;
    }
    .apw-qc-phone-display {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 15px;
        font-weight: 800;
        color: #00152C;
        letter-spacing: 0.3px;
    }
    .apw-qc-btn-copy {
        background: #0E51D1 !important;
        color: #ffffff !important;
        border: none;
        border-radius: 7px;
        padding: 8px 14px;
        font-size: 12.5px;
        font-weight: 700;
        cursor: pointer;
        transition: all 0.15s ease;
        white-space: nowrap;
    }
    .apw-qc-btn-copy:hover {
        background: #0a3d9e !important;
    }
    .apw-qc-quote-shortcut {
        margin-top: 4px;
        padding-top: 10px;
        border-top: 1px dashed #e2e8f0;
        font-size: 12px;
        color: #64748b;
        line-height: 1.4;
    }
    .apw-qc-link-quote {
        display: inline-block;
        margin-top: 3px;
        color: #0E51D1;
        font-weight: 700;
        background: none;
        border: none;
        padding: 0;
        cursor: pointer;
        font-size: 12.5px;
        text-decoration: underline;
    }
    .apw-qc-link-quote:hover {
        color: #d32f2f;
    }
    .apw-qc-footer {
        background: #f8fafc;
        border-top: 1px solid #f1f5f9;
        padding: 10px 24px;
        font-size: 11.5px;
        color: #64748b;
        text-align: center;
    }
    @media (max-width: 580px) {
        .apw-qc-body {
            flex-direction: column;
            align-items: center;
        }
        .apw-qc-col-qr {
            flex: none;
            width: 100%;
        }
        .apw-qc-col-actions {
            width: 100%;
        }
    }
