/* ===== SEÇÃO CONTATO - DESIGN SAAS MODERNO ===== */

/* Container principal */
.contact-section-modern {
    position: relative;
    padding: 6rem 0 2rem;
    background: linear-gradient(135deg, var(--color-bg) 0%, #ffffff 100%);
    overflow: visible;
    min-height: auto;
    max-height: none;
}

/* Background tecnológico */
.contact-background-tech {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.contact-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    pointer-events: none;
}

.contact-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(99, 102, 241, 0.05));
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Layout de duas colunas */
.contact-container-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ===== BLOCO INFORMATIVO (ESQUERDA) ===== */
.contact-info-block {
    opacity: 0;
    transform: translateX(-50px);
    animation: revealLeft 1s ease-out 0.3s forwards;
}

@keyframes revealLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-info-header {
    margin-bottom: 3rem;
}

.contact-main-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-main-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 400px;
}

/* Cards de informação */
.contact-info-cards {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.whatsapp-icon {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.email-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: white;
}

.location-icon {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.contact-info-content p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.contact-info-status {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Social proof */
.contact-social-proof {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(99, 102, 241, 0.03) 100%);
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.social-proof-item {
    text-align: center;
}

.proof-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.proof-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ===== FORMULÁRIO (DIREITA) ===== */
.contact-form-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 24px 24px 0 0;
}

.form-card-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* Grupos de input com floating labels */
.form-group-modern {
    position: relative;
    margin-bottom: 2rem;
}

.form-input-modern {
    width: 100%;
    padding: 1rem 1rem 1rem 1rem;
    background-color: var(--color-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--color-text);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.form-label-floating {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    background: transparent;
    padding: 0 0.25rem;
}

.form-input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    transition: width 0.3s ease;
}

/* Estados de foco e preenchimento */
.form-input-modern:focus {
    background-color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.form-input-modern:focus + .form-label-floating,
.form-input-modern:not(:placeholder-shown) + .form-label-floating {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-primary);
    background: var(--color-white);
    font-weight: 600;
}

.form-input-modern:focus ~ .form-input-border {
    width: 100%;
}

/* Botão de envio */
.btn-submit-modern {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--color-cta) 0%, var(--color-cta-hover) 100%);
    color: var(--color-white);
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.btn-submit-modern::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 ease;
}

.btn-submit-modern:hover::before {
    left: 100%;
}

.btn-submit-modern:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
    filter: brightness(1.1);
}

.btn-submit-modern:active {
    transform: scale(0.98);
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-submit-modern:hover .btn-arrow {
    transform: translateX(4px);
}

.spinner-icon {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
    .contact-container-modern {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1.5rem;
    }
    
    .contact-main-title {
        font-size: 2.5rem;
    }
    
    .contact-social-proof {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .contact-section-modern {
        padding: 4rem 0 4rem;
        min-height: auto;
        overflow: visible;
    }
    
    .contact-container-modern {
        padding: 0 1rem;
        gap: 2rem;
        min-height: auto;
        margin-bottom: 2rem;
    }
    
    .contact-main-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .contact-main-subtitle {
        text-align: center;
        max-width: none;
    }
    
    .contact-form-card {
        padding: 2rem;
        border-radius: 20px;
        margin-bottom: 2rem;
    }
    
    .form-title {
        font-size: 1.5rem;
    }
    
    .btn-submit-modern {
        margin-bottom: 2rem;
    }
    
    .contact-social-proof {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
}
    
@media (max-width: 480px) {
    .contact-section-modern {
        padding: 3rem 0 3rem;
        min-height: auto;
        overflow: visible;
    }
    
    .contact-container-modern {
        padding: 0 0.75rem;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .contact-main-title {
        font-size: 1.75rem;
    }
    
    .contact-form-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .btn-submit-modern {
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
    
    .contact-social-proof {
        margin-bottom: 2rem;
    }
}

/* EMERGÊNCIA: FORÇAR FOOTER VISÍVEL EM MOBILE */
@media (max-width: 768px) {
    /* Garantir que o footer apareça após a seção de contato */
    .contact-section-modern::after {
        content: '';
        display: block;
        height: 20px;
        clear: both;
    }
    
    /* Forçar footer visível */
    footer {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        background: #1e3a8a !important;
        color: white !important;
        padding: 20px 10px !important;
        margin: 10px 0 !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
        z-index: 1000 !important;
    }
    
    footer * {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: white !important;
        text-align: center !important;
        margin: 5px 0 !important;
    }
}