/* ===== PARTNER EDGE BUTTON & PANEL STYLES ===== */

/* Edge Button Container - Creates the gadget effect with connected bar, increased width (thickness) */
/* Button is in front, bar extends behind it */
.mnpi-partner-widget {
    position: fixed !important;
    top: 83px; /* Default fallback - JS will update this dynamically (moved down by 3px) */
    right: 0 !important;
    width: 35px;
    height: 40px; /* Reduced height to fit icon and text tightly */
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(248, 250, 252, 0.92) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5) !important; /* White border */
    border-right: none !important;
    border-left: 1.5px solid rgba(255, 255, 255, 0.6) !important; /* White left border */
    border-top: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 15px 0 0 15px; /* Slightly reduced for thin button */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    z-index: 9998; /* Button stays in front */
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Enhanced 3D Shadow - Reduced for thin button */
    box-shadow: 
        -6px 0 20px rgba(26, 128, 140, 0.15),
        -8px 0 30px rgba(26, 128, 140, 0.1),
        inset 0 0 15px rgba(255, 255, 255, 0.2),
        inset -2px 0 10px rgba(26, 128, 140, 0.05),
        inset 2px 0 10px rgba(255, 255, 255, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.05);
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    margin: 0;
    outline: none;
    overflow: visible;
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Connected bar - extends from button to the right, same level */
/* Bar is part of the same connected element, positioned at same top level */
.mnpi-partner-widget::after {
    content: '';
    position: absolute;
    left: 100%; /* Start from right edge of button */
    top: 0; /* Same level as button */
    width: 0;
    height: 100%; /* Match button height exactly */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.95) 25%,
        rgba(248, 250, 252, 0.92) 50%,
        rgba(255, 255, 255, 0.95) 75%,
        rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5) !important; /* White border */
    border-left: 3px solid rgba(255, 255, 255, 0.6) !important; /* White left border */
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 0;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease 0.3s;
    /* 3D Shadow Effects - Reduced for thin bar */
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.3),
        inset 3px 0 15px rgba(26, 128, 140, 0.1),
        inset -3px 0 15px rgba(255, 255, 255, 0.2),
        6px 0 20px rgba(26, 128, 140, 0.2),
        8px 0 30px rgba(26, 128, 140, 0.15),
        12px 0 45px rgba(26, 128, 140, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.1),
        0 -2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: -1; /* Behind the button but above background */
    opacity: 0;
    max-width: calc(100vw - 35px - 20px); /* Ensure bar doesn't go outside viewport (button width + margin) */
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* 3D depth effect on bar when extended - Enhanced shadows and depth */
.mnpi-partner-widget.slide-out::after {
    box-shadow: 
        inset 0 0 40px rgba(255, 255, 255, 0.4),
        inset 8px 0 30px rgba(26, 128, 140, 0.15),
        inset -8px 0 30px rgba(255, 255, 255, 0.3),
        inset 0 2px 10px rgba(255, 255, 255, 0.5),
        inset 0 -2px 10px rgba(26, 128, 140, 0.1),
        10px 0 30px rgba(26, 128, 140, 0.25),
        15px 0 50px rgba(26, 128, 140, 0.2),
        25px 0 70px rgba(26, 128, 140, 0.15),
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 -6px 20px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(26, 128, 140, 0.1);
    transform: translateZ(5px);
    border-left: 3px solid rgba(255, 255, 255, 0.7) !important; /* White border when sliding */
    width: calc(var(--text-bar-width, 200px) + 40px); /* Match text bar + padding */
}

