/* =====================================================
   FORMULÁRIO ABRITEC - ESTILOS
   ===================================================== */

.abritec-form-container {
    max-width: 600px;
    margin: 2rem auto 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.abritec-form-header {
    background: #1e40af;
    color: white;
    padding: 20px;
    text-align: center;
}

.abritec-form-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.abritec-form-header p {
    opacity: 0.9;
    font-size: 14px;
}

.abritec-form-body {
    padding: 32px 24px;
}

.abritec-notification {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
    display: none;
}

.abritec-notification.show {
    display: block;
}

.abritec-notification.success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #15803d;
}

.abritec-notification.error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #dc2626;
}

.abritec-notification.info {
    background: #f0f9ff;
    border-color: #3b82f6;
    color: #1d4ed8;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.abritec-form-group {
    margin-bottom: 20px;
}

.abritec-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.abritec-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.abritec-required {
    color: #ef4444;
}

.abritec-form-group input, 
.abritec-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #fafafa;
    font-family: inherit;
}

.abritec-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.abritec-form-group input:focus, 
.abritec-form-group textarea:focus {
    outline: none;
    border-color: #1e40af;
    background: white;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.abritec-form-group input.error, 
.abritec-form-group textarea.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.abritec-form-group input.success, 
.abritec-form-group textarea.success {
    border-color: #22c55e;
    background: #f0fdf4;
}

.abritec-field-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.abritec-field-error.show {
    display: block;
}

.abritec-btn {
    width: 100%;
    padding: 14px;
    background: #007BC2;
    color: whitesmoke;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.abritec-btn:hover {
    background: #005586;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.abritec-btn:active {
    transform: translateY(0);
}

.abritec-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.abritec-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.abritec-loading.show {
    display: flex;
}

.abritec-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff40;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.abritec-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.abritec-privacy-notice {
    margin: 16px 0 8px 0;
    padding: 12px;
    background: #f8fafc;
    border-left: 3px solid #007BC2;
    border-radius: 4px;
}

.abritec-privacy-notice p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.abritec-privacy-notice a {
    color: #1e40af;
    text-decoration: underline;
    font-weight: 500;
}

.abritec-privacy-notice a:hover {
    color: #1d4ed8;
}

/* =====================================================
   RESPONSIVIDADE
   ===================================================== */

@media (max-width: 768px) {
    .abritec-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .abritec-form-container {
        margin: 1rem auto 0;
        border-radius: 8px;
    }
    
    .abritec-form-header {
        padding: 20px;
    }
    
    .abritec-form-header h1 {
        font-size: 20px;
    }
    
    .abritec-form-body {
        padding: 24px 20px;
    }
    
    .abritec-form-group input,
    .abritec-form-group textarea {
        font-size: 16px; /* Evita zoom no iOS */
    }
}

@media (max-width: 400px) {
    .abritec-form-body {
        padding: 20px 16px;
    }
}