/* ============================================================
   Footer Redesign (corporate) — mengikuti docs/re-design/footer/footer.jpg
   Dimuat SETELAH style.complete.css hanya di layout user/main.php.
   Microsite TIDAK memuat file ini.
   Namespace baru: .footer-v2-* (rule footer lama di style.complete.css
   dibiarkan karena dipakai microsite _footer.php & popup indexhome).
   ============================================================ */

/* ---------- Banner newsletter ---------- */
.footer-v2-banner-wrap {
    background: #FFFFFF;
    padding: 30px 15px 25px;
}

.footer-v2-banner {
    position: relative;
    background: #1B7F4B;
    border-radius: 16px;
    padding: 28px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
}

.footer-v2-banner-deco {
    flex: 0 0 auto;
    width: 90px;
    height: 70px;
    opacity: .95;
}

.footer-v2-banner-deco svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-v2-banner-text {
    flex: 1 1 auto;
    color: #FFFFFF;
}

.footer-v2-banner-text h3 {
    margin: 0 0 8px;
    font-size: 1.35em;
    font-weight: 700;
    color: #FFFFFF;
}

.footer-v2-banner-text p {
    margin: 0;
    font-size: .92em;
    color: rgba(255, 255, 255, .85);
    max-width: 420px;
    line-height: 1.5;
}

.footer-v2-banner-form {
    flex: 0 1 430px;
    display: flex;
    align-items: stretch;
    background: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    min-width: 280px;
}

.footer-v2-banner-form input[type="text"],
.footer-v2-banner-form input[type="email"] {
    flex: 1 1 auto;
    border: none;
    outline: none;
    padding: 0 16px;
    height: 46px;
    font-size: .92em;
    color: #333333;
    background: #FFFFFF;
}

.footer-v2-banner-form button {
    flex: 0 0 auto;
    border: none;
    background: #F5C518;
    color: #1A1A1A;
    font-weight: 700;
    font-size: .92em;
    padding: 0 22px;
    height: 46px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s ease;
}

.footer-v2-banner-form button:hover,
.footer-v2-banner-form button:focus {
    background: #FFD84D;
    color: #1A1A1A;
}

.footer-v2-banner .subscribe-result {
    flex: 1 1 100%;
    margin: 10px 0 0;
    color: #FFFFFF;
    font-size: .9em;
}

/* ---------- Footer utama ---------- */
#footer.footer-v2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow-x: hidden;
    background: #0D3B2E;
    color: #FFFFFF;
    margin: 0;
    padding: 0;
}

.footer-v2-main {
    background: #0D3B2E;
    padding: 48px 0 36px;
    color: #FFFFFF;
}

.footer-v2-cols {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.footer-v2-col {
    padding: 0 12px;
    margin-bottom: 24px;
}

/* Lebar kolom desktop (6 kolom) — proporsi mockup */
.footer-v2-col:nth-child(1) { flex: 0 0 22%; max-width: 22%; }
.footer-v2-col:nth-child(2) { flex: 0 0 14%; max-width: 14%; }
.footer-v2-col:nth-child(3) { flex: 0 0 14%; max-width: 14%; }
.footer-v2-col:nth-child(4) { flex: 0 0 14%; max-width: 14%; }
.footer-v2-col:nth-child(5) { flex: 0 0 16%; max-width: 16%; }
.footer-v2-col:nth-child(6) { flex: 0 0 20%; max-width: 20%; }

.footer-v2-col h4 {
    margin: 0 0 18px;
    font-size: .82em;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #FFFFFF;
}

.footer-v2-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-v2-col li {
    margin-bottom: 10px;
}

.footer-v2-col a {
    color: #D8E5DE;
    font-size: .9em;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-v2-col a:hover,
.footer-v2-col a:focus {
    color: #FFFFFF;
    text-decoration: none;
}

/* Kolom 1: logo + tagline + social */
.footer-v2-brand-logo {
    display: block;
    margin-bottom: 10px;
}

.footer-v2-brand-logo img {
    height: 56px;
    width: auto;
}

.footer-v2-brand-tagline {
    font-size: .78em;
    font-style: italic;
    color: #A9C7B8;
    margin: 0 0 14px;
}

.footer-v2-brand-desc {
    font-size: .86em;
    line-height: 1.6;
    color: #D8E5DE;
    margin: 0 0 18px;
}

.footer-v2-social {
    display: flex;
    gap: 10px;
}

.footer-v2-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #FFFFFF;
    font-size: .95em;
    transition: background .2s ease;
}

.footer-v2-social a:hover,
.footer-v2-social a:focus {
    background: rgba(255, 255, 255, .25);
    color: #FFFFFF;
}

.footer-v2-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Kolom Download Aplikasi */
.footer-v2-download .footer-v2-download-desc {
    font-size: .86em;
    line-height: 1.55;
    color: #D8E5DE;
    margin: 0 0 16px;
}

.footer-v2-badges {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-v2-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 16px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 8px;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.footer-v2-badge:hover,
.footer-v2-badge:focus {
    background: #1A1A1A;
    border-color: rgba(255, 255, 255, .7);
    text-decoration: none;
}

.footer-v2-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.footer-v2-badge-label {
    color: #FFFFFF;
    font-size: .82em;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}

/* Kolom Hubungi Kami */
.footer-v2-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #D8E5DE;
    font-size: .88em;
    line-height: 1.5;
}

.footer-v2-contact li i,
.footer-v2-contact li svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #FFFFFF;
}

