/*
Theme Name: CC Sales Theme
Theme URI: 
Author: KUDZAI
Author URI: 
Description: Custom WordPress theme for CC Sales based on Tailwind CSS statically built template. Includes integration with WPBakery and Advanced Custom Fields.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ccsales
*/

/* 
 * This theme uses Tailwind CSS via CDN as per the static template. 
 * Additional custom styles from the static template are enqueued in functions.php 
 * or placed directly here if needed, but primarily relying on tailwind utility classes.
 */

/* Newsletter & Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#newsletter-modal.invisible {
    pointer-events: none;
}

#newsletter-modal:not(.invisible) {
    pointer-events: auto;
    opacity: 1;
}

.newsletter-form input:focus {
    box-shadow: 0 0 20px rgba(198, 154, 107, 0.1);
}

/* MC4WP Form Resets & Base Styles for Custom Look */
.mc4wp-custom-style .mc4wp-form {
    width: 100%;
    margin: 0;
}
.mc4wp-custom-style .mc4wp-form p {
    margin: 0;
    padding: 0;
}
.mc4wp-custom-style .mc4wp-form label {
    font-size: 0; /* Hides the inner text without hiding the input */
    display: block;
    width: 100%;
}
.mc4wp-custom-style .mc4wp-form input[type="email"] {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    border-radius: 9999px;
    font-size: 1rem;
    font-family: inherit;
}
.mc4wp-custom-style .mc4wp-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.2);
}
.mc4wp-custom-style .mc4wp-form input[type="email"]:focus {
    outline: none;
    border-color: rgba(206, 171, 114, 0.5); /* brand-tan/50 */
    box-shadow: 0 0 20px rgba(198, 154, 107, 0.1);
}
.mc4wp-custom-style .mc4wp-form input[type="submit"] {
    background-color: #ceab72; /* brand-tan */
    color: #1f2937; /* brand-dark */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    border-radius: 9999px;
    cursor: pointer;
    border: none;
}
.mc4wp-custom-style .mc4wp-form input[type="submit"]:hover {
    background-color: white;
}

/* Horizontal Form (Footer) */
.footer-mc4wp-wrapper .mc4wp-form {
    position: relative;
    display: flex;
    flex-direction: column;
}
.footer-mc4wp-wrapper .mc4wp-form-fields {
    position: relative;
    display: block;
    width: 100%;
}
.footer-mc4wp-wrapper .mc4wp-form input[type="email"] {
    padding: 1.25rem 2rem;
    padding-right: 10rem;
}
.footer-mc4wp-wrapper .mc4wp-form-fields p:nth-child(2) {
    position: absolute;
    right: 0.5rem;
    top: 0.5rem;
    bottom: 0.5rem;
    margin: 0;
    z-index: 10;
}
.footer-mc4wp-wrapper .mc4wp-form input[type="submit"] {
    height: 100%;
    padding: 0 2rem;
    font-size: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Vertical Form (Modal) */
.modal-mc4wp-wrapper .mc4wp-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.modal-mc4wp-wrapper .mc4wp-form input[type="email"] {
    padding: 1.25rem 2rem;
    text-align: center;
}
.modal-mc4wp-wrapper .mc4wp-form input[type="submit"] {
    width: 100%;
    padding: 1.25rem 0;
    font-size: 1rem;
}

/* MC4WP Response Messages */
.mc4wp-response {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #ceab72;
    width: 100%;
    text-align: center;
}
.mc4wp-alert {
    color: #ef4444; /* red-500 for errors */
    margin-top: 0.5rem;
    display: block;
}

/* CF7 Safety Resets */
.contact-cf7-wrapper .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
}

/* CF7 Response Messages */
.wpcf7-response-output {
    margin: 2rem 0 0 !important;
    padding: 1rem 1.5rem !important;
    border-radius: 1rem !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border: none !important;
    text-align: center !important;
}

.wpcf7-mail-sent-ok {
    background-color: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid #bbf7d0 !important;
}

.wpcf7-validation-errors, 
.wpcf7-acceptance-missing {
    background-color: #fef2f2 !important;
    color: #991b1b !important;
    border: 1px solid #fecaca !important;
}