/* Connector line between button and bar - 3D glowing effect */
/* Connector extends from button to the right, centered vertically */
.mnpi-partner-widget::before {
    content: '';
    position: absolute;
    left: 100%; /* Start from right edge of button */
    top: 50%;
    transform: translateY(-50%) translateZ(10px);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        rgba(26, 128, 140, 1) 0%,
        rgba(26, 128, 140, 0.8) 30%,
        rgba(26, 128, 140, 0.5) 50%,
        rgba(26, 128, 140, 0.8) 70%,
        rgba(26, 128, 140, 0.5) 90%,
        transparent 100%);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s,
                opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s,
                box-shadow 0.3s ease 0.3s;
    box-shadow: 
        0 0 12px rgba(26, 128, 140, 0.6),
        0 0 24px rgba(26, 128, 140, 0.4),
        0 0 40px rgba(26, 128, 140, 0.2),
        inset 0 0 10px rgba(26, 128, 140, 0.3);
    pointer-events: none;
    z-index: 0; /* Between button and bar */
    opacity: 0;
    max-width: calc(100vw - 35px - 20px); /* Ensure connector doesn't go outside viewport (button width + margin) */
    filter: blur(0.5px);
}

/* Enhanced glow when extended */
.mnpi-partner-widget.slide-out::before {
    box-shadow: 
        0 0 15px rgba(26, 128, 140, 0.8),
        0 0 30px rgba(26, 128, 140, 0.6),
        0 0 50px rgba(26, 128, 140, 0.4),
        0 0 70px rgba(26, 128, 140, 0.2),
        inset 0 0 15px rgba(26, 128, 140, 0.4);
}

/* When widget slides out, the entire element (button + bar) slides left */
/* Bar stays fully inside viewport - button moves left, bar extends right */
.mnpi-partner-widget.slide-out {
    transform: translateX(calc(-1 * var(--text-bar-width, 200px))) translateZ(0) !important;
}

.mnpi-partner-widget.slide-out::after {
    width: var(--text-bar-width, 200px) !important; /* Match text bar width exactly */
    opacity: 1 !important;
    max-width: calc(100vw - 35px - 20px) !important; /* Ensure bar doesn't go outside viewport (button width + margin) */
    transform: translateZ(5px);
}

.mnpi-partner-widget.slide-out::before {
    width: var(--text-bar-width, 200px) !important; /* Match bar width exactly */
    opacity: 1 !important;
    max-width: calc(100vw - 35px) !important; /* Ensure connector doesn't go outside viewport */
    transform: translateY(-50%) translateZ(10px);
}

/* When sliding out, ensure text bar is visible and aligned */
.mnpi-partner-widget.slide-out .mnpi-partner-text-bar {
    width: var(--text-bar-width, 200px) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    max-width: calc(100vw - 35px - 20px) !important; /* Ensure text bar doesn't go outside viewport (button width + margin) */
}


/* Icon - Themed blue color matching Traveller's Tools edge button exactly */
/* Icon is perfectly centered using flexbox - vertically and horizontally */
.mnpi-partner-widget .edge-btn-icon {
    color: #1A808C;
    font-size: 18px; /* Reduced to fit tightly with text */
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    width: 100%;
    height: 100%;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(26, 128, 140, 0.3));
    flex-shrink: 0;
    line-height: 1;
    z-index: 1;
}

.mnpi-partner-widget .edge-btn-icon i {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A808C;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1;
    width: auto;
    height: auto;
}

@keyframes iconFloat {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-3px); 
    }
}

/* Label - Hidden completely (not used in edge button) */
.mnpi-partner-widget .edge-btn-label {
    display: none !important;
}

/* Text bar panel - positioned to the right of button, same level */
/* Bar is part of the same connected element */
.mnpi-partner-text-bar {
    position: absolute;
    left: 100%; /* Start from right edge of button */
    top: 0; /* Same level as button */
    transform: translateZ(20px);
    height: 100%; /* Match button height exactly */
    width: 0;
    display: flex;
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    padding: 0;
    z-index: 1; /* Above the ::after bar but below button */
    opacity: 0;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
    pointer-events: none;
    overflow: visible; /* Allow text to be visible */
    white-space: nowrap;
    max-width: calc(100vw - 35px - 20px); /* Ensure bar doesn't go outside viewport (button width + margin) */
    transform-style: preserve-3d;
    box-sizing: border-box;
}

