/**
 * Newsletter Popup Styles
 * Matches Cenos theme design language
 */

/* Overlay */
.oz-newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(35, 35, 44, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.oz-newsletter-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Container */
.oz-newsletter-popup-container {
    position: relative;
    background: #ffffff;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.oz-newsletter-popup-overlay.active .oz-newsletter-popup-container {
    transform: translateY(0);
}

/* Close button */
.oz-newsletter-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
    color: #242424;
    transition: color 0.25s ease;
}

.oz-newsletter-popup-close:hover {
    color: #b9996a !important;
    background: none !important;
}

.oz-newsletter-popup-close svg {
    display: block;
}

/* Content */
.oz-newsletter-popup-content {
    padding: 50px 40px 40px;
}

/* Header */
.oz-newsletter-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.oz-newsletter-popup-header h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: #242424;
    margin: 0 0 10px;
    line-height: 1.3;
}

.oz-newsletter-popup-header p {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    color: #777777;
    margin: 0;
    line-height: 1.5;
}

/* Form */
.oz-newsletter-popup-form {
    margin: 0;
}

.oz-newsletter-form-group {
    margin-bottom: 15px;
}

.oz-newsletter-form-group input[type="text"],
.oz-newsletter-form-group input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    color: #242424;
    background: #ffffff;
    transition: border-color 0.25s ease;
    box-sizing: border-box;
}

.oz-newsletter-form-group input[type="text"]:focus,
.oz-newsletter-form-group input[type="email"]:focus {
    outline: none;
    border-color: #242424;
}

.oz-newsletter-form-group input[type="text"]::placeholder,
.oz-newsletter-form-group input[type="email"]::placeholder {
    color: #aaaaaa;
}

/* Consent checkbox */
.oz-newsletter-consent {
    margin-bottom: 20px;
}

.oz-newsletter-consent label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 13px;
    color: #777777;
    line-height: 1.4;
}

.oz-newsletter-consent input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    flex-shrink: 0;
}

.oz-newsletter-consent a {
    color: #242424;
    text-decoration: underline;
}

.oz-newsletter-consent a:hover {
    color: #b9996a;
}

/* Submit button */
.oz-newsletter-submit {
    width: 100%;
    padding: 16px 20px;
    background: #242424;
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.oz-newsletter-submit:hover {
    background: #e36c02;
}

.oz-newsletter-submit:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

/* Message */
.oz-newsletter-message {
    margin-top: 15px;
    padding: 12px 15px;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.oz-newsletter-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.oz-newsletter-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
.oz-newsletter-popup-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.oz-newsletter-dismiss {
    background: none !important;
    border: none;
    color: #777777;
    font-size: 13px;
    cursor: pointer;
    text-decoration: underline;
    padding: 5px;
    transition: color 0.25s ease;
}

.oz-newsletter-dismiss:hover {
    color: #b9996a !important;
    background: none !important;
}

/* Message Popup Styles */
.oz-newsletter-message-popup {
    max-width: 400px;
    text-align: center;
}

.oz-newsletter-message-content {
    padding: 40px 40px 35px;
}

.oz-newsletter-message-icon {
    margin-bottom: 20px;
}

.oz-newsletter-message-icon svg {
    display: inline-block;
}

.oz-newsletter-message-content h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #242424;
    margin: 0 0 15px;
}

.oz-newsletter-message-content p {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    color: #666666;
    margin: 0 0 25px;
    line-height: 1.5;
}

.oz-newsletter-message-content .oz-newsletter-submit {
    width: auto;
    min-width: 120px;
    padding: 12px 30px;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .oz-newsletter-popup-content {
        padding: 40px 25px 30px;
    }

    .oz-newsletter-popup-header h2 {
        font-size: 22px;
    }

    .oz-newsletter-popup-header p {
        font-size: 14px;
    }

    .oz-newsletter-notice {
        top: 70px;
        width: 95%;
        padding: 12px 40px 12px 15px;
    }
}
