/* MAC Form Geo Notice — overseas/VPN form warning modal */

.mac-fgn-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(37, 35, 85, 0.55); /* brand secondary, translucent */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    -webkit-font-smoothing: antialiased;
}

.mac-fgn-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.mac-fgn-modal {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 28px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
    font-family: inherit;
}

.mac-fgn-overlay.is-visible .mac-fgn-modal {
    transform: translateY(0) scale(1);
}

.mac-fgn-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9a9aa8;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s ease, color 0.15s ease;
}

.mac-fgn-close:hover,
.mac-fgn-close:focus {
    background: #f1f1f5;
    color: #252355;
    outline: none;
}

.mac-fgn-title {
    margin: 4px 0 12px;
    color: #252355; /* brand secondary */
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.mac-fgn-body {
    margin: 0 0 24px;
    color: #44444f;
    font-size: 16px;
    line-height: 1.55;
}

.mac-fgn-button {
    display: inline-block;
    min-width: 140px;
    padding: 12px 26px;
    border: 0;
    border-radius: 8px;
    background: #0481c5; /* brand primary */
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}

.mac-fgn-button:hover,
.mac-fgn-button:focus {
    background: #036aa3;
    outline: none;
}

.mac-fgn-button:active {
    transform: translateY(1px);
}

@media (max-width: 480px) {
    .mac-fgn-modal {
        padding: 28px 20px 22px;
    }

    .mac-fgn-title {
        font-size: 20px;
    }

    .mac-fgn-body {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mac-fgn-overlay,
    .mac-fgn-modal {
        transition: none;
    }
}
