body {
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.hero, .section, .footer, .contact {
    text-align: center;
    padding: 60px 0;
    width: 100%;
    animation: fadeIn 0.5s ease-in-out;
}

.hero h1, .section h2, .footer p, .contact h1 {
    text-align: center;
}

.hero h1, .contact h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p, .section p, .contact .quill-content p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center; /* Garantir centralização do texto */
}

.section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer p {
    font-size: 1em;
    margin: 0;
}

/* Estilos para conteúdo do Quill */
.quill-content {
    line-height: 1.6;
    margin-top: 10px;
}

.quill-content p {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    line-height: 1.6;
}

/* Priorizar estilos inline de cor do Quill */
.quill-content p[style*="color"],
.quill-content span[style*="color"] {
    /* Não definir color, deixar o estilo inline do Quill prevalecer */
}

/* Fallback para elementos sem estilo inline de cor */
.hero .quill-content p:not([style*="color"]),
.hero .quill-content span:not([style*="color"]),
.section .quill-content p:not([style*="color"]),
.section .quill-content span:not([style*="color"]),
.footer .quill-content p:not([style*="color"]),
.footer .quill-content span:not([style*="color"]),
.contact .quill-content p:not([style*="color"]),
.contact .quill-content span:not([style*="color"]) {
    color: inherit; /* Herda a cor do pai (.hero, .section, .contact, .footer) */
}

/* Garantir que a seção .hero respeite os estilos inline do Quill */
.hero .quill-content p,
.hero .quill-content span {
    color: inherit; /* Herda a cor do .hero como fallback, permitindo que estilos inline prevaleçam */
}

.quill-content a {
    text-decoration: underline;
    color: #3B82F6; /* Cor padrão para links, pode ser sobrescrita por style inline */
}

.quill-content a:hover {
    text-decoration: none;
}

.quill-content strong {
    font-weight: 700;
}

.quill-content em {
    font-style: italic;
}

.quill-content u {
    text-decoration: underline;
}

/* Permitir estilos inline de text-align em <p> */
.quill-content p[style*="text-align"] {
    display: block;
}

.hero-image, .section-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 560px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 20px;
    text-align: left; /* Alinhamento à esquerda para labels e inputs */
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
    height: 140px;
    resize: vertical;
}

.form-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center; /* Centralizar botões horizontalmente */
    justify-content: center; /* Garantir centralização vertical */
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(90deg, #3B82F6, #60A5FA);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    width: 100%; /* Mesma largura da textarea */
    box-sizing: border-box;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.2);
}

.btn.whatsapp {
    background: #25D366;
}

.error, .success {
    padding: 12px;
    margin-top: 10px;
    border-radius: 6px;
    text-align: center; /* Centralizar mensagens de erro/sucesso */
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.error {
    background-color: #fee2e2;
    color: #b91c1c;
}

.success {
    background-color: #d1fae5;
    color: #065f46;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 20px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-video,
.section-video {
    width: 100%;
    height: 100%;
    border: none;
}

/* Media Queries para Responsividade */
@media (max-width: 768px) {
    .container {
        max-width: 800px;
        padding: 15px;
    }

    .contact-form {
        max-width: 464px;
        padding: 15px;
    }

    .hero, .section, .contact, .footer {
        padding: 40px 0;
    }

    .hero h1, .contact h1 {
        font-size: 2em;
    }

    .section h2 {
        font-size: 1.8em;
    }

    .hero p, .section p, .contact .quill-content p {
        font-size: 1.1em;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px;
        font-size: 15px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
        width: 100%; /* Manter mesma largura da textarea */
    }

    .error, .success {
        padding: 10px;
        font-size: 15px;
        max-width: 464px;
    }

    .video-wrapper {
        max-width: 800px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 10px;
    }

    .contact-form {
        max-width: 100%;
        padding: 10px;
    }

    .hero, .section, .contact, .footer {
        padding: 30px 0;
    }

    .hero h1, .contact h1 {
        font-size: 1.8em;
    }

    .section h2 {
        font-size: 1.6em;
    }

    .hero p, .section p, .contact .quill-content p {
        font-size: 1em;
    }

    .form-group input,
    .form-group textarea {
        padding: 8px;
        font-size: 14px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%; /* Manter mesma largura da textarea */
    }

    .error, .success {
        padding: 8px;
        font-size: 14px;
        max-width: 100%;
    }

    .video-wrapper {
        max-width: 100%;
    }
}