/* ===================================
   PÁGINA DE CONTATO - CALCULEY
   CSS CORRIGIDO COM ESPECIFICIDADE
   ================================== */

/* Container principal */
body[data-page="contato"] .contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Header da página - REDESIGN MODERNO */
body[data-page="contato"] .contact-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    text-align: center;
    margin: -2rem -2rem 3rem -2rem;
    padding: 3rem 2rem 2rem 2rem;
    border-radius: 0 0 24px 24px;
    position: relative;
    overflow: hidden;
}

/* PADRÃO DE FUNDO COM FORÇA TOTAL */
body[data-page="contato"] .contact-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: 
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.1) 0px,
            rgba(255, 255, 255, 0.1) 2px,
            transparent 2px,
            transparent 30px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.1) 0px,
            rgba(255, 255, 255, 0.1) 2px,
            transparent 2px,
            transparent 30px
        ) !important;
    background-size: 30px 30px !important;
    animation: slidePattern 25s linear infinite !important;
    z-index: 0 !important;
    pointer-events: none !important;
}

body[data-page="contato"] .contact-header > * {
    position: relative !important;
    z-index: 1 !important;
}

body[data-page="contato"] .contact-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
    color: white;
}

body[data-page="contato"] .contact-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    color: white;
}

/* Estatísticas modernizadas */
body[data-page="contato"] .contact-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

body[data-page="contato"] .contact-stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 120px;
}

body[data-page="contato"] .contact-stat:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

body[data-page="contato"] .contact-stat .stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

body[data-page="contato"] .contact-stat .stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slidePattern {
    0% { 
        background-position: 0 0, 0 0;
    }
    100% { 
        background-position: 30px 30px, 30px 30px;
    }
}

/* Tipos de contato */
body[data-page="contato"] .contact-types {
    margin-bottom: 3rem;
}

body[data-page="contato"] .contact-types h2 {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
}

body[data-page="contato"] .contact-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Cards de tipo de contato */
body[data-page="contato"] .contact-type-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

body[data-page="contato"] .contact-type-card::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;
}

body[data-page="contato"] .contact-type-card:hover::before {
    left: 100%;
}

body[data-page="contato"] .contact-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: #fff;
}

body[data-page="contato"] .contact-type-card.selected {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #fff;
    transform: translateY(-3px);
}

body[data-page="contato"] .contact-type-card .type-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

body[data-page="contato"] .contact-type-card h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

body[data-page="contato"] .contact-type-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Seção do formulário */
body[data-page="contato"] .contact-form-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

/* Container do formulário */
body[data-page="contato"] .form-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid #e9ecef;
}

/* Formulário */
body[data-page="contato"] .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body[data-page="contato"] .form-group {
    display: flex;
    flex-direction: column;
}

body[data-page="contato"] .form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

body[data-page="contato"] .form-input,
body[data-page="contato"] .form-select,
body[data-page="contato"] .form-textarea {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
}

body[data-page="contato"] .form-input:focus,
body[data-page="contato"] .form-select:focus,
body[data-page="contato"] .form-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body[data-page="contato"] .form-textarea {
    resize: vertical;
    min-height: 120px;
}

body[data-page="contato"] .form-hint {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
    font-style: italic;
}

/* Botão de envio */
body[data-page="contato"] .form-submit {
    margin-top: 1rem;
}

body[data-page="contato"] .submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body[data-page="contato"] .submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

body[data-page="contato"] .submit-button:active {
    transform: translateY(0);
}

body[data-page="contato"] .submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Status do formulário */
body[data-page="contato"] .form-status {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

body[data-page="contato"] .form-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

body[data-page="contato"] .form-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Informações adicionais */
body[data-page="contato"] .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

body[data-page="contato"] .info-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

body[data-page="contato"] .info-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

body[data-page="contato"] .info-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

body[data-page="contato"] .info-card p:last-child {
    margin-bottom: 0;
}

/* Responsivo - Tablet */
@media (max-width: 968px) {
    body[data-page="contato"] .contact-form-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    body[data-page="contato"] .contact-stats {
        gap: 2rem;
    }
    
    body[data-page="contato"] .contact-types-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
}

/* Responsivo - Mobile */
@media (max-width: 768px) {
    body[data-page="contato"] .contact-container {
        padding: 1rem;
        margin: 1rem;
    }
    
    body[data-page="contato"] .contact-header {
        margin: -1rem -1rem 2rem -1rem;
        padding: 2rem 1rem 1.5rem 1rem;
    }
    
    body[data-page="contato"] .contact-header h1 {
        font-size: 1.8rem;
    }
    
    body[data-page="contato"] .contact-header p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    body[data-page="contato"] .contact-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    body[data-page="contato"] .contact-stat {
        min-width: 200px;
        padding: 0.8rem 1.2rem;
    }
    
    body[data-page="contato"] .contact-types-grid {
        grid-template-columns: 1fr;
    }
    
    body[data-page="contato"] .contact-type-card {
        padding: 1.5rem;
    }
    
    body[data-page="contato"] .form-container {
        padding: 1.5rem;
    }
    
    body[data-page="contato"] .contact-info {
        order: -1;
        margin-top: 2rem;
    }
    
    body[data-page="contato"] .info-card {
        padding: 1rem;
    }
}

/* Animação do container */
body[data-page="contato"] .contact-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state */
body[data-page="contato"] .button-loading {
    display: inline-block;
    position: relative;
}

body[data-page="contato"] .button-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    right: -25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}