.faq-wrapper {
    margin-top: 80px;
    width: 100%;
    padding: var(--section-gap);
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #ffffff;
    margin-bottom: 20px;
}

.faq-title {
    font-size: 32px;
    font-weight: 500;
    color: #000000;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: none;
}

.faq-content-block {
    background-color: #f4f4f4;
    width: 100%;
    max-width: 840px;
    padding: 15px 50px 30px 50px;
    box-sizing: border-box;
}

.faq-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 22px 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-bar, #e0e0e0);
    transition: background-color 0.3s ease;
}

.faq-content-block > .faq-item:nth-child(4) {
    border-bottom: 1px solid var(--color-bar, #e0e0e0);
}

.faq-more-inner > .faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 13px;
    font-weight: 800;
    color: #000000;
    line-height: 1.4;
    max-width: 93%;
}

.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.faq-answer-content {
    min-height: 0;
    max-width: 90%;
}

.faq-answer-content p {
    font-size: 12px;
    color: #000000;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 20px; 
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.ed-faq-icon-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    background-color: #e0e0e0;
    border-radius: 50%;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

.faq-header-row:hover .ed-faq-icon-btn {
    background-color: var(--color-dark, #000000);
}

.faq-header-row:hover .ed-faq-chevron {
    stroke: #ffffff;
}

.faq-item.active .ed-faq-chevron {
    transform: rotate(180deg);
}

.ed-faq-chevron {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 11px;
    height: 11px;
    stroke: currentColor;
    fill: none;
    stroke-width: 3;
}

.faq-inline-link {
    color: #000000;
    text-decoration: none;
    position: relative;
    display: inline-block;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-inline-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 100%;
    height: 1px;
    background-color: #000000;
    transform-origin: left center;
    transform: scaleX(1);
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-inline-link:hover::after {
    transform: scaleX(0);
}

.faq-more-container {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.faq-more-container.is-expanded {
    grid-template-rows: 1fr;
}

.faq-more-inner {
    min-height: 0;
    overflow: hidden;
}

.faq-actions-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 10px;
}

.faq-load-more-btn {
    background-color: #e0e0e0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.faq-load-more-btn:hover {
    background-color: var(--color-bg-dark, rgb(23, 26, 27));
}

.faq-load-more-btn:hover .faq-double-chevron {
    stroke: #ffffff;
}

.faq-double-chevron {
    width: 14px;
    height: 14px;
    stroke: #000000;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-load-more-btn.is-active .faq-double-chevron {
    transform: rotate(180deg);
}

@media (max-width: 1024px) {
    .faq-inline-link:hover::after {
        display: none;
    }
    
    .faq-wrapper {
        padding: 40px 20px;
    }

    .faq-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .faq-content-block {
        max-width: 100%;
        padding: 5px 20px 20px 20px;
        background-color: #f4f4f4;
    }

    .faq-header-row {
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        flex-direction: row !important;
    }

    .faq-item {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .faq-question {
        font-size: 14px;
        letter-spacing: -0.01em;
        padding-right: 15px;
    }

    .faq-answer-content {
        width: 100% !important;
        display: block !important;
    }

    .faq-answer-content p {
        font-size: 12px;
        line-height: 1.4;
        padding-bottom: 15px;
    }

    .ed-faq-icon-btn {
        width: 28px;
        height: 28px;
    }

    .ed-faq-chevron {
        width: 12px;
        height: 12px;
    }

    .faq-actions-wrapper {
        padding-top: 20px;
        padding-bottom: 10px;
    }

    .faq-load-more-btn {
        width: 32px;
        height: 32px;
    }

    .faq-double-chevron {
        width: 13px;
        height: 13px;
    }
}

@media (max-width: 480px) {
    .faq-title {
        font-size: 24px;
    }
    
    .faq-question {
        font-size: 13px;
    }
}









/*=================
NÚT HỎI CASA
=================*/

.faq-ask-trigger-wrapper {
    display: flex;
    justify-content: center; 
    width: 100%;
    max-width: 840px;
    margin: 40px auto 0 auto;
    box-sizing: border-box;
}


.faq-ask-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: transparent;
    border: 1px solid #1a1a1a;
    border-radius: 50px; 
    color: #1a1a1a;
    text-transform: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-ask-btn .faq-ask-arrow {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
    transition: transform 0.3s ease;
}

.faq-ask-btn:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

.faq-ask-btn:hover .faq-ask-arrow {
    transform: translateX(4px);
}










/* ==========================================================================
   ASKCASA POPUP MODAL STYLES (TRỌN BỘ - DESKTOP + MOBILE 767PX)
   ========================================================================== */

/* 1. LỚP NỀN TỐI (OVERLAY DESKTOP) */
.askcasa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.askcasa-modal-overlay.is-open,
.askcasa-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 2. KHUNG THẺ NỀN TRẮNG (CARD DESKTOP) */
.askcasa-modal-card {
    position: relative;
    width: 100%;
    max-width: 580px;
    background-color: #ffffff !important;
    padding: 30px;
    border-radius: 0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.askcasa-modal-overlay.is-open .askcasa-modal-card,
.askcasa-modal-overlay.is-active .askcasa-modal-card {
    transform: translateY(0);
}

/* 3. NÚT ĐÓNG (X) */
.askcasa-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666666;
    transition: color 0.2s ease;
}

.askcasa-modal-close-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.askcasa-modal-close-btn:hover {
    color: #000000;
}

/* 4. HEADER MODAL */
.askcasa-modal-header {
    margin-bottom: 38px;
    text-align: left;
}

.askcasa-modal-title {
    font-size: 3rem;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.askcasa-modal-subtitle {
    font-size: 0.85rem;
    color: #666666;
    margin: 0;
    line-height: 1.4;
}

/* 5. INPUT & FLOATING LABEL */
.askcasa-modal-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.askcasa-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.askcasa-form-group {
    position: relative;
    display: flex;
    flex-direction: column;
}


.askcasa-form-submit-wrapper {
    margin: 20px 0 0;
}


.askcasa-form-input {
    width: 100%;
    height: 36px;
    line-height: 36px;
    padding: 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-size: 0.85rem;
    color: #1a1a1a;
    outline: none;
    border-radius: 0;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.askcasa-form-textarea {
    width: 100%;
    padding: 0;
    margin-top: -15px;
    line-height: 2.2;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-size: 0.85rem;
    color: #1a1a1a;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    resize: vertical;
}

.askcasa-form-input:focus,
.askcasa-form-textarea:focus {
    border-bottom-color: #1a1a1a;
}

.askcasa-form-label {
    position: absolute;
    top: 0;
    left: 0;
    height: 36px;
    line-height: 36px;
    font-size: 0.85rem;
    color: #888888;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    opacity: 1;
    visibility: visible;
}

.askcasa-form-textarea ~ .askcasa-form-label {
    top: -15px;
    height: auto;
    line-height: 2.2;
}

.askcasa-form-input:not(:placeholder-shown) ~ .askcasa-form-label,
.askcasa-form-textarea:not(:placeholder-shown) ~ .askcasa-form-label {
    opacity: 0;
    visibility: hidden;
}

/* 6. CHECKBOX CUSTOM */
.askcasa-form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.askcasa-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.askcasa-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.askcasa-checkbox-custom {
    width: 16px;
    height: 16px;
    border: 1px solid #888888;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
}

.askcasa-checkbox-input:checked ~ .askcasa-checkbox-custom {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.askcasa-checkbox-input:checked ~ .askcasa-checkbox-custom::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.askcasa-checkbox-text {
    font-size: 0.78rem;
    color: #555555;
    line-height: 1.4;
}

/* 7. NÚT SUBMIT */
.askcasa-submit-btn {
    width: auto; 
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 16px 35px !important;
    background-color: var(--color-bg-dark, #111);
    color: #ffffff;
    border: 2px solid var(--color-bg-dark, #111) !important;
    border-radius: 100px !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none !important; 
    transition: all 0.2s ease;
}

.askcasa-submit-btn:hover {
    background: var(--white, #fff);
    color: #000000;  
}

.reCAPTCHA-confirm {
    font-size: 11px; 
    color: #888; 
    text-align: start; 
    margin-top: 10px;
}





.grecaptcha-badge {
    right: -2px !important;
    bottom: 14px !important;
    width: 70px !important;
    height: 60px !important;
    overflow: hidden !important;
    opacity: 0.3 !important;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1), right 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease !important;
    filter: grayscale(100%) contrast(1.2) brightness(0.9) !important;
}

.grecaptcha-badge:hover {
    width: 256px !important;
    right: 0px !important;
    opacity: 1 !important;
    filter: none !important;
}



@media (max-width: 1280px) {
    .grecaptcha-badge {
        display: none !important;
    }
}

@media (max-width: 767px) {
    
    .askcasa-modal-overlay {
        position: fixed !important;
        top: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        left: 8px !important;
        inset: 8px !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        z-index: 100000 !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        padding: 0 !important;
    }

    .askcasa-modal-overlay.is-active,
    .askcasa-modal-overlay.is-open {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.5) !important;
    }

    .askcasa-modal-card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        background: #ffffff !important;
        padding: 32px 20px 20px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 0 !important;
        box-sizing: border-box !important;

        overflow-y: auto !important;
        scrollbar-width: none;
        -ms-overflow-style: none;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .askcasa-modal-card::-webkit-scrollbar {
        display: none !important;
    }

    .askcasa-modal-card .askcasa-modal-close-btn {
        position: absolute !important;
        top: 24px !important;
        right: 20px !important;
        z-index: 10 !important;
    }

    .askcasa-form-grid {
        grid-template-columns: 1fr !important;
    }

    .askcasa-form-submit-wrapper {
        margin: 20px 0 0px;
    }

    .reCAPTCHA-confirm {
        font-size: 9px; 
        color: #888; 
        text-align: center; 
        margin-top: 10px !important;
    }
}

