/**
 * Scroll-Triggered Newsletter Signup Modal
 */

.scroll-signup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-signup-overlay.active {
    display: flex;
    opacity: 1;
}

.scroll-signup-modal {
    position: relative;
    background: linear-gradient(135deg, rgba(2, 11, 19, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 2px;
    max-width: 500px;
    width: 90%;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.scroll-signup-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(250, 247, 242, 0.6);
    font-size: 20px;
    line-height: 1;
}

.scroll-signup-close:hover {
    background: rgba(212, 175, 55, 0.25);
    color: var(--sovereign, #D4AF37);
}

.scroll-signup-header {
    margin-bottom: 2rem;
}

.scroll-signup-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sovereign, #D4AF37);
    display: block;
    margin-bottom: 0.75rem;
}

.scroll-signup-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    color: rgba(250, 247, 242, 0.95);
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.scroll-signup-subtitle {
    font-size: 14px;
    color: rgba(250, 247, 242, 0.62);
    line-height: 1.6;
    margin: 0;
}

.scroll-signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.scroll-signup-form input {
    padding: 12px 16px;
    background: rgba(250, 247, 242, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0;
    color: rgba(250, 247, 242, 0.92);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: all 0.2s ease;
}

.scroll-signup-form input::placeholder {
    color: rgba(250, 247, 242, 0.4);
}

.scroll-signup-form input:focus {
    outline: none;
    border-color: rgba(212, 175, 55, 0.6);
    background: rgba(250, 247, 242, 0.12);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.08);
}

.scroll-signup-submit {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--sovereign, #D4AF37) 0%, #D4AF37 100%);
    border: none;
    border-radius: 0;
    color: #020B13;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.scroll-signup-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.scroll-signup-submit:active {
    transform: translateY(0);
}

.scroll-signup-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.scroll-signup-message {
    padding: 12px 16px;
    border-radius: 2px;
    font-size: 13px;
    margin-bottom: 1rem;
    display: none;
}

.scroll-signup-message.success {
    background: rgba(76, 175, 80, 0.15);
    color: #90EE90;
    border: 1px solid rgba(76, 175, 80, 0.3);
    display: block;
}

.scroll-signup-message.error {
    background: rgba(244, 67, 54, 0.15);
    color: #FF7F7F;
    border: 1px solid rgba(244, 67, 54, 0.3);
    display: block;
}

.scroll-signup-footer {
    font-size: 12px;
    color: rgba(250, 247, 242, 0.4);
    text-align: center;
}

.scroll-signup-alt {
    margin-top: 0.5rem;
}

.scroll-signup-alt a {
    color: var(--sovereign, #D4AF37);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.scroll-signup-alt a:hover {
    color: rgba(250, 247, 242, 0.9);
}

/* Mobile */
@media (max-width: 640px) {
    .scroll-signup-modal {
        padding: 2rem;
    }

    .scroll-signup-title {
        font-size: 24px;
    }

    .scroll-signup-subtitle {
        font-size: 13px;
    }
}

/* ─────────────────────────────────────────────────────────────────
   VIP POPUP — Sovereign Dark (Popup Maker #7648)
   ───────────────────────────────────────────────────────────────── */

/* Overlay */
#pum-7648.pum-overlay {
    background: rgba(2, 11, 19, 0.92) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Container */
#pum-7648 .pum-container {
    background: linear-gradient(150deg, #020B13 0%, #060f1a 55%, #0a1621 100%) !important;
    border: 1px solid rgba(212, 175, 55, 0.28) !important;
    box-shadow:
        0 0 0 1px rgba(212, 175, 55, 0.06),
        0 40px 100px rgba(0, 0, 0, 0.95) !important;
    border-radius: 0 !important;
    padding: 52px 48px 44px !important;
    position: relative;
    overflow: hidden;
}

/* Gold hairline across the top */
#pum-7648 .pum-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #D4AF37 40%, #D4AF37 60%, transparent 100%);
    pointer-events: none;
}

/* Title */
#pum-7648 .pum-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    color: #D4AF37 !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    font-style: italic !important;
    line-height: 1.25 !important;
    letter-spacing: 0.01em !important;
    margin: 0 0 1.5rem 0 !important;
    text-shadow: none !important;
    text-align: left !important;
}

/* Content area */
#pum-7648 .pum-content {
    color: rgba(250, 247, 242, 0.88) !important;
    font-family: 'Inter', 'Helvetica Neue', sans-serif !important;
    font-weight: 300 !important;
}

