.site-main {
    position: relative;
    z-index: 1;
}

.group-content {
    position: relative;
    z-index: 5;
}

.group-content::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(15px);
    box-shadow: rgba(0, 0, 0, 0.1) 0px -3px 25px 0px;
    background-color: rgba(255, 255, 255, 0.9);
}

/*section hero*/
.sec-hero {
    position: relative;
    min-height: calc(100vh);
    z-index: 1;
}

.inner-sec-hero {
    display: flex;
    flex-direction: column;
}

.page-template-home .inner-sec-hero {
    justify-content: center;
    min-height: 80vh;
}

.sec-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.title-section {
    font-size: clamp(2rem, 7vw, 5rem);
    position: relative;
    z-index: 1;
}

.title-section h2.title-sec-hero {
    margin-top: clamp(60px, 12vw, 100px);
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
}


.cta-sec-hero {
    display: flex;
    gap: 50px;
    margin-top: 1rem;
    margin-bottom: clamp(60px, 12vw, 100px);
}

.sec-hero__footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2vh;
}

/* CSS (thêm vào style.css) */
.user-widget {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatars {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 120px;
}

.avatar {
    aspect-ratio: 1/1;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255);
    position: relative;
}

/* overlap: mỗi avatar dịch trái 12px so với trước */
.avatars .avatar:nth-child(1) {
    transform: translateX(0);
    z-index: 1;
}

.avatars .avatar:nth-child(2) {
    transform: translateX(-12px);
    z-index: 2;
}

.avatars .avatar:nth-child(3) {
    transform: translateX(-24px);
    z-index: 3;
}

/* text */
.user-widget .user-widget-text {
    font-size: 0.8rem;
}

.eye-container {
    position: absolute;
    max-width: 1000px;
    max-height: 700px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden;
    pointer-events: none;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.inner-eye-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sec-hero__video {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.sec-hero__video .bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* giữ tỉ lệ video và phủ full thẻ */
    transform: translate(-50%, -50%);
    z-index: 1;
}

@media (min-width: 1280px) {
    .title-section h2.title-sec-hero {
        max-width: 80%;
    }
}

@media (min-width: 1100px) {
    .title-section h2.title-sec-hero {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .page-template-home .inner-sec-hero {
        min-height: 65vh;
    }

    .sec-hero__video {
        position: relative;
        width: 100%;
        height: 60vh;
        overflow: hidden;
    }
}

/*section dịch vụ*/
.header-section {
    margin-bottom: 60px;
}

@media (max-width: 767px) {
    .header-section {
        margin-bottom: 30px;
    }
}

.sec-services.section {
    padding-top: 60px;
    padding-bottom: 0;
}

.sec-services__circle {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.6);
    padding: 25px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-200px);
    z-index: 5;
}

.sec-services__circle:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    cursor: pointer;
}

.sec-services__circle:nth-child(1) {
    bottom: 0;
    height: 260px;
    left: 0;
    width: 260px;
}

.sec-services__circle:nth-child(2) {
    bottom: 0;
    height: 280px;
    left: 405px;
    width: 280px;
}

.sec-services__circle:nth-child(3) {
    bottom: 0;
    height: 140px;
    left: 250px;
    width: 140px;
}

.sec-services__circle:nth-child(4) {
    bottom: 254px;
    height: 160px;
    left: 0;
    width: 160px;
}

.sec-services__circle:nth-child(5) {
    bottom: 145px;
    height: 200px;
    left: 229px;
    width: 200px;
}

.sec-services__circle:nth-child(6) {
    bottom: 0;
    height: 200px;
    left: 464px;
    width: 200px;
}

.sec-services__circle:nth-child(7) {
    bottom: 220px;
    height: 180px;
    left: 160px;
    width: 180px;
}

.sec-services__circle:nth-child(8) {
    bottom: 152px;
    height: 200px;
    left: 334px;
    width: 200px;
}


.sec-services__circle img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sec-services__circle p {
    margin: 0;
    font-size: clamp(14px, 2vw, 16px);
    line-height: 1.2;
}

.sec-services .sec-title {
    font-size: 1.2rem;
}

.inner-sec-services {
    padding-top: 30px;
    border-top: 1px solid #d0d0d0;
}