/* When widget slides out, show bar panel - fit to text content */
.mnpi-partner-widget.slide-out .mnpi-partner-text-bar {
    width: var(--text-bar-width, 200px) !important;
    min-width: 200px !important;
    transform: translateZ(20px);
    opacity: 1 !important;
    max-width: calc(100vw - 35px - 20px) !important; /* Ensure text bar doesn't go outside viewport (button width + margin) */
    pointer-events: auto !important;
    overflow: visible !important; /* Allow text to be visible */
}

/* Bar button inside the bar panel - matches bar background */
.mnpi-bar-button {
    width: 100%;
    height: 100%;
    min-height: 40px; /* Match widget height */
    max-height: 40px; /* Match widget height */
    box-sizing: border-box; /* Ensure it fits inside */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.95) 25%,
        rgba(248, 250, 252, 0.92) 50%,
        rgba(255, 255, 255, 0.95) 75%,
        rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.5) !important; /* White border */
    border-left: 3px solid rgba(255, 255, 255, 0.6) !important; /* White left border */
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-radius: 0;
    color: #1A808C !important; /* Ensure text is visible */
    font-size: 14px; /* Match Traveller's Tools edge button font size */
    font-weight: 700; /* Match Traveller's Tools */
    font-family: 'Montserrat', sans-serif; /* Match Traveller's Tools */
    letter-spacing: 1px; /* Match Traveller's Tools */
    text-transform: uppercase; /* Match Traveller's Tools */
    white-space: nowrap;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px; /* Reduced padding to fit tightly */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible; /* Allow text to be visible */
    box-shadow: 
        inset 0 0 20px rgba(255, 255, 255, 0.3),
        inset 3px 0 15px rgba(26, 128, 140, 0.1),
        inset -3px 0 15px rgba(255, 255, 255, 0.2),
        6px 0 20px rgba(26, 128, 140, 0.2),
        8px 0 30px rgba(26, 128, 140, 0.15),
        0 2px 10px rgba(0, 0, 0, 0.1),
        0 -2px 10px rgba(0, 0, 0, 0.1); /* Reduced shadows for thin bar */
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    /* 3D Text Effects */
    text-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.5),
        0 2px 4px rgba(26, 128, 140, 0.3),
        0 4px 8px rgba(26, 128, 140, 0.2),
        0 0 10px rgba(26, 128, 140, 0.1),
        -1px -1px 0 rgba(26, 128, 140, 0.1);
    filter: drop-shadow(0 2px 4px rgba(26, 128, 140, 0.4));
    animation: textSlideIn 0.5s ease-out 0.4s both;
    margin: 0;
    outline: none;
    box-sizing: border-box;
    line-height: 1.2;
    vertical-align: middle;
}

.mnpi-bar-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(26, 128, 140, 0.1) 50%,
        transparent 100%);
    transition: left 0.6s ease;
}

.mnpi-bar-button:hover::before {
    left: 100%;
}

.mnpi-bar-button:hover {
    transform: translateX(-2px);
    box-shadow: 
        inset 0 0 40px rgba(255, 255, 255, 0.4),
        inset 8px 0 30px rgba(26, 128, 140, 0.15),
        inset -8px 0 30px rgba(255, 255, 255, 0.3),
        10px 0 30px rgba(26, 128, 140, 0.25),
        15px 0 50px rgba(26, 128, 140, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 -6px 20px rgba(0, 0, 0, 0.15);
    border-left-color: rgba(255, 255, 255, 0.7) !important; /* White border on hover */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.98) 25%,
        rgba(248, 250, 252, 0.95) 50%,
        rgba(255, 255, 255, 0.98) 75%,
        rgba(255, 255, 255, 1) 100%);
}

.mnpi-bar-button:active {
    transform: translateX(0);
}

.mnpi-bar-button span {
    position: relative;
    z-index: 1;
    color: #1A808C !important; /* Ensure text is visible */
    display: inline-block;
    line-height: 1; /* Match Traveller's Tools */
    vertical-align: middle;
    opacity: 1 !important; /* Ensure text is visible */
    visibility: visible !important; /* Ensure text is visible */
    font-size: 14px !important; /* Match Traveller's Tools edge button font size */
    font-weight: 700; /* Match Traveller's Tools */
    font-family: 'Montserrat', sans-serif; /* Match Traveller's Tools */
    letter-spacing: 1px; /* Match Traveller's Tools */
    text-transform: uppercase; /* Match Traveller's Tools */
}


