/* Popup tư vấn trang chủ (gộp từ index.css + overrides.css, bỏ phần không dùng) */
.consultation-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgba(15, 23, 42, 0.75); */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    /* backdrop-filter: blur(8px); */
    /* -webkit-backdrop-filter: blur(8px); */
}

.consultation-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #ffffff;
    border-radius: 24px;
    max-width: 600px;
    width: 92%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.consultation-popup.show .popup-content {
    transform: scale(1);
    opacity: 1;
}

.popup-header {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.popup-body {
    padding: 40px;
    flex: 1;
}

.close-btn {
    background: rgba(243, 107, 62, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    color: #F36B3E;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(243, 107, 62, 0.15);
}

.close-btn:hover {
    /* background: #F36B3E; */
    color: white;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(243, 107, 62, 0.25);
}

/* Step indicators */
.step-indicators {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.step-dot {
    width: 10px;
    height: 10px;
    background: rgba(var(--primary-color-rgb, 243, 107, 62), 0.2);
    border: 1px solid var(--primary-color, #F36B3E);
    border-radius: 50%;
    margin: 0 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.step-dot.active {
    background: var(--primary-color, #F36B3E) !important;
    width: 24px;
    border-radius: 10px;
}

/* Step content */
.popup-step {
    min-height: 400px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
}

.popup-title {
    color: #1E293B;
    font-weight: 700;
    font-size: 1.45rem;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.popup-title:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color, #F36B3E) !important;
    border-radius: 2px;
}

.popup-title span {
    color: var(--primary-color, #F36B3E);
    margin-right: 6px;
}

.popup-body p {
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.section-heading {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.section-heading i {
    background: rgba(243, 107, 62, 0.1);
    color: #F36B3E;
    margin-right: 12px;
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-body ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 1.5rem;
}

.popup-body .features-list li {
    margin-bottom: 12px;
    opacity: 0;
    transform: translateX(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: relative;
    padding-left: 32px;
    color: #475569;
    font-size: 0.95rem;
}

.popup-body .features-list li:last-child {
    margin-bottom: 0;
}

.popup-body .features-list li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    background-color: rgba(var(--primary-color-rgb, 243, 107, 62), 0.1);
    border-radius: 50%;
}

.popup-body .features-list li:after {
    content: "✓";
    position: absolute;
    left: 7px;
    top: 1px;
    color: var(--primary-color, #F36B3E);
    font-weight: bold;
}

.consultation-popup.show .popup-body li {
    opacity: 1;
    transform: translateX(0);
}

.consultation-popup.show .popup-body li:nth-child(1) { transition-delay: 0.15s; }
.consultation-popup.show .popup-body li:nth-child(2) { transition-delay: 0.25s; }
.consultation-popup.show .popup-body li:nth-child(3) { transition-delay: 0.35s; }
.consultation-popup.show .popup-body li:nth-child(4) { transition-delay: 0.45s; }

.contact-list {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(203, 213, 225, 0.8);
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #F36B3E;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 12px;
}

.contact-text {
    flex-grow: 1;
    color: #475569;
    line-height: 1.4;
    font-size: 0.9rem;
}

.commitment {
    background: rgba(var(--primary-color-rgb, 243, 107, 62), 0.05);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0 30px;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease 0.5s, transform 0.5s ease 0.5s;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #334155;
    font-weight: 500;
    text-align: center;
    border-left: 3px solid var(--primary-color, #F36B3E);
}

.commitment:before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 40px;
    color: rgba(var(--primary-color-rgb, 243, 107, 62), 0.2);
    font-family: Georgia, serif;
}

.consultation-popup.show .commitment {
    opacity: 1;
    transform: translateY(0);
}

/* Step navigation buttons */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
}

.btn-back, .btn-next {
    background: transparent;
    border: 1px solid var(--primary-color, #F36B3E);
    /* color: var(--primary-color, #F36B3E) !important; */
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-back {
    padding-left: 15px;
}

.btn-next {
    padding-right: 15px;
    margin-left: auto;
}

.btn-back i, .btn-next i {
    font-size: 0.8rem;
}

.btn-back:hover, .btn-next:hover {
    background: rgba(var(--primary-color-rgb, 243, 107, 62), 0.1);
    transform: translateY(-2px);
}

#acceptPopup {
    background: linear-gradient(135deg, var(--primary-color, #F36B3E), rgba(var(--primary-color-rgb, 243, 107, 62), 0.8));
    border: none;
    padding: 12px 36px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: white;
    letter-spacing: 0.5px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb, 243, 107, 62), 0.25), 0 1px 2px rgba(var(--primary-color-rgb, 243, 107, 62), 0.1);
    position: relative;
    overflow: hidden;
    margin-left: auto;
}

#acceptPopup:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

#acceptPopup:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(var(--primary-color-rgb, 243, 107, 62), 0.4), 0 2px 4px rgba(var(--primary-color-rgb, 243, 107, 62), 0.2);
}

/* Step transitions */
.popup-step {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup-step.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

.popup-step.fade-in {
    opacity: 0;
    transform: translateX(20px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .popup-content {
        width: 92%;
        height: auto;
    }

    .popup-body {
        padding: 30px 25px;
    }

    .popup-title {
        font-size: 1.3rem;
    }

    .popup-step {
        min-height: 350px;
    }

    .contact-list {
        padding: 15px;
    }

    .commitment {
        padding: 20px;
        font-size: 1rem;
    }

    .btn-back, .btn-next, #acceptPopup {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .popup-content {
        width: 90%;
        border-radius: 20px;
    }

    .popup-body {
        padding: 25px 20px;
    }

    .popup-title {
        font-size: 1.2rem;
    }

    .popup-step {
        min-height: 320px;
    }

    .popup-header {
        top: 10px;
        right: 10px;
    }

    .close-btn {
        width: 36px;
        height: 36px;
    }

    .section-heading i {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .section-heading {
        font-size: 0.95rem;
    }

    .contact-list {
        padding: 15px;
        margin-bottom: 1rem;
    }

    .commitment {
        padding: 15px;
        font-size: 0.95rem;
        margin: 15px 0 25px;
    }

    .popup-body .features-list li {
        font-size: 0.9rem;
        padding-left: 30px;
        margin-bottom: 10px;
    }

    .popup-body .features-list li:before {
        width: 20px;
        height: 20px;
    }

    .popup-body .features-list li:after {
        left: 6px;
    }

    .step-navigation {
        padding-top: 15px;
    }

    .btn-back, .btn-next {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    #acceptPopup {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
}

/* Popup styles */
.popup-title span {
    color: var(--primary-color);
}

.step-dot {
    border: 1px solid var(--primary-color, #F36B3E);
}

.step-dot.active {
    background-color: var(--primary-color, #F36B3E) !important;
}

.btn-next,
#acceptPopup {
    background-color: var(--primary-color, #F36B3E) !important;
    border-color: var(--primary-color, #F36B3E) !important;
}

.btn-back {
    color: var(--primary-color, #F36B3E) !important;
}

.features-list li:before,
.close-btn {
    color: var(--primary-color, #F36B3E) !important;
}

.popup-title:after {
    background-color: var(--primary-color, #F36B3E) !important;
}


/* Additional popup styles */
.features-list li {
    position: relative;
    padding-left: 25px;
}

.features-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color, #F36B3E);
    font-size: 20px;
    line-height: 1;
}

/* Popup font styles */
.consultation-popup {
    font-family: var(--body-font-family, 'Roboto', sans-serif);
}

.popup-title {
    font-family: var(--heading-font-family, 'Roboto', sans-serif);
}


/* ---- Popup tư vấn: không cắt chữ trên màn hình nhỏ/thấp ---- */
.consultation-popup { padding: 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.consultation-popup .popup-content { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; margin: auto; }
.consultation-popup .popup-body { overflow-wrap: anywhere; }
.consultation-popup .popup-step { min-height: 0; }
@media (max-width: 576px) {
    .consultation-popup .popup-content { width: 100%; border-radius: 18px; }
    .consultation-popup .popup-body { padding: 22px 16px 18px; }
    .consultation-popup .popup-title { font-size: 1.05rem; line-height: 1.35; padding-right: 2rem; }
    .consultation-popup .popup-body p, .consultation-popup .popup-body li, .consultation-popup .contact-text { font-size: .9rem; line-height: 1.55; }
    .consultation-popup .step-navigation { flex-wrap: wrap; gap: .5rem; }
    .consultation-popup .step-navigation button { flex: 1 1 auto; }
}
