/* Popup Styles - Premium Architect */

/* Overlay */
#sn-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#sn-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#sn-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

/* Modal Content (Desktop Default) */
#sn-popup-content {
    position: relative;
    background: #FFFFFF;
    width: 90%;
    max-width: 480px;
    padding: 2.5rem;
    border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #E5E7EB;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#sn-popup-content.active {
    transform: translateY(0);
}

/* Typography */
#sn-popup-content .eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #D97706;
    /* Amber-600 */
    margin-bottom: 0.75rem;
}

#sn-popup-content .headline {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}

#sn-popup-content .subhead {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.5;
    margin-bottom: 2rem;
}

/* Form */
.popup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popup-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #111827;
    border-radius: 0;
    transition: all 0.2s;
}

.popup-input:focus {
    outline: none;
    border-color: #D97706;
    background: #FFFFFF;
}

.popup-submit {
    width: 100%;
    padding: 1rem;
    background: #111827;
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.popup-submit:hover {
    background: #000000;
}

.microcopy {
    font-size: 10px;
    color: #9CA3AF;
    margin-top: 1.25rem;
}

.microcopy a {
    color: #6B7280;
    text-decoration: underline;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9CA3AF;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #111827;
}

/* Mobile Bottom Sheet Override */
@media (max-width: 640px) {
    #sn-popup-overlay {
        align-items: flex-end;
        /* Align to bottom */
    }

    #sn-popup-content {
        width: 100%;
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 2rem 1.5rem 2.5rem;
        transform: translateY(100%);
        margin-bottom: 0;
    }

    #sn-popup-content.active {
        transform: translateY(0);
    }

    #sn-popup-content .headline {
        font-size: 1.5rem;
    }
}