@keyframes textSlideIn {
    from {
        opacity: 0;
        transform: translateX(15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes textGlow {
    0%, 100% {
        opacity: 0.3;
        transform: translateZ(-5px) scale(1);
    }
    50% {
        opacity: 0.6;
        transform: translateZ(-5px) scale(1.02);
    }
}


/* Hover state - Increased width on hover with 3D effect */
.mnpi-partner-widget:hover {
    width: 40px;
    height: 40px; /* Keep same height on hover */
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.98) 50%,
        rgba(248, 250, 252, 0.95) 100%);
    box-shadow: 
        -12px 0 35px rgba(26, 128, 140, 0.4),
        -18px 0 55px rgba(26, 128, 140, 0.25),
        inset 0 0 30px rgba(255, 255, 255, 0.3),
        inset -4px 0 20px rgba(26, 128, 140, 0.08),
        inset 4px 0 20px rgba(255, 255, 255, 0.4),
        0 6px 15px rgba(0, 0, 0, 0.08);
    transform: translateX(-3px) translateZ(5px);
}


/* Connected bar responsive adjustments */
@media (max-width: 1024px) {
    .mnpi-partner-widget.slide-out {
        transform: translateX(calc(-1 * var(--text-bar-width, 180px))) translateZ(0) !important;
    }
    
    .mnpi-partner-widget.slide-out::after {
        width: var(--text-bar-width, 180px) !important;
        left: 100%;
        max-width: calc(100vw - 32px - 20px) !important;
    }
    
    .mnpi-partner-widget.slide-out::before {
        width: var(--text-bar-width, 180px) !important;
        left: 100%;
        max-width: calc(100vw - 32px - 20px) !important;
    }
    
    .mnpi-partner-widget.slide-out .mnpi-partner-text-bar {
        width: var(--text-bar-width, 180px) !important;
        min-width: 180px !important;
        left: 100%;
        max-width: calc(100vw - 32px - 20px) !important;
    }
    
    .mnpi-bar-button {
        font-size: 14px !important; /* Match Traveller's Tools - desktop (above 768px) */
    }
    
    .mnpi-bar-button span {
        font-size: 14px !important; /* Match Traveller's Tools - desktop (above 768px) */
    }
}

@media (max-width: 768px) {
    .mnpi-partner-widget.slide-out {
        transform: translateX(calc(-1 * var(--text-bar-width, 160px))) translateZ(0) !important;
    }
    
    .mnpi-partner-widget.slide-out::after {
        width: var(--text-bar-width, 160px) !important;
        left: 100%;
        max-width: calc(100vw - 30px - 20px) !important;
    }
    
    .mnpi-partner-widget.slide-out::before {
        width: var(--text-bar-width, 160px) !important;
        left: 100%;
        max-width: calc(100vw - 30px - 20px) !important;
    }
    
    .mnpi-partner-widget.slide-out .mnpi-partner-text-bar {
        width: var(--text-bar-width, 160px) !important;
        min-width: 160px !important;
        left: 100%;
        max-width: calc(100vw - 30px - 20px) !important;
    }
    
    .mnpi-bar-button {
        font-size: 10px !important; /* Match Traveller's Tools at 768px breakpoint */
        letter-spacing: 0.8px !important; /* Match Traveller's Tools letter-spacing */
    }
    
    .mnpi-bar-button span {
        font-size: 10px !important; /* Match Traveller's Tools at 768px breakpoint */
        letter-spacing: 0.8px !important; /* Match Traveller's Tools letter-spacing */
    }
}

@media (max-width: 480px) {
    .mnpi-partner-widget.slide-out {
        transform: translateX(calc(-1 * var(--text-bar-width, 140px))) translateZ(0) !important;
    }
    
    .mnpi-partner-widget.slide-out::after {
        width: var(--text-bar-width, 140px) !important;
        left: 100%;
        max-width: calc(100vw - 28px - 20px) !important;
    }
    
    .mnpi-partner-widget.slide-out::before {
        width: var(--text-bar-width, 140px) !important;
        left: 100%;
        max-width: calc(100vw - 28px - 20px) !important;
    }
    
    .mnpi-partner-widget.slide-out .mnpi-partner-text-bar {
        width: var(--text-bar-width, 140px) !important;
        min-width: 140px !important;
        left: 100%;
        max-width: calc(100vw - 28px - 20px) !important;
    }
    
    .mnpi-bar-button {
        font-size: 10px !important; /* Match Traveller's Tools at 480px (still within 768px breakpoint) */
        letter-spacing: 0.8px !important; /* Match Traveller's Tools letter-spacing */
    }
    
    .mnpi-bar-button span {
        font-size: 10px !important; /* Match Traveller's Tools at 480px (still within 768px breakpoint) */
        letter-spacing: 0.8px !important; /* Match Traveller's Tools letter-spacing */
    }
}

/* Responsive Styles - Increased width (thickness) on all breakpoints */
@media (max-width: 1024px) {
    .mnpi-partner-widget {
        width: 32px !important;
        height: 40px !important; /* Reduced height to fit tightly */
    }
    
    .mnpi-partner-widget:hover {
        width: 38px !important;
        height: 40px !important; /* Keep same height on hover */
    }
    
    .mnpi-partner-widget .edge-btn-icon {
        font-size: 18px !important; /* Same as base - consistent across all viewports */
    }
    
    .mnpi-bar-button {
        font-size: 14px !important; /* Match Traveller's Tools - desktop (above 768px) */
    }
    
    .mnpi-bar-button span {
        font-size: 14px !important; /* Match Traveller's Tools - desktop (above 768px) */
    }
}

@media (max-width: 768px) {
    .mnpi-partner-widget {
        width: 30px !important;
        height: 40px !important; /* Reduced height to fit tightly */
    }
    
    .mnpi-partner-widget:hover {
        width: 36px !important;
        height: 40px !important; /* Keep same height on hover */
    }
    
    .mnpi-partner-widget .edge-btn-icon {
        font-size: 18px !important; /* Same as base - consistent across all viewports */
        margin-bottom: 0 !important;
    }
    
    .mnpi-bar-button {
        font-size: 10px !important; /* Match Traveller's Tools at 768px breakpoint */
        letter-spacing: 0.8px !important; /* Match Traveller's Tools letter-spacing */
    }
    
    .mnpi-bar-button span {
        font-size: 10px !important; /* Match Traveller's Tools at 768px breakpoint */
        letter-spacing: 0.8px !important; /* Match Traveller's Tools letter-spacing */
    }
}

@media (max-width: 480px) {
    .mnpi-partner-widget {
        width: 28px !important;
        height: 40px !important; /* Reduced height to fit tightly */
    }
    
    .mnpi-partner-widget:hover {
        width: 34px !important;
        height: 40px !important; /* Keep same height on hover */
    }
    
    .mnpi-partner-widget .edge-btn-icon {
        font-size: 18px !important; /* Same as base - consistent across all viewports */
    }
    
    .mnpi-bar-button {
        font-size: 10px !important; /* Match Traveller's Tools at 480px (still within 768px breakpoint) */
        letter-spacing: 0.8px !important; /* Match Traveller's Tools letter-spacing */
    }
    
    .mnpi-bar-button span {
        font-size: 10px !important; /* Match Traveller's Tools at 480px (still within 768px breakpoint) */
        letter-spacing: 0.8px !important; /* Match Traveller's Tools letter-spacing */
    }
}

/* Responsive styles for close button - matching Traveller's Tools */
@media (max-width: 1024px) {
    .mnpi-modal-close {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }
    
    .mnpi-modal-close i,
    .mnpi-modal-close span {
        font-size: 18px !important;
    }
}

@media (max-width: 768px) {
    .mnpi-modal-close {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }
    
    .mnpi-modal-close i,
    .mnpi-modal-close span {
        font-size: 18px !important;
    }
}

@media (max-width: 480px) {
    .mnpi-modal-close {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
    }
    
    .mnpi-modal-close i,
    .mnpi-modal-close span {
        font-size: 18px !important;
    }
}

/* Modal Styles - Matching mrn-modal exactly */
.mnpi-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none !important;
    align-items: center;
    font-family: 'HK Modular', sans-serif;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mnpi-modal.show {
    display: flex !important;
    opacity: 1;
    visibility: visible;
}

.mnpi-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    animation: fadeIn 0.3s ease;
}

