/* Popup Overlay with Blur */
.oom-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

/* When visible (handled by JS fadeIn, but we can enforce transition if we toggle class) */
.oom-popup-overlay[style*="display: flex"] {
    opacity: 1;
}

/* Main Content Box - Art Deco Style */
.oom-popup-content {
    /* Balanced opacity (approx 65-75%) to show smoke texture but ensure text readability */
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.65) 0%, rgba(5, 5, 5, 0.75) 100%), url('/assets/images/card_bg_2.png');
    background-size: cover;
    background-position: center;
    padding: 4rem 3rem;
    max-width: 550px;
    width: 90%;
    position: relative;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.8),
        0 0 0 1px #333, /* Inner dark border */
        0 0 0 4px #1a1a1a, /* Spacing */
        0 0 0 5px #d4af37; /* Gold outer border */
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    color: #e0e0e0;
    transform: translateY(20px);
    transition: transform 0.4s ease-out;
}

/* Animation for content entry */
.oom-popup-overlay[style*="display: flex"] .oom-popup-content {
    transform: translateY(0);
}

/* Decorative Corner Elements (Pseudo-elements) */
.oom-popup-content::before,
.oom-popup-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1px solid #d4af37;
    transition: all 0.3s ease;
}

.oom-popup-content::before {
    top: 10px;
    left: 10px;
    border-right: none;
    border-bottom: none;
}

.oom-popup-content::after {
    bottom: 10px;
    right: 10px;
    border-left: none;
    border-top: none;
}

/* Typography */
.oom-popup-content h1,
.oom-popup-content h2,
.oom-popup-content h3 {
    font-family: 'Lora', serif;
    color: #d4af37;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 1rem;
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8); /* Added shadow to headers */
}

.oom-popup-content p {
    color: #f0f0f0; /* Lighter text for better contrast */
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    font-weight: 400; /* Increased weight slightly */
    text-shadow: 0 2px 4px rgba(0,0,0,1); /* Stronger shadow */
}

/* Close Button */
.oom-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    color: #555;
    transition: all 0.3s ease;
    z-index: 10;
}

.oom-popup-close:hover {
    color: #d4af37;
    transform: rotate(90deg);
}

/* Form Styling */
.oom-popup-content .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.oom-popup-content input[type="email"],
.oom-popup-content input[type="text"] {
    width: 100%;
    padding: 15px;
    background: rgba(10, 10, 10, 0.95); /* Nearly opaque background to prevent image bleed-through */
    border: 1px solid #444;
    border-bottom: 2px solid #666;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.oom-popup-content input[type="email"]:focus,
.oom-popup-content input[type="text"]:focus {
    background: #000; /* Fully opaque on focus */
    border-bottom-color: #d4af37;
}

.oom-popup-content input::placeholder {
    color: #aaa; /* Much lighter placeholder text */
    font-style: italic;
}

/* Button Styling */
.oom-popup-content button,
.oom-popup-content input[type="submit"] {
    background-color: transparent;
    color: #d4af37;
    border: 1px solid #d4af37;
    padding: 15px 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 1rem;
}

.oom-popup-content button:hover,
.oom-popup-content input[type="submit"]:hover {
    background-color: #d4af37;
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Success/Error Messages */
.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 2px;
    font-size: 0.9rem;
}

.success-message {
    color: #d4af37;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: rgba(212, 175, 55, 0.05);
}

.error-message {
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.05);
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .oom-popup-content {
        padding: 2rem;
        width: 95%;
        border-width: 3px; /* Thinner border on mobile */
    }

    .oom-popup-content::before,
    .oom-popup-content::after {
        display: none; /* Hide decorative corners on small screens */
    }
}
