/* Conversion Pages Plugin - Frontend Styles */
/* IMPORTANTE: Estilos com alta especificidade para evitar interferência de templates */

/* Isolamento completo das páginas de conversão do template WordPress */
body .cpp-conversion-page,
body .cpp-conversion-page *,
body .cpp-conversion-page *::before,
body .cpp-conversion-page *::after {
    box-sizing: border-box !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Reset completo para páginas de conversão */
body .cpp-conversion-page {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
    background: transparent !important;
}

/* Reset e isolamento completo das páginas de conversão */
.cpp-conversion-page,
.cpp-conversion-page *,
.cpp-conversion-page *::before,
.cpp-conversion-page *::after {
    box-sizing: border-box !important;
}

/* Forçar larguras e layout independente do template */
.cpp-conversion-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    line-height: 1.6 !important;
    color: #333 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Container principal com largura fixa */
.cpp-container {
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* Hero Section com largura garantida */
.cpp-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    padding: 80px 0 !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative !important;
}

.cpp-hero-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 60px !important;
    align-items: center !important;
    max-width: 1200px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.cpp-hero-text {
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cpp-hero-text h1 {
    font-size: 3rem !important;
    font-weight: 700 !important;
    margin-bottom: 20px !important;
    line-height: 1.2 !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cpp-hero-text p {
    font-size: 1.2rem !important;
    opacity: 0.9 !important;
    margin-bottom: 30px !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Form Styles com largura garantida */
.cpp-form {
    background: white !important;
    padding: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.cpp-form h3 {
    color: #333 !important;
    margin-bottom: 25px !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cpp-form-group {
    margin-bottom: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cpp-form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    color: #555 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cpp-form-group input,
.cpp-form-group textarea {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
}

.cpp-form-group input:focus,
.cpp-form-group textarea:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

/* Estilos para o dropdown do país */
.cpp-form-group select {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e1e5e9 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
    background-color: white !important;
    color: #333 !important;
}

.cpp-form-group select:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
}

.cpp-form-group select option {
    background-color: white !important;
    color: #333 !important;
    padding: 8px !important;
}

/* Estilos específicos para o dropdown do país (iti) */
.iti__dropdown {
    background-color: white !important;
    border: 1px solid #e1e5e9 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    width: auto !important;
    max-width: 300px !important;
}

.iti__dropdown .iti__country {
    background-color: white !important;
    color: #333 !important;
    padding: 8px 12px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.iti__dropdown .iti__country:hover {
    background-color: #f8f9fa !important;
}

.iti__dropdown .iti__country.iti__active {
    background-color: #667eea !important;
    color: white !important;
}

.cpp-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: none !important;
    padding: 15px 30px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.cpp-submit-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3) !important;
}

.cpp-submit-btn:active {
    transform: translateY(0) !important;
}

.cpp-form-message {
    margin-top: 15px !important;
    padding: 12px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.cpp-form-message.success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.cpp-form-message.error {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

/* Content Section */
.cpp-content-section {
    padding: 80px 0 !important;
    background: #f8f9fa !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.cpp-content-wrapper {
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 60px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.cpp-main-content {
    background: white !important;
    padding: 40px !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.cpp-main-content h2 {
    color: #333 !important;
    font-size: 2rem !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cpp-main-content h3 {
    color: #555 !important;
    font-size: 1.5rem !important;
    margin-bottom: 15px !important;
    font-weight: 600 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cpp-main-content p {
    margin-bottom: 15px !important;
    color: #666 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cpp-main-content ul,
.cpp-main-content ol {
    margin-bottom: 20px !important;
    padding-left: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cpp-main-content li {
    margin-bottom: 8px !important;
    color: #666 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Sidebar */
.cpp-sidebar {
    background: white !important;
    padding: 30px !important;
    border-radius: 12px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08) !important;
    position: sticky !important;
    top: 20px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.cpp-sidebar h3 {
    color: #333 !important;
    font-size: 1.3rem !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
    border-bottom: 2px solid #667eea !important;
    width: 100% !important;
    max-width: 100% !important;
}

.cpp-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cpp-sidebar li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
    font-weight: 500;
}

.cpp-sidebar li:last-child {
    border-bottom: none;
}

.cpp-sidebar li:before {
    content: "✓";
    color: #667eea;
    font-weight: bold;
    margin-right: 10px;
}

/* Sidebar Content */
.cpp-sidebar-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.cpp-sidebar-content h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.cpp-sidebar-main-content {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #555;
}

.cpp-sidebar-main-content p {
    margin-bottom: 15px;
}

.cpp-sidebar-main-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.cpp-sidebar-main-content li {
    margin-bottom: 8px;
}

.cpp-sidebar-contact-info {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.cpp-sidebar-contact-info h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.1em;
}

.cpp-sidebar-contact-info p {
    margin-bottom: 10px;
    font-size: 0.95em;
}

.cpp-sidebar-contact-info a {
    color: #667eea;
    text-decoration: none;
}

.cpp-sidebar-contact-info a:hover {
    text-decoration: underline;
}

.cpp-sidebar-contact-info strong {
    color: #333;
}

/* Services Section */
.cpp-services-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.cpp-services-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: #333;
}

.cpp-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.cpp-service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cpp-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.cpp-service-icon {
    margin-bottom: 25px;
}

.cpp-service-icon i {
    font-size: 3rem;
    color: #667eea;
}

.cpp-service-icon img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
}

.cpp-service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.cpp-service-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* About Section */
.cpp-about-section {
    padding: 80px 0;
    background: white;
}

.cpp-about-section h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2.5rem;
    color: #333;
}

.cpp-about-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

.cpp-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cpp-about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.cpp-about-text h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.cpp-about-text p {
    margin-bottom: 20px;
}

.cpp-about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Default Sections */
.cpp-section {
    padding: 80px 0;
}

.cpp-section:nth-child(even) {
    background: #f8f9fa;
}

.cpp-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 700;
}

.cpp-section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cpp-section-content p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.cpp-section-content ul {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.cpp-section-content li {
    margin-bottom: 15px;
    color: #666;
    font-size: 1.1rem;
}

/* Benefits Section */
.cpp-section-benefits .cpp-section-content ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
}

.cpp-section-benefits .cpp-section-content li {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-bottom: 0;
    border-left: 4px solid #667eea;
}

/* Testimonials Section */
.cpp-section-testimonials blockquote {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
    position: relative;
    margin: 0;
}

.cpp-section-testimonials blockquote:before {
    content: """;
    font-size: 4rem;
    color: #667eea;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cpp-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .cpp-hero-text h1 {
        font-size: 2.5rem;
    }
    
    .cpp-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cpp-sidebar {
        position: static;
    }
    
    .cpp-section h2 {
        font-size: 2rem;
    }
    
    .cpp-section-benefits .cpp-section-content ul {
        grid-template-columns: 1fr;
    }
    
    .cpp-container {
        padding: 0 15px;
    }
    
    .cpp-form,
    .cpp-main-content,
    .cpp-sidebar {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .cpp-hero {
        padding: 60px 0;
    }
    
    .cpp-hero-text h1 {
        font-size: 2rem;
    }
    
    .cpp-hero-text p {
        font-size: 1rem;
    }
    
    .cpp-form {
        padding: 25px 20px;
    }
    
    .cpp-section {
        padding: 60px 0;
    }
    
    .cpp-section h2 {
        font-size: 1.8rem;
    }
}

/* Loading States */
.cpp-form.loading .cpp-submit-btn {
    opacity: 0.7;
    cursor: not-allowed;
}

.cpp-form.loading .cpp-submit-btn:after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.cpp-form-group input:focus,
.cpp-form-group textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.cpp-submit-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* FAQ Section - LÓGICA INDEPENDENTE APLICADA */
.cpp-faq-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.cpp-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cpp-faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #333;
    font-weight: 600;
}

.cpp-faq-list {
    margin-top: 30px;
}

.cpp-faq-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.cpp-faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.cpp-faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.cpp-faq-question:hover {
    background: #f8f9fa;
}

.cpp-faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    flex: 1;
    padding-right: 15px;
}

.cpp-faq-toggle {
    font-size: 1.3rem;
    font-weight: bold;
    color: #667eea;
    transition: transform 0.3s ease;
    min-width: 20px;
    text-align: center;
    line-height: 1;
}

.cpp-faq-item.active .cpp-faq-toggle {
    transform: rotate(45deg);
}

.cpp-faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    background: #fafbfc;
    transition: max-height 0.4s ease, padding 0.4s ease;
    line-height: 1.6;
    color: #555;
}

.cpp-faq-item.active .cpp-faq-answer {
    padding: 20px 25px;
    max-height: 1000px;
}

/* Print Styles */
@media print {
    .cpp-form {
        display: none;
    }
    
    .cpp-hero {
        background: white !important;
        color: black !important;
    }
    
    .cpp-section {
        background: white !important;
    }
}