.mnpi-modal-content {
    position: relative;
    background: #fff;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mnpi-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: #3296A4;
    border-radius: 15px 15px 0 0;
    border-bottom: 2px solid rgba(50, 150, 164, 0.2);
}

.mnpi-modal-header h2 {
    margin: 0;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mnpi-modal-header h2 i {
    font-size: 1.3rem;
}

.mnpi-modal-close {
    background: #3296A4 !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 0 !important; /* Hide text, show icon only */
    line-height: 1 !important;
}

.mnpi-modal-close i,
.mnpi-modal-close span {
    font-size: 16px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    color: #ffffff !important;
    display: block !important;
}

.mnpi-modal-close:hover,
.mnpi-modal-close:focus {
    background: rgba(50, 150, 164, 0.8) !important;
    color: #fff !important;
    transform: rotate(90deg) scale(1.1) !important;
}

.mnpi-modal-close:active {
    transform: rotate(90deg) scale(0.95) !important;
}

.mnpi-modal-body {
    padding: 30px;
}

.mnpi-form-group {
    margin-bottom: 20px;
}

.mnpi-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1A808C;
    font-weight: 600;
    font-size: 14px;
}

.mnpi-form-group input,
.mnpi-form-group select,
.mnpi-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(26, 128, 140, 0.2);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.mnpi-form-group input:focus,
.mnpi-form-group select:focus,
.mnpi-form-group textarea:focus {
    outline: none;
    border-color: #1A808C;
    box-shadow: 0 0 0 3px rgba(26, 128, 140, 0.1);
}

