/* ============================================
   SHARED FOOTER STYLES
   Import this file in any page that uses the footer partial
   ============================================ */

/* Local variable shim so this file looks good even if a page
   doesn't import a full design token set. These map to the
   project's shared variables where available, with sensible fallbacks. */
:root {
    /* spacing aliases used in this file */
    --spacing-600: var(--spacing-16, 4rem);
    --spacing-500: var(--spacing-12, 3rem);
    --spacing-400: var(--spacing-8, 2rem);
    --spacing-300: var(--spacing-6, 1.5rem);
    --spacing-250: var(--spacing-5, 1.25rem);
    --spacing-200: var(--spacing-4, 1rem);
    --spacing-100: var(--spacing-2, 0.5rem);
}

.contact-footer {
    background: #F5F7FB;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #D9D9D9;
    display: flex;
    width: calc(100vw - 410px);
    max-width: 1400px;
    margin: 50px auto 50px auto;
    position: relative;
    left: 0;
    right: 0;
}

@media (max-width: 991.98px) {
    .contact-footer {
        width: calc(100vw - 40px);
    }
}

@media (max-width: 991.98px) {
    .contact-footer {
        flex-direction: column;
    }
}

.contact-footer__panel {
    display: flex;
    flex-direction: column;
}

.contact-footer__panel--brand {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px;
    gap: 64px;
    min-width: 565px;
    max-width: 450px;
    background: url("../../Content/images/login-background-ms.png") center/cover no-repeat;
    color: white;
    border-radius: 16px 0 0 16px;
}

/* Tablet and mobile view */
@media (max-width: 991.98px) {
    .contact-footer__panel--brand {
        flex: 0 0 auto;
        padding: 32px;
        border-radius: 16px 16px 0 0;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        height: 420px;
    }
}

/* Tablet-specific adjustments (768px - common tablet width) */
@media (max-width: 768px) and (min-width: 480px) {
    .contact-footer__panel--brand {
        width: 100% !important;
        padding: 28px;
        background-position: center;
    }
}

/* Mobile phone view */
@media (max-width: 479.98px) {
    .contact-footer__panel--brand {
        width: 100%;
        height: 250px;
        padding: 24px;
        background-position: center;
    }
}

.contact-footer__brand {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.2;
}

.contact-footer__mark {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-top: auto;
}

.contact-footer__panel--links {
    flex: 1;
    background: #FFFFFF;
    color: var(--color-text-default);
    padding: 40px;
    display: flex;
    flex-direction: row;
    gap: 80px;
}

@media (max-width: 991.98px) {
    .contact-footer__panel--links {
        padding: 32px;
        flex-direction: column;
        gap: 32px;
    }
}

@media (max-width: 767.98px) {
    .contact-footer__links {
        gap: var(--spacing-400);
    }
}

.contact-footer__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-weight: 400;
    color: var(--color-text-default);
    justify-content: flex-start;
    align-items: flex-start;
}

@media (max-width: 767.98px) {
    .contact-footer__links ul {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-200);
    }
}

.contact-footer__links li {
    line-height: 1.5;
}

.contact-footer__links a {
    color: rgba(0, 0, 0, 0.85);
    text-decoration: none;
    font-size: 16px;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-weight: 400;
    transition: color 0.2s;
}

.contact-footer__links a:hover {
    color: #1890FF;
}

.contact-footer__meta {
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.contact-footer__meta-item {
    display: block;
    padding: 0;
    font-size: 14px;
    line-height: 22px;
    color: rgba(0, 0, 0, 0.65);
}

.contact-footer__meta-item strong {
    font-weight: 600;
    color: var(--color-text-default);
}

.contact-footer__meta-item a {
    color: var(--color-text-default);
    text-decoration: underline;
}

.contact-footer__meta-item a:hover {
    color: #0078d4;
}

.contact-footer__copyright {
    margin-top: var(--spacing-500);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    
}

.contact-footer__links strong {
    font-weight: 600;
    color: var(--color-text-default);
}

.contact-footer__links address {
    font-style: normal;
}