/* Eyebrow */
#pum-7648 .pum-content .vip-popup-eyebrow {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #D4AF37;
    margin: 0 0 1rem 0;
    display: block;
}

/* Subtitle */
#pum-7648 .pum-content .vip-popup-sub {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(250, 247, 242, 0.62);
    margin: 0 0 1.75rem 0;
}

/* Form inputs */
#pum-7648 .pum-content input[type="email"],
#pum-7648 .pum-content input[type="text"] {
    background: rgba(250, 247, 242, 0.05) !important;
    border: 1px solid rgba(212, 175, 55, 0.22) !important;
    border-radius: 0 !important;
    color: rgba(250, 247, 242, 0.9) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    padding: 13px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, background 0.2s ease !important;
    margin-bottom: 10px !important;
}

#pum-7648 .pum-content input[type="email"]:focus,
#pum-7648 .pum-content input[type="text"]:focus {
    outline: none !important;
    border-color: rgba(212, 175, 55, 0.55) !important;
    background: rgba(250, 247, 242, 0.09) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.07) !important;
}

#pum-7648 .pum-content input::placeholder {
    color: rgba(250, 247, 242, 0.3) !important;
}

/* Submit button */
#pum-7648 .pum-content button[type="submit"],
#pum-7648 .pum-content input[type="submit"],
#pum-7648 .pum-content .ml-form-embedSubmit button {
    background: linear-gradient(135deg, #D4AF37 0%, #D4AF37 100%) !important;
    border: none !important;
    border-radius: 0 !important;
    color: #020B13 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 15px 28px !important;
    cursor: pointer !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    width: 100% !important;
    margin-top: 4px !important;
    display: block !important;
}

#pum-7648 .pum-content button[type="submit"]:hover,
#pum-7648 .pum-content input[type="submit"]:hover,
#pum-7648 .pum-content .ml-form-embedSubmit button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.32) !important;
}

/* MailerLite wrappers — strip their background/padding */
#pum-7648 .pum-content .ml-form-embedWrapper,
#pum-7648 .pum-content .ml-form-embedBody,
#pum-7648 .pum-content .ml-form-embedBody .ml-form-embedContent {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
}

#pum-7648 .pum-content .ml-form-fieldRow {
    margin-bottom: 0 !important;
}

/* Disclosure */
#pum-7648 .pum-content .vip-popup-disclosure {
    font-size: 11px;
    color: rgba(250, 247, 242, 0.3);
    text-align: center;
    margin: 1.25rem 0 0 0;
    line-height: 1.5;
    font-style: italic;
}

/* Close button */
#pum-7648 .pum-content + .pum-close {
    background: rgba(212, 175, 55, 0.06) !important;
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
    border-radius: 0 !important;
    color: rgba(250, 247, 242, 0.45) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 300 !important;
    height: 30px !important;
    width: 30px !important;
    line-height: 28px !important;
    padding: 0 !important;
    text-align: center !important;
    top: 16px !important;
    right: 16px !important;
    box-shadow: none !important;
    text-shadow: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

#pum-7648 .pum-content + .pum-close:hover {
    background: rgba(212, 175, 55, 0.18) !important;
    color: #D4AF37 !important;
    border-color: rgba(212, 175, 55, 0.45) !important;
}

/* Mobile */
@media (max-width: 640px) {
    #pum-7648 .pum-container {
        padding: 36px 24px 32px !important;
    }

    #pum-7648 .pum-title {
        font-size: 24px !important;
    }

    #pum-7648 .pum-content .vip-popup-sub {
        font-size: 13px !important;
    }
}