.service-list {
    position: relative;
    z-index: 1;
}

.service-item {
    padding-top: 30px;
    padding-bottom: 50px;
    border-top: 1px solid #d0d0d0;
}

.service-item:first-child {
    padding-top: 0;
    border-top: none;
}

.title-service {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.desc-service ol {
    padding-left: 20px;
    margin-bottom: 0;
    counter-reset: desc-counter; /* Khởi tạo counter */
    display: flex;
    flex-direction: column;
    gap: 0 20px;
    color: var(--gray-color);
}

.desc-service ol li {
    counter-increment: desc-counter; /* Tăng counter mỗi li */
    font-size: 0.9rem;
    line-height: 1;
    margin-top: 0.5rem;
    padding-left: 20px; /* chừa chỗ cho số */
    position: relative;
}

.desc-service ol li::before {
    content: counter(desc-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
}

.desc-service ul li::marker {
    color: var(--primary-color);
}

/* Container hover */
.mdw-table-hover {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 9999999;
    pointer-events: none;
}

/* Khi hover */
.mdw-table-hover.showing {
    opacity: 1;
    pointer-events: auto;
}

.mdw-hover-inner {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: grid;
    place-items: center;
}

/* Nút hover */
.hover-btn {
    font-size: 24px;
    display: inline-block;
    color: #FFFFFF;
    transition: background 0.3s;

}

@media (min-width: 768px) {
    .sec-services.section {
        padding-bottom: 120px;
    }
}

@media (min-width: 1024px) {
    .sec-services.section {
        padding-top: 110px;
        padding-bottom: 120px;
    }
}

@media (max-width: 993px) {
    .sec-services__circle:nth-child(1) {
        bottom: 0;
        height: 200px;
        left: 0;
        width: 200px;
    }

    .sec-services__circle:nth-child(2) {
        bottom: 0;
        height: 220px;
        left: 309px;
        width: 220px;
    }

    .sec-services__circle:nth-child(3) {
        bottom: 0;
        height: 120px;
        left: 196px;
        width: 120px;
    }

    .sec-services__circle:nth-child(4) {
        bottom: 200px;
        height: 160px;
        left: 0;
        width: 160px;
    }

    .sec-services__circle:nth-child(5) {
        bottom: 120px;
        height: 160px;
        left: 170px;
        width: 160px;
    }
}

@media (max-width: 767px) {
    .sec-services.section {
        padding-bottom: 220px;
    }

    .sec-services__circle:nth-child(1) {
        bottom: 0;
        height: 180px;
        left: 0;
        width: 180px;
    }

    .sec-services__circle:nth-child(2) {
        bottom: 0;
        height: 200px;
        left: 284px;
        width: 200px;
    }

    .sec-services__circle:nth-child(3) {
        bottom: 0;
        height: 100px;
        left: 175px;
        width: 100px;
    }

    .sec-services__circle:nth-child(4) {
        bottom: 180px;
        height: 140px;
        left: 0;
        width: 140px;
    }

    .sec-services__circle:nth-child(5) {
        bottom: 100px;
        height: 140px;
        left: 158px;
        width: 140px;
    }

    .mdw-table-portfolio .mdw-table-hover-images {
        display: none;
    }
}

@media (max-width: 575px) {
    .sec-services.section {
        padding-bottom: 210px;
    }

    .sec-services__circle:nth-child(1) {
        bottom: 0;
        height: 140px;
        left: 0;
        width: 140px;
    }

    .sec-services__circle:nth-child(2) {
        bottom: 0;
        height: 120px;
        left: 140px;
        width: 120px;
    }

    .sec-services__circle:nth-child(3) {
        bottom: 0;
        height: 100px;
        left: 260px;
        width: 100px;
    }

    .sec-services__circle:nth-child(4) {
        bottom: 111px;
        height: 130px;
        left: 88px;
        width: 130px;
    }

    .sec-services__circle:nth-child(5) {
        bottom: 93px;
        height: 110px;
        left: 218px;
        width: 110px;
    }

    .service-item .left-service {
        width: 100%;
    }
}

/*section tầm nhìn sứ mệnh*/
.vision-mission {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vision-mission .container {
    padding-right: 20px;
}

.inner-vm-left {
    width: 100%;
}

.vm-left h2.sec-title {
    margin-bottom: 20px;
    color: var(--white-color);
}

.vm-left p.sec-subtitle {
    max-width: 350px;
    color: #b0c8eb;
    font-size: clamp(14px, 1.5vw, 16px);
    text-align: justify;
}

.vm-right {
    overflow: hidden;
}

.inner-vm-right {
    position: relative;
    cursor: none;
    overflow: hidden;
}

.vm-text {
    padding: 10px 0;
    font-size: clamp(40px, 5vw, 120px);
    line-height: 1;
    font-weight: 500;
    color: #3c7ad8;
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
}

/* Lớp highlight xanh nõn chuối */
.vm-text.highlight {
    color: var(--secondary-color);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle 125px at var(--x, 50%) var(--y, 50%), #ffffff 100%, transparent 100%);
    mask-image: radial-gradient(circle 125px at var(--x, 50%) var(--y, 50%), #ffffff 100%, transparent 100%);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: mask-position 0.1s linear;
}

@media (max-width: 993px) {
    .vm-text.highlight {
        -webkit-mask-image: radial-gradient(circle 75px at var(--x, 50%) var(--y, 50%), #ffffff 100%, transparent 100%);
        mask-image: radial-gradient(circle 75px at var(--x, 50%) var(--y, 50%), #ffffff 100%, transparent 100%);
    }
}

@media screen and (max-width: 768px) {
    .vision-mission {
        padding-bottom: 20px;
    }

    .inner-vm-left {
        padding-top: 50px;
        padding-bottom: 20px;
    }
}

/*section dự án*/

.sec-projects .header-section {
    align-items: flex-end;
}

/* Layout grid 4 cột */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 40px;
}

/* Card chung */
.project-card {
    height: 100%;
    width: 100%;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-card .project-title {
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 400;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* giới hạn 3 dòng */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis; /* dấu ... nếu tràn */
}

/* Ban đầu grid-item nhỏ và mờ */
.grid-item {
    opacity: 0.5;
    transform: scale(0.5); /* chỉ nhỏ, không bay lên */
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* Khi AOS active (scroll vào) */
.grid-item.aos-animate {
    opacity: 1;
    transform: scale(1); /* trở về bình thường */
}

/* Positioning cho từng item */
.item-1 {
    grid-column: 1;
    grid-row: 1;
}

.item-2 {
    grid-column: 2;
    grid-row: 1;
}

.item-3 {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
}

.item-4 {
    grid-column: 1 / 3;
    grid-row: 2 / 4;
}

.item-5 {
    grid-column: 3;
    grid-row: 3;
}

.item-6 {
    grid-column: 4;
    grid-row: 3;
}

/* Card lớn */
.project-card .project-image {
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1120px) {
    .projects-grid {
        gap: 30px;
    }
}

@media (max-width: 968px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(220px, auto);
        gap: 20px;
    }

    /* Reset grid positions nếu cần */
    .item-1, .item-2, .item-3, .item-4, .item-5, .item-6 {
        grid-column: auto;
        grid-row: auto;
    }

    .project-card .project-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(200px, auto);
    }

    .project-card .project-title {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-auto-rows: minmax(150px, auto);
        gap: 15px;
    }

    .project-card .project-title {
        font-size: 0.9rem;
    }
}

/*section đối tác*/
.partners-section {
    background-color: var(--white-color);
}

.partners-section .sec-title {
    font-size: 19px;
}

.partners-section .partner-item {
    width: 20%;
}


.inner-partner-item {
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.partner-logo {
    width: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: grayscale(100%);
}

.partner-logo:hover {
    filter: none;
}
@media (max-width: 1024px) {
    .partners-section .partner-item {
        width: 25%;
    }
}

@media (max-width: 768px) {
    .partners-section .partner-item {
        width: 33.33%;
    }

    .inner-partner-item {
        padding: 0;
    }
}

/*@media (max-width: 480px) {*/
/*    .partners-section .partner-item {*/
/*        width: 50%;*/
/*    }*/
/*}*/
/*section feedback của khách hàng*/
.sec-testimonial {
    position: relative;
    z-index: 2;
}

.sec-testimonial .swiper-wrapper {
    align-items: center;
}

.testimonial-swiper .swiper-slide {
    padding-bottom: 20px;
}

.inner-testimonial-item {
    display: flex;
    flex-direction: column;
}

.testimonial-content {
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text-color);
}

.testimonial-item-right {
    justify-content: flex-end;
}

.testimonial-author {
    font-size: 1rem;
    color: var(--gray-color)
}

.testimonial-author .logo {
    height: clamp(1.25rem, 4vw, 2rem);
    width: auto;
}

.testimonial-author .logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.testimonial-author .avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-author .circle-avatar {
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(var(--primary-color) 0deg 18deg, transparent 18deg 30deg);
    width: 100%;
    height: 100%;
    -webkit-animation: animation-circle-avatar 25s linear infinite;
    animation: animation-circle-avatar 25s linear infinite;
}

.testimonial-author .avatar img {
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    max-width: 3.5rem;
    max-height: 3.5rem;
    object-fit: cover;
    position: absolute;
    overflow: hidden;
}

@-webkit-keyframes animation-circle-avatar {
    from {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.testimonial-author span.name {
    display: block;
    color: var(--text-color);
}

.icon-quote {
    max-width: 110px;
    height: auto;
    overflow: hidden;
    margin-bottom: clamp(20px, 4vw, 50px);
}

.icon-quote img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.sec-testimonial .swiper-pagination {
    bottom: 0 !important;
}

@media (min-width: 992px) {
    .testimonial-content {
        line-height: 1.2;
    }
}

@media (min-width: 1600px) {
    .testimonial-content {
        margin-bottom: 35px;
    }

    .testimonial-author {
        font-size: 1.2rem;
    }
}

@media (max-width: 1024px) {
    .testimonial-content {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .testimonial-content {
        font-size: 1.5rem;
        margin-bottom: 4rem;
    }
}

@media (max-width: 480px) {
    .testimonial-content {
        font-size: 1.25rem;
    }

    .inner-testimonial-item {
        padding-top: 30px;
    }

    .icon-quote {
        max-width: 100px;
    }
}

.blog-item {
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-item:hover {
    transform: translateY(-5px);
}

.blog-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-content {
    padding: 20px 0;
}

.blog-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-title a {
    color: inherit;
    text-decoration: none;
}

.blog-excerpt {
    font-size: 15px;
    color: #555;
}

.sec-blog .blog-prev,
.sec-blog .blog-next {
    position: relative;
    cursor: pointer;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-color, #000000);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0;
    margin: 0;
    border: 0;
    font-weight: inherit;
    text-align: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    background: rgba(0, 0, 0, 0.08);
    width: 2.25rem;
    height: 2.25rem;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    border-radius: 50%;
}

.sec-blog .swiper-button-disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
}

.blog-pagination {
    font-optical-sizing: auto;
    text-transform: uppercase;
    font-weight: 400;
    font-variation-settings: "wdth" 100, "MONO" 100, "wght" 400;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: 0.04rem;
    margin: 0;
    color: var(--text-color, #000000);
}

@media (hover: hover) and (pointer: fine) {
    .sec-blog .blog-prev:hover,
    .sec-blog .blog-next:hover {
        background: var(--primary-color, #000000);
        color: var(--white-color, #FFFFFF);
    }
}

@media (min-width: 960px) {
    .blog-pagination {
        font-size: 1.25rem;
        letter-spacing: 0.0375rem;
    }
}

@media (min-width: 1280px) {
    .sec-blog .blog-prev,
    .sec-blog .blog-next {
        width: 3rem;
        height: 3rem;
    }
}

/*section liên hệ*/
.sec-contact {
    padding-top: 100px;
    position: relative;
    z-index: 5;
}

.contact-left {
    height: 100%;
    padding-right: clamp(20px, 4vw, 200px);
    padding-bottom: 60px;
}

@media (min-width: 768px) {
    .blog-swiper {
        overflow: visible !important;
    }
}

@media (min-width: 993px) {
    .sec-contact .contact-left {
        gap: 100px;
        padding-right: clamp(20px, 4vw, 200px);
    }
}

.sec-contact h2.sec-title {
    font-size: clamp(48px, 7vw, 5rem);
    line-height: 1.1;
    margin-bottom: 30px;
    color: var(--white-milk-color);
}

@media (min-width: 768px) and (max-width: 993px) {
    .contact-info .address .address-text {
        max-width: 70%;
    }
}

@media (min-width: 1100px) {
    .contact-info .address .address-text {
        max-width: 60%;
    }
}

.contact-right {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateY(1px);
    background: var(--white-color);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.contact-form__header {
    color: var(--gray-color);
    font-size: 0.9rem;
}

/*css contact form 7*/
.contact-form {
    height: 100%;
    padding: 40px;
}

.wpcf7-form {
    height: 100%;
}

.contact-form .row {
    height: 100%;
}

.wpcf7-form p {
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .contact-form {
        padding: 20px;
    }

    .wpcf7-form p {
        margin-bottom: 20px;
    }
}

.wpcf7 label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 6px;
    color: var(--gray-color);
}

.wpcf7 input.wpcf7-text,
.wpcf7 textarea {
    font-family: 'SVN-Poppins', sans-serif;
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.3s ease;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.wpcf7-not-valid-tip {
    font-size: 0.6rem;
    text-align: right;
}

.wpcf7 textarea {
    height: 100px;
}

.wpcf7 input.wpcf7-text:focus,
.wpcf7 textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Bọc ngoài */
.btn-wrap {
    position: relative;
    display: inline-block;
}

/* Style nút */
.btn-wrap .wpcf7-submit {
    padding: 0.75rem 1rem 0.75rem 2.2rem; /* chừa khoảng trống cho icon */
    border-radius: 99px;
    font-family: 'SVN-Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2; /* để nổi hơn spinner */
}

.btn-wrap.btn-primary-cf7 .wpcf7-submit {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
}

/* Icon mũi tên tròn nền trắng */
.btn-wrap::before {
    content: "\f061"; /* arrow-right */
    font-family: "Font Awesome 6 Pro";
    font-weight: 900; /* solid */
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) scale(0.4);
    width: 22px;
    height: 22px;
    font-size: 0.1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
    transition: transform .1s ease;
    z-index: 3;
}

.btn-wrap.btn-primary-cf7::before {
    color: var(--primary-color);
    background: #fff;
}

/* Hover effect */
.btn-wrap:hover::before {
    transform: translateY(-50%) scale(1);
    font-size: 0.8rem;
}

/* Spinner Contact Form 7 đẹp */
.btn-wrap .wpcf7-spinner {
    position: absolute;
    right: -50px; /* nằm bên phải nút */
    top: 50%;
    transform: translateY(-50%);
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 5;
}

/* Animation quay */
@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.wpcf7 .submit p {
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
}

/* Custom file upload */
.file-wrap {
    position: relative;
}

.custom-file {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.custom-file input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.custom-file .file-label {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Nếu tên file dài quá thì sẽ có ... */
}

.custom-file .file-label:before {
    content: "";
    width: 1.375rem;
    height: 1.125rem;
    display: inline-flex;
    background: url(https://demo.hap.agency/wp-content/uploads/2025/10/icon-upload.svg) no-repeat center;
    background-size: contain;
}

.custom-file:hover {
    background: #f5f5f5;
}

.wpcf7 select {
    appearance: none; /* ẩn style mặc định */
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23333' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center;
    font-family: 'SVN-Poppins', sans-serif;
    width: 100%;
    padding: 10px 0;
    border: none;
    outline: none;
    border-bottom: 1px solid #ccc;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.3s ease;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.wpcf7 select option {
    border: none !important;
    padding: 5px 10px !important;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 400;
}

/* Reset mặc định */
.wpcf7 form .wpcf7-response-output {
    margin: 0 !important;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    border: none !important;
}

/* Hiệu ứng xuất hiện */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Thành công */
.wpcf7 form.sent .wpcf7-response-output {
    color: #1e7e34;
}

/* Lỗi validate (thiếu trường) */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    color: #dc3232;
}

/* Lỗi gửi server (mail fail) */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
    color: #f39c12;
}

/* Thông báo đang gửi */
.wpcf7 form.submitting .wpcf7-response-output {
    color: #3498db;
}
