/*
 Theme Name:   YOOtheme Child
 Theme URI:    https://yootheme.com
 Description:  Child theme for YOOtheme
 Author:       Your Name
 Author URI:   https://yoursite.com
 Template:     yootheme
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  yootheme-child
*/

/* Mailchimp Newsletter Form */
#mc_embed_signup {
    background: #e8e8e8;
    clear: left;
    font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    width: 100%;
    max-width: 100%;
    padding: 30px;
    border-radius: 8px;
    box-sizing: border-box;
}

#mc_embed_signup h2 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

#mc_embed_signup .indicates-required {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

#mc_embed_signup .mc-field-group {
    margin-bottom: 20px;
}

#mc_embed_signup .mc-field-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

#mc_embed_signup .mc-field-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

#mc_embed_signup .mc-field-group input[type="email"]:focus {
    outline: none;
    border-color: #333;
}

#mc_embed_signup .button,
#mc_embed_signup input[type="submit"] {
    background: #222 !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 30px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px !important;
    cursor: pointer;
    transition: background 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: normal !important;
    text-align: center !important;
    box-sizing: border-box !important;
    height: auto !important;
}

#mc_embed_signup .button:hover,
#mc_embed_signup input[type="submit"]:hover {
    background: #444 !important;
}

#mc_embed_signup .asterisk {
    color: #e74c3c;
}

#mc_embed_signup #mce-success-response {
    color: #27ae60;
    font-weight: 500;
    margin-bottom: 15px;
}

#mc_embed_signup #mce-error-response {
    color: #e74c3c;
    font-weight: 500;
    margin-bottom: 15px;
}

/* Newsletter Popup */
#newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 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;
}

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

#newsletter-popup-modal {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

#newsletter-popup-overlay.active #newsletter-popup-modal {
    transform: translateY(0);
}

#newsletter-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
}

#newsletter-popup-close:hover {
    color: #000;
}

#newsletter-popup-content #mc_embed_signup {
    width: 100% !important;
}