.mnpi-form-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center; /* Center the send button */
}

.mnpi-btn-submit {
    background: linear-gradient(135deg, #1A808C 0%, #3296A4 100%);
    color: white !important; /* Force white text */
    border: 2px solid white !important; /* White border */
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Remove any red colors from send button */
.mnpi-btn-submit,
.mnpi-btn-submit:focus,
.mnpi-btn-submit:active,
.mnpi-btn-submit:visited {
    color: white !important;
    border-color: white !important;
    outline-color: white !important;
    box-shadow: none !important;
}

.mnpi-btn-submit:invalid,
.mnpi-btn-submit:required {
    color: white !important;
    border-color: white !important;
    outline: none !important;
    box-shadow: none !important;
}

.mnpi-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 128, 140, 0.4);
    color: white !important; /* Ensure white text on hover */
    border-color: white !important; /* Ensure white border on hover */
}

.mnpi-form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

.mnpi-form-response.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.mnpi-form-response.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Override any red borders on Be Our Partner button - force white */
.mnpi-partner-widget,
.mnpi-partner-widget::after,
.mnpi-partner-widget::before,
.mnpi-bar-button {
    border-color: rgba(255, 255, 255, 0.5) !important;
    outline-color: rgba(255, 255, 255, 0.5) !important;
}

.mnpi-partner-widget::after {
    border-color: rgba(255, 255, 255, 0.5) !important;
    border-left-color: rgba(255, 255, 255, 0.6) !important;
}

.mnpi-bar-button {
    border-color: rgba(255, 255, 255, 0.5) !important;
    border-left-color: rgba(255, 255, 255, 0.6) !important;
}

/* Remove any red validation borders */
.mnpi-partner-widget:invalid,
.mnpi-partner-widget:required,
.mnpi-bar-button:invalid,
.mnpi-bar-button:required {
    border-color: rgba(255, 255, 255, 0.5) !important;
    outline: none !important;
    box-shadow: none !important;
}

body.mnpi-modal-open {
    overflow: hidden;
}
