/*** End ****/

.blog-info-tag span:before {
    content: ',';
    position: absolute;
    bottom: 6px;
    right: 0;
    height: 100%;
    font-size: 16px;
    width: auto;
    padding-right: 5px;
}

.blog-info-tag span {
    position: relative;
    display: inline-block;
    padding-right: 10px;
}

.blog-info-tag span:last-child:before {
    display: none
}

.wpcf7 form .wpcf7-response-output {
    border: 0;
    margin: 15px 0;
    padding: 0;
    font-weight: bold;
    font-size: 12px;
}

.wpcf7 form.sent .wpcf7-response-output {
    color: #46b450;
}

.wpcf7 form.invalid .wpcf7-response-output {
    color: red;
}

span.price-from {
    display: none;
}
.processing {
    opacity: 0.5 !important;
    position: relative;
    pointer-events: none !important;
}

.processing::before {
    height: 1em;
    width: 1em;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -0.5em;
    margin-top: -0.5em;
    content: "";
    -webkit-animation: spin 1s ease-in-out infinite;
    animation: spin 1s ease-in-out infinite;
    background: url(../images/loader.svg) center center;
    background-size: cover;
    line-height: 1;
    text-align: center;
    font-size: 2em;
    color: rgba(0, 0, 0, 0.75);
    z-index: 99;
}

.hide-sitename {
    visibility: hidden;
    height: 0;
    width: 0;
}

#wp-admin-bar-wp-logo img {
    max-width: 100%;
    height: 100%;
}

.mona-empty {
    color: white;
}

.ez-toc-debug-messages {
    display: none;
}
input#submitResFile {
    display: none;
}
input#submitFormBanner {
    display: none;
}
input#submitContact {
    display: none;
}
input#submitReportInfo {
    display: none;
}
input#submitRegister {
    display: none;
}
input#submitRegisterSolution {
    display: none;
}
span[data-name="your-purpose"] {
    display: none !important;
}

.popupmaker-blog-ebook form input {
    height: 5rem;
}
.popupmaker-blog-ebook .form-select_heading {
    padding: 1.2rem 2rem;
}
.popupmaker-blog-ebook label.btn {
    margin: 3.2rem auto;
}

.popupmaker-blog-ebook {
    background: #ffffff;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
}

.popupmaker-blog-ebook__visual-wrapper {
    border-radius: 12px 0 0 12px;
}

/* 2. Cấu trúc hiển thị trên PC (Màn hình &gt; 768px) */
@media (min-width: 769px) {
    .popupmaker-blog-ebook__content {
        display: grid;
        grid-template-columns: 1.2fr 1fr; 
        gap: 0 50px;
        padding: 50px;
    }

    /* Đưa ảnh sang cột bên trái */
    .popupmaker-blog-ebook__visual-wrapper {
        grid-column: 1;
        grid-row: 1 / span 10; /* Kéo dài ảnh dọc theo các hàng nội dung */
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f1f5f9; 
        margin: -50px 0 -50px -50px; 
        padding: 40px;
    }

    /* Đưa các thành phần chữ và form sang cột bên phải */
    .popupmaker-blog-ebook__badge,
    .popupmaker-blog-ebook__title,
    .popupmaker-blog-ebook__description,
    .popupmaker-blog-ebook__form,
    .popupmaker-blog-ebook__footer {
        grid-column: 2;
    }

    .popupmaker-blog-ebook__title {
        font-size: 28px;
        margin-bottom: 25px;
    }

    .popupmaker-blog-ebook__image {
        max-width: 100%;
        transform: rotate(-4deg);
        box-shadow: 20px 20px 40px rgba(0,0,0,0.15);
        transition: transform 0.4s ease;
    }

    .popupmaker-blog-ebook__container:hover .popupmaker-blog-ebook__image {
        transform: rotate(0deg) scale(1.05);
    }
}

/* 3. Cấu trúc hiển thị trên Mobile (Màn hình &lt;= 768px) */
@media (max-width: 768px) {
    .popupmaker-blog-ebook__content {
        display: flex;
        flex-direction: column; 
        padding: 40px 20px;
    }

    .popupmaker-blog-ebook__badge {
        text-align: center;
        margin-bottom: 8px;
    }

    .popupmaker-blog-ebook__title {
        font-size: 22px;
        text-align: center;
        margin-bottom: 25px;
    }

    /* Ảnh nằm giữa Tiêu đề và Mô tả, rộng 72% */
    .popupmaker-blog-ebook__visual-wrapper {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 25px;
        background: transparent; /* Mobile không cần nền xám */
    }

    .popupmaker-blog-ebook__mockup {
        width: 64%; 
    }

    .popupmaker-blog-ebook__image {
        width: 100%;
        height: auto;
        display: block;
        box-shadow: 10px 15px 25px rgba(0,0,0,0.1);
        transform: none !important; 
    }

    .popupmaker-blog-ebook__description {
        text-align: center;
        font-size: 14px;
        margin-bottom: 20px;
    }
}

/* 4. Style chi tiết các thành phần (Dùng chung) */
.popupmaker-blog-ebook__badge {
    color: #00458e;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: block;
}

.popupmaker-blog-ebook__title {
    color: #1e293b;
    font-weight: 900;
    line-height: 1.3;
    margin-top: 0;
}

.popupmaker-blog-ebook__description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 14px;
}

/* 5. Style Form Contact Form 7 */
.popupmaker-blog-ebook__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popupmaker-blog-ebook__field {
    position: relative;
}

.popupmaker-blog-ebook__field i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    z-index: 1;
}

/* Ép kiểu cho input của CF7 */
.popupmaker-blog-ebook__input {
    width: 100% !important;
    padding: 12px 15px 12px 42px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: all 0.3s;
    box-sizing: border-box;
}

.popupmaker-blog-ebook__input:focus {
    border-color: #00458e !important;
    box-shadow: 0 0 0 3px rgba(0, 69, 142, 0.1) !important;
    outline: none;
}

.popupmaker-blog-ebook__button {
    background: #ff9800;
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 10px;
}

.popupmaker-blog-ebook__button:hover {
    background: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.2);
}

.popupmaker-blog-ebook__footer {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}