/*
Theme Name: KOTTA Design Studio
Theme URI: https://designkotta.com
Author: KOTTA Studio
Author URI: https://designkotta.com
Description: Estudio de diseño de mobiliario contemporáneo - React headless theme
Version: 3.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kotta-theme
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Theme CSS is loaded via Vite build in functions.php */
body {
    margin: 0;
    padding: 0;
}

/* ========================================
   FluentForms Newsletter Styling
   Matches KOTTA homepage design
   ======================================== */

.kotta-newsletter-form .fluentform,
.kotta-newsletter-form .frm-fluent-form,
.kotta-newsletter-form .ff-default {
    max-width: 100% !important;
}

/* Hide default FluentForms labels and fieldset styling */
.kotta-newsletter-form .ff-el-input--label,
.kotta-newsletter-form .ff-el-form-control label,
.kotta-newsletter-form legend,
.kotta-newsletter-form .ff_screen_reader_title {
    display: none !important;
}

.kotta-newsletter-form fieldset {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Form container - make it relative for button positioning */
.kotta-newsletter-form form.frm-fluent-form,
.kotta-newsletter-form .fluent_form_2 {
    position: relative !important;
}

/* Two column layout - email takes full width, button overlays */
.kotta-newsletter-form .ff-t-container,
.kotta-newsletter-form .ff-column-container {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
}

.kotta-newsletter-form .ff-t-cell,
.kotta-newsletter-form .ff-t-column-1 {
    display: block !important;
    width: 100% !important;
    flex-basis: 100% !important;
}

/* Hide second column (button column) - we'll position button absolutely */
.kotta-newsletter-form .ff-t-column-2 {
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: auto !important;
    flex-basis: auto !important;
}

/* Remove margins from groups */
.kotta-newsletter-form .ff-el-group {
    margin: 0 !important;
    padding: 0 !important;
}

.kotta-newsletter-form .ff-el-input--content {
    margin: 0 !important;
}

/* Email input field styling */
.kotta-newsletter-form input[type="email"],
.kotta-newsletter-form input[type="text"],
.kotta-newsletter-form .ff-el-form-control {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    padding: 16px 60px 16px 0 !important;
    font-size: 15px !important;
    font-weight: 300 !important;
    letter-spacing: 0.025em !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.5s ease !important;
    font-family: inherit !important;
}

.kotta-newsletter-form input[type="email"]::placeholder,
.kotta-newsletter-form input[type="text"]::placeholder,
.kotta-newsletter-form .ff-el-form-control::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    font-weight: 300 !important;
}

.kotta-newsletter-form input[type="email"]:focus,
.kotta-newsletter-form input[type="text"]:focus,
.kotta-newsletter-form .ff-el-form-control:focus {
    border-bottom-color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Submit button wrapper */
.kotta-newsletter-form .ff_submit_btn_wrapper,
.kotta-newsletter-form .ff_submit_btn_wrapper_custom {
    margin: 0 !important;
    padding: 0 !important;
}

/* Submit button - arrow style */
.kotta-newsletter-form .ff-btn-submit,
.kotta-newsletter-form .ff-btn,
.kotta-newsletter-form button[type="submit"] {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    transition: color 0.3s ease, transform 0.3s ease !important;
    font-size: 0 !important;
    line-height: 0 !important;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.kotta-newsletter-form .ff-btn-submit:hover,
.kotta-newsletter-form .ff-btn:hover,
.kotta-newsletter-form button[type="submit"]:hover {
    color: #ffffff !important;
    transform: translateX(3px) !important;
    background: transparent !important;
}

/* Arrow icon for submit button */
.kotta-newsletter-form .ff-btn-submit::before,
.kotta-newsletter-form .ff-btn::before,
.kotta-newsletter-form button[type="submit"]::before {
    content: '' !important;
    display: block !important;
    width: 24px !important;
    height: 24px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    opacity: 0.6 !important;
}

.kotta-newsletter-form .ff-btn-submit:hover::before,
.kotta-newsletter-form .ff-btn:hover::before,
.kotta-newsletter-form button[type="submit"]:hover::before {
    opacity: 1 !important;
}

/* Remove any button inline styles */
.kotta-newsletter-form .wpf_has_custom_css {
    background-color: transparent !important;
    border-color: transparent !important;
    color: transparent !important;
    min-width: 24px !important;
}

/* Success message */
.kotta-newsletter-form .ff-message-success,
.kotta-newsletter-form .ff-message {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 15px !important;
    font-weight: 300 !important;
    padding: 16px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
    background: transparent !important;
    text-align: center !important;
}

/* Error messages */
.kotta-newsletter-form .ff-el-is-error .ff-el-form-control {
    border-bottom-color: rgba(239, 68, 68, 0.7) !important;
}

.kotta-newsletter-form .error.text-danger,
.kotta-newsletter-form .ff_error_tip,
.kotta-newsletter-form .text-danger {
    color: rgba(239, 68, 68, 0.8) !important;
    font-size: 12px !important;
    font-weight: 300 !important;
    margin-top: 8px !important;
    text-align: left !important;
}

/* Hide unnecessary elements */
.kotta-newsletter-form .ff-el-progress-bar,
.kotta-newsletter-form .ff-step-header,
.kotta-newsletter-form .ff-el-tooltip,
.kotta-newsletter-form .ff-errors-in-stack {
    display: none !important;
}

/* Remove any FluentForms default styling */
.kotta-newsletter-form style {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .kotta-newsletter-form input[type="email"],
    .kotta-newsletter-form input[type="text"],
    .kotta-newsletter-form .ff-el-form-control {
        font-size: 14px !important;
        padding: 14px 50px 14px 0 !important;
    }

    .kotta-newsletter-form .ff-btn-submit,
    .kotta-newsletter-form .ff-btn,
    .kotta-newsletter-form button[type="submit"] {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
    }

    .kotta-newsletter-form .ff-btn-submit::before,
    .kotta-newsletter-form .ff-btn::before,
    .kotta-newsletter-form button[type="submit"]::before {
        width: 22px !important;
        height: 22px !important;
    }
}

/* ========================================
   Catálogo: barra de filtros NO sticky
   ======================================== */
.sticky.top-\[72px\].z-40.bg-white {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}
