﻿/* ==========================================================================
   MAILCHIMP POPUP STYLES
   ========================================================================== */

/* Overlay */
#mc-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 14, 23, 0.85);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mc-popup-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Modal Box */
#mc-popup {
    background: #ffffff;
    display: flex;
    max-width: 820px;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

#mc-popup-overlay.open #mc-popup {
    transform: translateY(0) scale(1);
}

/* Left image panel */
.mc-popup-image {
    flex: 0 0 42%;
    background-color: #1E3A52;
    overflow: hidden;
    position: relative;
}

.mc-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mc-popup-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 31, 48, 0.5) 0%, rgba(10, 31, 48, 0.1) 100%);
}

/* Right content panel */
.mc-popup-content {
    flex: 1;
    padding: 50px 45px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Close button */
#mc-popup-close {
    position: absolute;
    top: 16px;
    right: 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.3rem;
    color: #9ca3af;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}

#mc-popup-close:hover {
    color: #0A1F30;
    transform: rotate(90deg);
}

/* Heading */
.mc-popup-content h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.9rem;
    font-weight: 800;
    color: #0A1F30;
    line-height: 1.25;
    margin-bottom: 8px;
}

.mc-popup-content p.mc-sub {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 28px;
    font-family: 'Inter', sans-serif;
}

/* Email input row */
.mc-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.mc-input-wrap .mc-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.95rem;
    pointer-events: none;
}

.mc-input-wrap input[type="email"] {
    width: 100%;
    border: none;
    border-bottom: 1.5px solid #d1d5db;
    padding: 10px 10px 10px 28px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #0A1F30;
    background: transparent;
    outline: none;
    transition: border-color 0.25s ease;
}

.mc-input-wrap input[type="email"]:focus {
    border-bottom-color: #0A1F30;
}

.mc-input-wrap input::placeholder {
    color: #9ca3af;
}

/* Privacy checkbox */
.mc-privacy {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #6b7280;
}

.mc-privacy input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #0A1F30;
    flex-shrink: 0;
}

.mc-privacy a {
    color: #0A1F30;
    font-weight: 600;
    text-decoration: underline;
}

/* Subscribe button */
#mc-popup .mc-btn-subscribe {
    display: block;
    width: 100%;
    padding: 15px;
    background: #0A1F30;
    color: #E5E7EB;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.3rem;
    letter-spacing: 2px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
}

#mc-popup .mc-btn-subscribe:hover {
    background: #162C40;
    transform: translateY(-1px);
}

/* Success message */
.mc-success {
    text-align: center;
    padding: 20px 0;
}

.mc-success i {
    font-size: 3rem;
    color: #0A1F30;
    margin-bottom: 15px;
}

.mc-success h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #0A1F30;
    margin-bottom: 8px;
}

.mc-success p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 600px) {
    .mc-popup-image { display: none; }
    .mc-popup-content { padding: 40px 28px; }
    #mc-popup { max-width: 380px; }
}
