* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.scan-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

#urlInput {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#urlInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#scanButton {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 140px;
}

#scanButton:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

#scanButton:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.result-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.result-header h2 {
    color: #333;
    font-size: 1.8rem;
}

.grade-badge {
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    background: linear-gradient(135deg, #6c757d, #495057);
}

.grade-badge.grade-a-plus { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.grade-badge.grade-a { background: linear-gradient(135deg, #8BC34A, #558B2F); }
.grade-badge.grade-b { background: linear-gradient(135deg, #CDDC39, #827717); }
.grade-badge.grade-c { background: linear-gradient(135deg, #FFC107, #F57F17); }
.grade-badge.grade-d { background: linear-gradient(135deg, #FF9800, #E65100); }
.grade-badge.grade-f { background: linear-gradient(135deg, #F44336, #C62828); }

/* Alerta LGPD */
.lgpd-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    animation: pulse 2s infinite;
}

.lgpd-alert.compliant {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border: 2px solid #28a745;
}

.lgpd-alert.non-compliant {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border: 2px solid #dc3545;
}

.lgpd-icon {
    font-size: 1.2rem;
}

.lgpd-message {
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


.result-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.info-item strong {
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.headers-section {
    margin-bottom: 30px;
}

.headers-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.headers-list {
    display: grid;
    gap: 15px;
}

.header-item {
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
    transition: all 0.3s ease;
}

.header-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.header-item.ok {
    border-color: #4CAF50;
    background: linear-gradient(135deg, #E8F5E8, #F1F8E9);
}

.header-item.warning {
    border-color: #FF9800;
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
}

.header-item.fail {
    border-color: #F44336;
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
}

.header-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-ok { background: #4CAF50; color: white; }
.status-warning { background: #FF9800; color: white; }
.status-fail { background: #F44336; color: white; }

.header-description {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.header-value {
    background: #f5f5f5;
    padding: 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    border-left: 3px solid #667eea;
}

.additional-info h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-card {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e1e5e9;
}

.info-card strong {
    display: block;
    color: #555;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.status.enabled { 
    background: #4CAF50; 
    color: white; 
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
}
.status.disabled { 
    background: #F44336; 
    color: white; 
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
}
.status.unknown { 
    background: #9E9E9E; 
    color: white; 
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
}

.error-container {
    background: #FFEBEE;
    border: 2px solid #F44336;
    color: #C62828;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.error-container h3 {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .result-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .result-info {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .security-scale {
        width: 100%;
    }
}

/* Estilos para países */
.country-brazil {
    color: #28a745;
    font-weight: bold;
}

.country-foreign {
    color: #dc3545;
    font-weight: bold;
    background-color: #f8d7da;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Container da nota */
.grade-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.grade-description {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 8px 16px;
    border-radius: 8px;
    min-width: 120px;
}

/* Container da linha de informações */
.info-row {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    align-items: flex-start;
    order: 2; /* Ficar após o CTA */
}

/* Escala de segurança */
.security-scale {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e9ecef;
    flex: 1;
}

.security-scale h3 {
    text-align: center;
    margin-bottom: 10px;
    color: #495057;
    font-size: 1rem;
}

.scale-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3px;
}

.scale-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.scale-color {
    width: 100%;
    height: 15px;
    border-radius: 8px;
    margin-bottom: 6px;
    transition: all 0.3s ease;
}

.scale-item.active .scale-color {
    transform: scaleY(1.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.scale-label {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.scale-desc {
    font-size: 0.7rem;
    color: #6c757d;
    text-align: center;
}

.scale-item.active .scale-label {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.scale-item.active .scale-desc {
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Cores da escala */
.grade-a-plus { background: linear-gradient(135deg, #4CAF50, #2E7D32); }
.grade-a { background: linear-gradient(135deg, #8BC34A, #558B2F); }
.grade-b { background: linear-gradient(135deg, #CDDC39, #827717); }
.grade-c { background: linear-gradient(135deg, #FFC107, #F57F17); }
.grade-d { background: linear-gradient(135deg, #FF9800, #E65100); }
.grade-f { background: linear-gradient(135deg, #F44336, #C62828); }

/* Descrições das notas */
.grade-description.grade-a-plus { background: linear-gradient(135deg, #4CAF50, #2E7D32); color: white; }
.grade-description.grade-a { background: linear-gradient(135deg, #8BC34A, #558B2F); color: white; }
.grade-description.grade-b { background: linear-gradient(135deg, #CDDC39, #827717); color: white; }
.grade-description.grade-c { background: linear-gradient(135deg, #FFC107, #F57F17); color: white; }
.grade-description.grade-d { background: linear-gradient(135deg, #FF9800, #E65100); color: white; }
.grade-description.grade-f { background: linear-gradient(135deg, #F44336, #C62828); color: white; }

/* Estilos para seção PEC */
.pec-info {
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border: 2px solid #2196F3;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.pec-info h3 {
    color: #1976D2;
    margin-bottom: 20px;
    font-size: 1.3rem;
    text-align: center;
}

.version-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.version-status.up-to-date {
    background: #4CAF50;
    color: white;
}

.version-status.outdated {
    background: #F44336;
    color: white;
}

.govbr-benefits {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    border-left: 4px solid #2196F3;
}

.govbr-benefits h4 {
    color: #1976D2;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.govbr-benefits ul {
    list-style: none;
    padding: 0;
}

.govbr-benefits li {
    padding: 5px 0;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.govbr-benefits li:before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Estilos para o card de domínio */
.domain-status {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-block;
}

.domain-status.gov {
    background: #4CAF50;
    color: white;
}

.domain-status.non-gov {
    background: #F44336;
    color: white;
}

.domain-gov {
    color: white;
    font-weight: bold;
}

.domain-non-gov {
    color: white;
    font-weight: bold;
}


/* Estilos para informações de segurança */
.security-error {
    background: linear-gradient(135deg, #FFEBEE, #FFCDD2);
    border: 2px solid #F44336;
    border-radius: 10px;
    padding: 20px;
    margin: 10px 0;
}

.security-error h4 {
    color: #D32F2F;
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.security-error p {
    color: #424242;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.security-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.security-details h5 {
    color: #D32F2F;
    margin: 0 0 10px 0;
    font-size: 1em;
}

.security-details ul {
    margin: 0 0 15px 0;
    padding-left: 20px;
}

.security-details li {
    color: #424242;
    margin: 5px 0;
    line-height: 1.4;
}

.security-level {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #FFCDD2;
}

.security-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    text-transform: uppercase;
    margin-left: 8px;
}

.security-badge.high {
    background: #F44336;
    color: white;
}

.security-badge.medium {
    background: #FF9800;
    color: white;
}

.security-badge.low {
    background: #4CAF50;
    color: white;
}


/* Estilos para o cabeçalho do resultado */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

.header-left h2 {
    margin: 0;
    color: #495057;
    font-size: 1.5em;
    font-weight: 600;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.header-right {
    display: flex;
    align-items: center;
}

/* Responsividade para o cabeçalho */
@media (max-width: 768px) {
    .result-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header-left,
    .header-center,
    .header-right {
        width: 100%;
    }
    
    .header-center {
        order: 2;
    }
    
    .header-right {
        order: 3;
    }
}


/* Estilos para mensagem de não PEC */
.no-pec-message {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 10px;
    text-align: left;
}

.no-pec-icon {
    font-size: 2em;
    flex-shrink: 0;
}

.no-pec-text strong {
    display: block;
    color: #856404;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.no-pec-text p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}


/* Estilos para tooltip elegante com hover */
.has-tooltip {
    position: relative;
    transition: all 0.2s ease;
}

/* Garantir que elementos sem tooltip tenham cursor normal */
.info-card:not(.has-tooltip) {
    cursor: default;
}

.info-card:not(.has-tooltip) * {
    cursor: default;
}

.has-tooltip:hover {
    cursor: help;
    border-bottom: 2px dotted #007bff !important;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    padding: 2px 4px;
    margin: -2px -4px;
}

/* Ícone de informação */
.info-icon {
    display: inline-block;
    margin-left: 8px;
    font-size: 14px;
    color: #007bff;
    cursor: help;
    transition: all 0.2s ease;
    opacity: 0.7;
}

.info-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    color: #0056b3;
}

/* Melhorar o tooltip nativo do navegador */
[title] {
    cursor: help;
}

/* Estilo especial para cards de informação com tooltip */
.info-card .has-tooltip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.info-card .has-tooltip:hover {
    background-color: rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* Garantir que o ícone fique fora da parte colorida */
.info-card .has-tooltip .status,
.info-card .has-tooltip .version-status {
    margin-right: 0;
}

.info-card .has-tooltip .info-icon {
    margin-left: 12px;
    flex-shrink: 0;
}


/* Container do formulário */
.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Estilos para o label do input */
.input-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.2em;
    text-align: center;
    margin: 0;
    padding: 0 20px;
}

/* Grupo de input e botão */
.input-group {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: stretch;
}

/* Input com mais espaço */
.input-group input {
    flex: 1;
    min-width: 0;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Botão com tamanho fixo */
.input-group button {
    flex-shrink: 0;
    min-width: 120px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
}

/* ========================================
   ESTILOS DO CTA E LEADS
   ======================================== */

/* Container do CTA */
.cta-container {
    margin: 20px 0;
    padding: 0 20px;
    order: 1; /* Garantir que fique logo após o cabeçalho */
}

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h3 {
    font-size: 2.2em;
    margin: 0 0 15px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.cta-content p {
    font-size: 1.2em;
    margin: 0 0 25px 0;
    opacity: 0.95;
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    border: none;
    border-radius: 50px;
    padding: 18px 35px;
    font-size: 1.1em;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.6);
    background: linear-gradient(45deg, #ff5252, #ff7979);
}

.cta-button:active {
    transform: translateY(-1px);
}

.cta-icon {
    font-size: 1.3em;
}

.cta-text {
    font-weight: 700;
}

/* Modal de Lead */
.lead-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lead-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    min-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lead-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lead-modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 2em;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lead-modal-body {
    padding: 25px 30px;
}

.lead-modal-body p {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1em;
    line-height: 1.5;
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 15px;
    align-items: start;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.form-group input {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.95em;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

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

.form-group input:invalid {
    border-color: #ff6b6b;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.btn-primary, .btn-secondary {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e5e9;
}

.btn-secondary:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.btn-loading {
    display: none;
}

/* Mensagens de sucesso e erro */
.success-message, .error-message {
    text-align: center;
    padding: 30px 20px;
}

.success-icon, .error-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #28a745;
    margin: 0 0 15px 0;
    font-size: 1.8em;
}

.success-message p {
    color: #666;
    margin: 10px 0;
    font-size: 1.1em;
}

.error-message {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 10px;
    color: #c53030;
}

/* Responsividade */
@media (max-width: 768px) {
    .cta-content h3 {
        font-size: 1.8em;
    }
    
    .cta-content p {
        font-size: 1.1em;
    }
    
    .cta-button {
        padding: 15px 25px;
        font-size: 1em;
    }
    
    .lead-modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
        min-width: 320px;
        max-width: 95vw;
    }
    
    .lead-modal-header {
        padding: 15px 20px;
    }
    
    .lead-modal-header h2 {
        font-size: 1.3em;
    }
    
    .lead-modal-body {
        padding: 20px;
    }
    
    .lead-modal-body p {
        font-size: 0.9em;
        margin-bottom: 15px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-group input {
        padding: 10px 14px;
        font-size: 0.9em;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 18px;
        font-size: 0.9em;
    }
}
