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

html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Animação do botão pulsante */
@keyframes shadow-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(251, 191, 36, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

/* Animação do botão WhatsApp */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Modal */
#contatoFinalizado2 {
    width: 90%;
    max-width: 500px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 30px;
    background: white;
    z-index: 199999999993;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

/* Responsividade do Modal */
@media (max-width: 768px) {
    #contatoFinalizado2 {
        width: 95%;
        max-width: 100%;
        padding: 20px;
        border-radius: 15px;
    }
}

/* Input Styles - AUMENTADO PARA MOBILE */
input[type="text"],
input[type="email"],
input[type="tel"] {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #6d28d9 !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

/* Botões Hover */
a[onclick*="abrirPasso"],
a[onclick*="abrirPasso1"],
a[onclick*="abrirPasso2"],
a[onclick*="abrirPasso3"],
a[onclick*="abrirPasso4"],
a[onclick*="abrirPasso5"],
a[onclick*="abrirPasso6"] {
    transition: all 0.3s ease;
}

a[onclick*="abrirPasso"]:hover,
a[onclick*="abrirPasso1"]:hover,
a[onclick*="abrirPasso2"]:hover,
a[onclick*="abrirPasso3"]:hover,
a[onclick*="abrirPasso4"]:hover,
a[onclick*="abrirPasso5"]:hover,
a[onclick*="abrirPasso6"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Seções */
section {
    scroll-behavior: smooth;
}

/* Botão Flutuante WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-button:hover {
    background: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    transform: scale(1.1);
}

.whatsapp-button svg {
    width: 30px;
    height: 30px;
}

/* Responsividade do botão WhatsApp */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .whatsapp-button svg {
        width: 28px;
        height: 28px;
    }
}

/* Grid Responsivo */
@media (max-width: 768px) {
    h1 {
        font-size: 32px !important;
    }

    h2 {
        font-size: 28px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    p {
        font-size: 14px !important;
    }

    section {
        padding: 50px 15px !important;
    }

    div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    div[style*="display: flex"] {
        flex-direction: column !important;
    }

    a[style*="padding: 18px 50px"] {
        padding: 14px 30px !important;
        font-size: 16px !important;
    }

    a[style*="padding: 15px 20px"] {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }

    nav div[style*="display: flex"] {
        flex-direction: row !important;
        justify-content: space-between !important;
    }

    /* Aumentar altura dos inputs no mobile */
    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        height: 60px !important;
        line-height: 60px !important;
        font-size: 16px !important;
        padding: 0 15px !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px !important;
    }

    h2 {
        font-size: 22px !important;
    }

    section {
        padding: 40px 15px !important;
    }

    #contatoFinalizado2 {
        width: 100%;
        max-width: 100%;
        border-radius: 15px 15px 0 0;
        bottom: 0;
        top: auto;
        transform: translate(-50%, 0);
        left: 50%;
    }

    a[style*="display: flex; gap: 10px"] {
        flex-direction: column !important;
        gap: 8px !important;
    }

    a[style*="width:100px"] {
        width: 100% !important;
    }

    /* Aumentar altura dos inputs no mobile pequeno */
    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        height: 55px !important;
        line-height: 55px !important;
        font-size: 16px !important;
        padding: 0 15px !important;
    }
}

/* Scroll Suave */
html {
    scroll-behavior: smooth;
}

/* Estilos de Acessibilidade */
a:focus,
button:focus,
input:focus {
    outline: 2px solid #4e14fb;
    outline-offset: 2px;
}

/* Animação de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: slideInUp 0.6s ease-out;
}

/* Hover effect para cards */
div[style*="box-shadow: 0 4px 15px"] {
    transition: all 0.3s ease;
}

div[style*="box-shadow: 0 4px 15px"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Estilos para impressão */
@media print {
    nav,
    footer,
    .whatsapp-button {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    #contatoFinalizado2 {
        background: #2a2a2a;
        color: #e0e0e0;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"] {
        background: #333;
        color: #e0e0e0;
        border-color: #555 !important;
    }
}

/* Performance optimization */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent layout shift */
html {
    scroll-padding-top: 70px;
}
