/* Estilos responsivos para Consórcio de Imóveis (até 768px) */

/* Reset para evitar barras de rolagem horizontais */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Garante que as imagens não ultrapassem a largura do contêiner */
img {
    max-width: 100%;
    height: auto;
}

/* Ajuste geral para todas as seções */
.section {
    width: 100%;
    overflow: hidden;
    padding: 30px 15px;
    box-sizing: border-box;
}

/* Ajuste para o conteúdo não ficar atrás do header fixo */
body {
    padding-top: 70px !important;
}

/* ---------- HERO ---------- */
.hero-consorcio {
    padding: 100px 15px 60px !important;
    margin-top: 0 !important;
    min-height: 60vh;
    background-position: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-consorcio h1 {
    font-size: 1.8rem !important;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero-consorcio p {
    font-size: 1rem !important;
    margin-bottom: 20px;
    padding: 0 10px;
}

/* ---------- SEÇÃO DE COTAÇÃO ---------- */
.quote-section {
    padding: 30px 15px;
}

.section-title h2 {
    font-size: 1.8rem !important;
    line-height: 1.2;
}

.quote-form {
    padding: 20px;
    margin: 0 auto;
    max-width: 100%;
}

.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* ---------- SEÇÃO DE BENEFÍCIOS ---------- */
.benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.benefit-card {
    padding: 20px;
    margin-bottom: 15px;
}

/* ---------- TIPOS DE IMÓVEIS ---------- */
.property-types {
    padding: 30px 15px;
}

.property-grid {
    grid-template-columns: 1fr;
    gap: 20px;
}

.property-card {
    margin-bottom: 20px;
}

/* ---------- COMO FUNCIONA ---------- */
.how-it-works {
    padding: 30px 15px;
}

.steps-container {
    flex-direction: column;
}

.step {
    width: 100%;
    margin-bottom: 30px;
    padding: 0 15px;
}

/* ---------- COMPARAÇÃO ---------- */
.comparison-section {
    padding: 30px 15px;
}

.comparison-table {
    overflow-x: auto;
    margin-bottom: 30px;
}

table {
    min-width: 600px;
}

/* ---------- DEPOIMENTOS ---------- */
.testimonials-section {
    padding: 30px 15px;
}

.testimonial-slider {
    margin: 0 -15px;
}

.testimonial-card {
    margin: 0 10px;
    padding: 20px;
}

/* ---------- FAQ ---------- */
.faq-section {
    padding: 30px 15px;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-question {
    padding: 15px;
    font-size: 1rem;
}

.faq-answer {
    padding: 0 15px 15px;
}

/* ---------- CTA ---------- */
.cta-section {
    padding: 40px 15px;
    text-align: center;
}

.cta-content h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cta-buttons {
    flex-direction: column;
    gap: 15px;
}

.cta-button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
}

/* ---------- RODAPÉ ---------- */
footer {
    padding: 40px 15px 20px;
}

.footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

/* Ajustes para telas um pouco maiores (481px a 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .cta-button {
        width: auto;
        padding: 12px 25px;
    }
}

/* Ajustes para formulários */
.form-container {
    padding: 20px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 15px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Ajustes para botões */
.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin: 5px 0;
}

/* Ajustes para cards */
.card {
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card-img-top {
    width: 100%;
    height: auto;
}

.card-body {
    padding: 15px;
}

/* Ajustes para tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9rem;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
