

/* Newsletter Popup Modal - Pottery Barn Style */
/* Created: 18-Jul-2025 */
/* Author: Claude Code */

.newsletter-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.newsletter-popup-backdrop.show {
    opacity: 1;
}

.newsletter-popup {
    background: white;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.newsletter-popup-backdrop.show .newsletter-popup {
    transform: scale(1);
}

.newsletter-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.newsletter-popup-close:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

.newsletter-popup-close sl-icon {
    font-size: 16px;
    color: #666;
}

.newsletter-popup-content {
    display: flex;
    height: 100%;
}

.newsletter-popup-image {
    flex: 1;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.newsletter-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newsletter-popup-form {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-popup-header {
    margin-bottom: 32px;
}

.newsletter-popup-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.newsletter-popup-header p {
    font-size: 16px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.newsletter-signup-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input::placeholder {
    color: #999;
}

.newsletter-submit-btn {
    width: 100%;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.newsletter-submit-btn:hover {
    background: #34495e;
    transform: translateY(-1px);
}

.newsletter-submit-btn:active {
    transform: translateY(0);
}

.newsletter-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.newsletter-error {
    background: #e74c3c;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.newsletter-success {
    background: #27ae60;
    color: white;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 16px;
}

.newsletter-popup-footer {
    text-align: center;
}

.newsletter-no-thanks {
    background: none;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    margin-bottom: 12px;
    padding: 8px;
}

.newsletter-no-thanks:hover {
    color: #333;
}

.newsletter-privacy {
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.3;
}

/* SMS opt-in styling */
.sms-opt-in {
    border-top: 1px solid #e1e8ed;
    padding-top: 16px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 8px;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0 8px 0 0;
    transform: scale(1.2);
}

.sms-disclaimer {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
    margin: 0;
    padding-left: 24px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .newsletter-popup {
        width: 95%;
        max-width: none;
        margin: 20px;
    }
    
    .newsletter-popup-content {
        flex-direction: column;
    }
    
    .newsletter-popup-image {
        height: 200px;
        flex: none;
    }
    
    .newsletter-popup-form {
        padding: 32px 24px;
    }
    
    .newsletter-popup-header h2 {
        font-size: 24px;
    }
    
    .newsletter-popup-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .newsletter-popup {
        width: 98%;
        margin: 10px;
    }
    
    .newsletter-popup-form {
        padding: 24px 20px;
    }
    
    .newsletter-popup-header {
        margin-bottom: 24px;
    }
    
    .newsletter-popup-header h2 {
        font-size: 22px;
    }
    
    .newsletter-popup-header p {
        font-size: 14px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .newsletter-submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
}
