/* Footer — CTA dạng Sapo + nền tối (ghi đè theme) */

#vnt-footer.footer-site {
    border-top: none;
}

/* —— Banner đăng ký (gradient, bo góc lệch) —— */
.footer-cta-sapo {
    position: relative;
    z-index: 3;
    padding: 0;
    margin-top: 0;
    margin-bottom: -48px;
}

.footer-cta-sapo__inner {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 20px 22px 22px;
    text-align: center;
    /* Bo lớn giống mẫu Sapo (góc “viên thuốc” rõ) */
    border-radius: 56px 22px 56px 22px;
    background: linear-gradient(
        102deg,
        var(--cms-color-base, #cf3732) 0%,
        #3ecf8e 38%,
        #4ecdc4 68%,
        #7fdbff 100%
    );
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
    .footer-cta-sapo__inner {
        padding: 30px 110px;
        border-radius: 80px 10px 80px 10px;
    }
}

.footer-cta-sapo__title {
    margin: 0 0 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.28;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.footer-cta-sapo__title-line {
    display: block;
}

.footer-cta-sapo__title-line + .footer-cta-sapo__title-line {
    margin-top: 2px;
}

.footer-cta-sapo__accent {
    color: #064e3b;
}

@media (min-width: 768px) {
    .footer-cta-sapo__title {
        font-size: 22px;
        line-height: 1.3;
    }
}

@media (min-width: 992px) {
    .footer-cta-sapo__title {
        font-size: 24px;
    }
}

.footer-cta-sapo__lead {
    margin: 0 0 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 500;
    color: #1f2937;
}

@media (min-width: 768px) {
    .footer-cta-sapo__lead {
        margin-bottom: 14px;
        font-size: 14px;
    }
}

.footer-cta-sapo__form {
    width: 100%;
    margin: 0;
}

/* Honeypot — ẩn khỏi người dùng, vẫn trong DOM cho bot */
.footer-cta-sapo__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: 0;
}

/* Hàng ô nhập + nút: gọn, full width container */
.footer-cta-sapo__fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    align-items: center;
}

@media (min-width: 576px) {
    .footer-cta-sapo__fields {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .footer-cta-sapo__fields .footer-cta-sapo__input:nth-child(3) {
        grid-column: 1 / -1;
    }

    .footer-cta-sapo__fields .footer-cta-sapo__btn {
        grid-column: 1 / -1;
        justify-self: center;
        min-width: min(100%, 280px);
    }
}

@media (min-width: 992px) {
    .footer-cta-sapo__fields {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr) auto;
        gap: 10px 12px;
    }

    .footer-cta-sapo__fields .footer-cta-sapo__input:nth-child(3) {
        grid-column: auto;
    }

    .footer-cta-sapo__fields .footer-cta-sapo__btn {
        grid-column: auto;
        justify-self: stretch;
        min-width: 0;
    }
}

.footer-cta-sapo__input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
    line-height: 1.35;
    color: #111827;
    background: #ffffff;
    border: none;
    border-radius: 9999px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    outline: none;
    transition: box-shadow 0.2s ease;
    box-sizing: border-box;
}

.footer-cta-sapo__input::placeholder {
    color: #9ca3af;
}

.footer-cta-sapo__input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65), 0 4px 18px rgba(0, 0, 0, 0.08);
}

.footer-cta-sapo__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    width: 100%;
    height: 44px;
    padding: 0 18px 0 20px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--cms-color-base, #cf3732);
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    white-space: nowrap;
    box-sizing: border-box;
}

.footer-cta-sapo__btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: footerNlSpin 0.65s linear infinite;
}

.footer-cta-sapo--loading .footer-cta-sapo__btn-spinner {
    display: inline-block;
}

@keyframes footerNlSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 992px) {
    .footer-cta-sapo__btn {
        width: auto;
        min-height: 44px;
        height: 44px;
        padding: 0 20px 0 22px;
    }
}

.footer-cta-sapo__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
}

.footer-cta-sapo__btn:active {
    transform: translateY(0);
}

.footer-cta-sapo__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(145deg, #bae6fd 0%, #7dd3fc 100%);
    flex-shrink: 0;
}

.footer-cta-sapo__btn-icon svg {
    display: block;
}

.footer-cta-sapo__msg {
    margin: 4px 0 8px;
    min-height: 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.footer-cta-sapo__msg--ok {
    color: #065f46;
}

.footer-cta-sapo__msg--err {
    color: #991b1b;
}

.footer-cta-sapo--loading {
    pointer-events: none;
}

.footer-cta-sapo--loading .footer-cta-sapo__input {
    opacity: 0.88;
}

/* —— Vùng link (nền tối) —— */
#vnt-footer.footer-site .footer-main {
    padding: 96px 0 36px;
    background: linear-gradient(64.94deg, #054A30 -5.05%, #060C20 24.46%);
    /*background: #212529;*/
    color: #d1d5db;
}

#vnt-footer.footer-site .footer-title {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    color: #f9fafb;
}

#vnt-footer.footer-site .footer-title h3,
#vnt-footer.footer-site .footer-title h4 {
    color: inherit;
}

#vnt-footer.footer-site .footer_link .link-content ul li a {
    color: #c4c4c4;
}

#vnt-footer.footer-site .footer_link .link-content ul li a:hover {
    color: #ffffff;
}

#vnt-footer.footer-site .footer_link .link-content ul li a:after {
    color: var(--cms-color-base, #cf3732);
}

#vnt-footer.footer-site .footer_faqs ul li {
    color: #d1d5db;
    background-image: none;
    padding-left: 0;
    min-height: 0;
}

#vnt-footer.footer-site .footer_faqs .phone {
    color: var(--cms-color-base, #cf3732);
}

/* —— Footer bottom —— */
#vnt-footer.footer-site .footer-bottom {
    padding: 0;
    background: #060c20;
    color: #b8bcc4;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#vnt-footer.footer-site .footer-bottom a {
    color: #e5e7eb;
}

#vnt-footer.footer-site .footer-bottom a:hover {
    color: #ffffff;
}

#vnt-footer.footer-site .copyright,
#vnt-footer.footer-site .copyright span {
    color: #9ca3af;
}

#vnt-footer.footer-site .footer-company,
#vnt-footer.footer-site .footer-company a {
    color: #c4c4c4;
}

#vnt-footer.footer-site .footer-company .before:before {
    color: var(--cms-color-base, #cf3732);
}

#vnt-footer.footer-site .w_border_top .bocongthuong {
    color: #9ca3af;
}

#vnt-footer.footer-site .phone-map .w-map a,
#vnt-footer.footer-site .phone-map .w-phone a {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

/* Hiện cột link + FAQ trên mobile (theme.css ẩn từ ≤1024px) */
@media screen and (max-width: 1024px) {
    #vnt-footer.footer-site .footer_faqs,
    #vnt-footer.footer-site .footer_link {
        display: block !important;
    }

    #vnt-footer.footer-site .footer-main {
        padding-top: 88px;
        padding-bottom: 24px;
    }

    #vnt-footer.footer-site .footer-cta-sapo {
        margin-bottom: -36px;
    }

    #vnt-footer.footer-site .footer-cta-sapo__inner {
        padding: 18px 16px 20px;
        border-radius: 44px 18px 44px 18px;
    }
}