.footer-v2-contact li svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.footer-v2-contact a {
    color: #D8E5DE;
}

/* ---------- Bottom bar ---------- */
.footer-v2-bottom {
    background: #0D3B2E;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 18px 0;
}

.footer-v2-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-v2-copy {
    color: #9FB8AC;
    font-size: .84em;
    margin: 0;
}

.footer-v2-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-v2-bottom-links a {
    color: #9FB8AC;
    font-size: .84em;
    text-decoration: none;
    transition: color .2s ease;
}

.footer-v2-bottom-links a:hover,
.footer-v2-bottom-links a:focus {
    color: #FFFFFF;
}

/* Back-to-top: lingkaran putih dengan panah hijau (restyle #backtotop) */
#backtotop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #0D3B2E;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    transition: background .2s ease;
}

#backtotop:hover,
#backtotop:focus {
    background: #F0F0F0;
}

#backtotop i {
    line-height: 44px;
    font-size: 1.3em;
    color: #1B7F4B;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .footer-v2-col:nth-child(1) { flex: 0 0 33.333%; max-width: 33.333%; }
    .footer-v2-col:nth-child(2) { flex: 0 0 33.333%; max-width: 33.333%; }
    .footer-v2-col:nth-child(3) { flex: 0 0 33.333%; max-width: 33.333%; }
    .footer-v2-col:nth-child(4) { flex: 0 0 50%; max-width: 50%; }
    .footer-v2-col:nth-child(5) { flex: 0 0 50%; max-width: 50%; }
    .footer-v2-col:nth-child(6) { flex: 0 0 100%; max-width: 100%; }

    .footer-v2-banner {
        flex-wrap: wrap;
        padding: 24px;
    }

    .footer-v2-banner-deco {
        display: none;
    }

    .footer-v2-banner-form {
        flex: 1 1 100%;
    }
}

@media (max-width: 767px) {
    .footer-v2-banner-wrap {
        padding: 20px 12px;
    }

    .footer-v2-banner {
        padding: 20px 16px;
        gap: 15px;
    }

    .footer-v2-banner-text h3 {
        font-size: 1.15em;
    }

    .footer-v2-banner-form {
        flex-direction: column;
        background: transparent;
        border-radius: 0;
        min-width: 0;
        gap: 10px;
    }

    .footer-v2-banner-form input[type="text"],
    .footer-v2-banner-form input[type="email"] {
        border-radius: 8px;
        height: 46px;
        width: 100%;
    }

    .footer-v2-banner-form button {
        border-radius: 8px;
        height: 46px;
        width: 100%;
    }

    .footer-v2-col:nth-child(1),
    .footer-v2-col:nth-child(2),
    .footer-v2-col:nth-child(3),
    .footer-v2-col:nth-child(4),
    .footer-v2-col:nth-child(5),
    .footer-v2-col:nth-child(6) {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .footer-v2-main {
        padding: 32px 0 24px;
    }

    .footer-v2-download .footer-v2-download-desc {
        display: none;
    }

    /* Tombol store vertikal penuh, gap minimal 12px, area klik 44px */
    .footer-v2-badges {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .footer-v2-badge {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }

    .footer-v2-badge-label {
        white-space: normal;
        text-align: center;
    }

    .footer-v2-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    #backtotop {
        bottom: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }

    #backtotop i {
        line-height: 38px;
        font-size: 1.1em;
    }
}
