/* Sculpts Email Capture — Popup + Footer Styles */

/* === POPUP CONTAINER === */
#sculpts-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
}

/* === OVERLAY === */
.sculpts-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
}

/* === CARD === */
.sculpts-popup-card {
    position: relative;
    background: #f7f4eb;
    max-width: 740px;
    width: 92%;
    border-radius: 0;
    z-index: 100000;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: none;
    -webkit-box-shadow: none;
    border: none;
    outline: none;
}

.sculpts-popup-visible .sculpts-popup-card {
    opacity: 1;
}

/* === CLOSE BUTTON === */
.sculpts-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 24px;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    z-index: 2;
}

.sculpts-popup-close:hover {
    color: #1a1a1a;
}

/* === LEFT PANEL: IMAGE (50%) === */
.sculpts-popup-image {
    width: 50%;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
}

.sculpts-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    display: block;
}

/* === RIGHT PANEL: CONTENT (50%) === */
.sculpts-popup-content {
    flex: 1;
    padding: 48px 40px;
    text-align: left;
    background: #f7f4eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sculpts-popup-content h2 {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 36px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 12px;
}

.sculpts-popup-content .sculpts-popup-subtext {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0 0 24px;
}

/* === FORM === */
#sculpts-popup-form input[type="email"],
#sculpts-popup-form input[type="text"] {
    width: 100%;
    border: 1px solid #ddd;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 12px;
    border-radius: 2px;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
    color: #1a1a1a;
    background: #fff;
}

#sculpts-popup-form input[type="email"]:focus,
#sculpts-popup-form input[type="text"]:focus {
    border-color: #1a1a1a;
    outline: none;
}

#sculpts-popup-form button[type="submit"] {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    padding: 14px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    font-family: 'Lato', sans-serif;
}

#sculpts-popup-form button[type="submit"]:hover {
    background: #333;
}

.sculpts-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* === SUCCESS/ERROR STATES === */
#sculpts-popup-success h2,
#sculpts-popup-already h2,
#sculpts-popup-unsub h2 {
    font-family: 'Cormorant', Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 12px;
}

#sculpts-popup-success p,
#sculpts-popup-already p,
#sculpts-popup-unsub p {
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.sculpts-popup-error-text {
    color: #c00;
    font-size: 13px;
    font-family: 'Lato', sans-serif;
}

/* === FOOTER NEWSLETTER INPUT FIX === */
#mc-embedded-subscribe-form input[type="email"] {
    color: #fff;
}

#mc-embedded-subscribe-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* === MOBILE: BOTTOM SHEET === */
@media (max-width: 640px) {
    .sculpts-popup-card {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: translateY(100%);
        max-width: 100%;
        width: 100%;
        border-radius: 12px 12px 0 0;
        flex-direction: column;
    }

    .sculpts-popup-visible .sculpts-popup-card {
        transform: translateY(0);
    }

    .sculpts-popup-image {
        display: none;
    }

    .sculpts-popup-content {
        padding: 30px 24px;
        text-align: center;
    }

    .sculpts-popup-content h2 {
        font-size: 28px;
        padding-right: 30px;
    }

    .sculpts-popup-close {
        top: 12px;
        right: 12px;
    }
}

/* === DESKTOP ANIMATION === */
@media (min-width: 641px) {
    .sculpts-popup-card {
        transform: translateY(20px);
    }

    .sculpts-popup-visible .sculpts-popup-card {
        transform: translateY(0);
    }
}
