.ms-footer {
    background: #f8f9fa;
    color: var(--fluent-neutral-primary);
    margin-top: 60px;
}

.footer-newsletter {
    background: var(--fluent-primary);
    padding: 48px 0;
}

.footer-newsletter .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.newsletter-content {
    flex: 0 0 auto;
}

.newsletter-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.newsletter-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
}

.newsletter-form {
    flex: 1;
    max-width: 500px;
}

.newsletter-form .input-group {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.newsletter-form .form-control {
    padding: 16px 20px;
    border: none;
    font-size: 15px;
    background: transparent;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
    outline: none;
}

.newsletter-form .btn-primary {
    padding: 16px 32px;
    background: var(--fluent-primary-dark);
    border: none;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 0;
}

.newsletter-form .btn-primary:hover {
    background: #004578;
}

.newsletter-message {
    font-size: 13px;
    margin-top: 8px;
}

.newsletter-message.success {
    color: var(--fluent-white);
}

.newsletter-message.error {
    color: #FFB6C1;
}

.footer-main {
    padding: 50px 0 30px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-divider {
    border-color: #dee2e6;
    margin: 0;
}

.footer-brand-name {
    color: var(--fluent-neutral-dark);
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: var(--fluent-primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ffffff;
}

.footer-brand-desc {
    color: var(--fluent-neutral-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.social-icon {
    width: 36px;
    height: 36px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fluent-neutral-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.social-icon:hover {
    background: var(--fluent-primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-heading {
    color: var(--fluent-neutral-dark);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-menu a {
    color: var(--fluent-neutral-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.footer-menu a:hover {
    color: var(--fluent-primary);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: var(--fluent-neutral-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li i {
    color: var(--fluent-primary);
    width: 16px;
}

.footer-bottom {
    background: #f0f2f5;
    padding: 20px 0;
}

.copyright {
    color: var(--fluent-neutral-secondary);
    font-size: 13px;
}

.footer-tagline {
    color: var(--fluent-neutral-tertiary);
    font-size: 13px;
}

@media (max-width: 991px) {
    .footer-newsletter .container {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .newsletter-form {
        max-width: 100%;
        width: 100%;
    }

    .newsletter-title {
        font-size: 20px;
    }

    .footer-main {
        padding: 40px 0 20px;
    }
}

@media (max-width: 767px) {
    .footer-newsletter {
        padding: 32px 0;
    }

    .newsletter-title {
        font-size: 18px;
    }

    .newsletter-desc {
        font-size: 13px;
    }

    .footer-brand {
        text-align: center;
        margin-bottom: 24px;
    }

    .footer-brand-name {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-heading {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .footer-menu li {
        margin-bottom: 8px;
    }

    .footer-menu a {
        font-size: 13px;
    }

    .footer-contact li {
        font-size: 13px;
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .footer-newsletter {
        padding: 24px 0;
    }

    .newsletter-form .input-group {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
    }

    .newsletter-form .form-control {
        border-radius: 8px;
        margin-bottom: 10px;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 14px 16px;
        width: 100%;
    }

    .newsletter-form .btn-primary {
        border-radius: 8px;
        width: 100%;
        padding: 14px 24px;
    }

    .footer-main {
        padding: 30px 0 16px;
    }

    .footer-brand-desc {
        font-size: 13px;
    }

    .footer-bottom {
        padding: 16px 0;
    }

    .footer-bottom .row>div {
        margin-bottom: 8px;
    }

    .copyright,
    .footer-tagline {
        font-size: 12px;
    }

    /* Improve footer columns on mobile */
    .footer-main .col-6 {
        margin-bottom: 20px !important;
    }
}