/* ==============================================
   FOOTER — HVedu
   Thiết kế dựa trên Figma node 1:1252
   ============================================== */

/* ---------- Wrapper ngoài cùng ---------- */
.footer {
    /* Màu nền tổng thể: gradient teal tối (lấy từ Figma conic-gradient) */
    background: conic-gradient(
        from 90deg at 50% 50%,
        #15293a -58.78%,
        #13302e 3.66%,
        #152928 41.22%,
        #13302e 103.66%
    );
    /* Fallback màu đơn nếu conic-gradient không hỗ trợ */
    background-color: #152928;
    color: var(--white);
    font-family: var(--font-family);
    width: 100%;
    overflow: hidden;
    padding-bottom: 0;
}

/* Container chính giới hạn độ rộng */
.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}


/* ==============================================
   SECTION 1 — CTA Card
   ============================================== */

.footer-cta-wrapper {
    padding-top: 60px;
    padding-bottom: 40px;
}

/* Card hình chữ nhật bo góc */
.footer-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;

    /* Gradient nền card */
    background: linear-gradient(90deg, #163634 0%, #192a29 100%);
    border: 0.7px solid rgba(255, 255, 255, 0.3);
    border-radius: 34px;
    padding: 40px 55px;
    min-height: 239px;

    /* Clip content để tránh tràn ra ngoài bo góc */
    overflow: hidden;
    position: relative;
}
.footer-cta-card form {
    display: flex;
    align-items: center;
    gap: 48px;
}
.footer-cta-card form  .wpcf7-spinner {
    display: none;
}
/* ---- Phần chữ bên trái ---- */
.footer-cta-text {
    flex: 1;
    max-width: 472px;
    position: relative;
}

/* Dấu gạch vàng trang trí — người dùng sẽ thêm ảnh sau */
.footer-cta-underline {
    /* Placeholder cho hình trang trí phía dưới chữ trong Figma */
    /* Người dùng tự thêm ảnh vào đây */
    height: 8px;
    width: 138px;
    margin-bottom: 8px;
    /* Ẩn nếu chưa có nội dung */
    background: transparent;
}

.footer-cta-title {
    font-size: 36px;
    font-weight: 600;
    line-height: 46px;
    color: var(--white);
    margin: 0;
}

.decor-line {
    position: absolute;
    left: 90px;
    top: 100px;
}

/* ---- Form bên phải ---- */
.footer-cta-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex-shrink: 0;
    width: 401px;
}

/* Nhóm icon + input */
.footer-cta-input-group {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0 23px;
    height: 58px;
    gap: 16px;
    overflow: hidden;
    flex: 1;
}

.footer-cta-input-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Đảm bảo icon SVG hiện màu trắng */
.footer-cta-input-icon img {
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.footer-cta-input {
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    width: 100%;
    line-height: 46px;
}

.footer-cta-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Hàng chứa input email + nút Gửi */
.footer-cta-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Nút Gửi */
.footer-cta-btn {
    margin-top: 70px;
    flex-shrink: 0;
    background-color: #07a698;
    border: none;
    border-radius: 140px;
    height: 58px;
    width: 192px;
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.15s ease;
}

.footer-cta-btn:hover {
    background-color: #06918a;
    transform: translateY(-1px);
}

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


/* ==============================================
   SECTION 2 — Thông tin footer
   ============================================== */

.footer-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 8px;
    padding-bottom: 32px;
}

/* ---- Logo ---- */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon {
    width: 55px;
    height: auto;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    line-height: normal;
}

.footer-logo-subtitle {
    font-size: 11px;
    font-weight: 400;
    color: var(--white);
    line-height: normal;
    opacity: 0.85;
}

/* ---- Các cột nội dung ---- */
.footer-columns {
    display: flex;
    gap: 128px;
    align-items: flex-start;
}

/* Heading của mỗi cột */
.footer-col-heading {
    font-size: 24px;
    font-weight: 600;
    line-height: 24px;
    color: var(--white);
    margin: 0 0 28px 0;
    white-space: nowrap;
}

/* Cột liên hệ chiếm không gian rộng hơn */
.footer-col--contact {
    flex: 1;
    max-width: 433px;
}

/* ---- Danh sách liên hệ ---- */
.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 2px;
}

/* Đảm bảo icon hiện màu trắng */
.footer-contact-icon img {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-contact-text {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    line-height: 26px;
    color: var(--white);
}

.footer-contact-text strong {
    font-weight: 700;
}

.footer-contact-text span {
    font-weight: 400;
}

/* ---- Danh sách nav chung (Thông tin & Chính sách) ---- */
.footer-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-nav-link {
    font-size: 18px;
    font-weight: 400;
    line-height: normal;
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.footer-nav-link:hover {
    color: var(--white);
    text-decoration: underline;
}


/* ==============================================
   SECTION 3 — Copyright bar
   ============================================== */

.footer-bottom {
    position: relative;
    padding-bottom: 32px;
}

/* Đường kẻ ngang mờ */
.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.12);
    margin-bottom: 24px;
}

.footer-copyright {
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}


/* ==============================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================== */
@media (max-width: 1024px) {
    .decor-line {
        display: none;
    }

    .footer-inner {
        padding: 0 40px;
    }

    /* CTA card chuyển sang dọc */
    .footer-cta-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding: 40px;
        min-height: auto;
    }

    .footer-cta-form {
        width: 100%;
    }

    /* Giảm gap giữa các cột */
    .footer-columns {
        gap: 48px;
    }
}

@media (max-width: 1024px) {
    .footer-cta-btn {
        margin-top: auto;
    }
}

/* ==============================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================== */
@media (max-width: 768px) {
    .footer-inner {
        padding: 0 24px;
    }

    .footer-cta-wrapper {
        padding-top: 40px;
        padding-bottom: 32px;
    }

    .footer-cta-card {
        border-radius: 20px;
        padding: 32px 24px;
    }

    .footer-cta-title {
        font-size: 26px;
        line-height: 36px;
    }

    /* Hàng email + nút xếp dọc trên mobile nhỏ */
    .footer-cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .footer-cta-btn {
        margin-top: auto;
        width: 100%;
    }

    /* Các cột thông tin xếp dọc */
    .footer-columns {
        flex-direction: column;
        gap: 32px;
    }

    .footer-col--contact {
        max-width: 100%;
    }
}
