/* ============================================================
   BAZZIN EQUIPAMENTOS - SERVIÇOS (SWIPE EDITION 2026)
   ============================================================ */

:root {
    --grafite-bazzin: #1a1a1a;
    --laranja-bazzin: #E77B2D;
    --cinza-card-glass: rgba(36, 36, 36, 0.4); 
    --barra-admin-clara: #f1f1f1;
}

body, .services-section, main {
    background-color: var(--grafite-bazzin) !important;
    margin: 0; padding: 0;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* --- GRID DE SERVIÇOS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.service-card {
    background-color: var(--cinza-card-glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
    height: 560px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(231, 123, 45, 0.4);
}

/* --- EFEITO SWIPE (LADOS DO CARD) --- */
.side-content {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-content.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    position: relative;
}

.side-content.exit {
    opacity: 0;
    transform: translateX(-40px);
}

.card-image {
    height: 300px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    flex-shrink: 0;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-top: 4px solid var(--laranja-bazzin);
    overflow: hidden;
}

.card-content h3 {
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.2;
}

.card-description {
    flex: 1;
    overflow-y: auto !important;
    padding-right: 12px;
}

.card-description ul { list-style: none !important; padding: 0 !important; margin: 0; }
.card-description li {
    font-size: 0.92rem;
    color: #ccc;
    line-height: 1.4;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.card-description li::before {
    content: "•";
    color: #fff;
    position: absolute;
    left: 0; top: -2px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- BOTÕES DE SWIPE --- */
.btn-swipe {
    position: absolute;
    top: 150px;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2); 
    color: rgba(255, 255, 255, 0.5); 
    border: none; 
    width: 40px; 
    height: 60px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn-swipe:hover { 
    color: #fff;
    background: rgba(231, 123, 45, 0.8);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 0 15px rgba(231, 123, 45, 0.4);
}

.btn-swipe.prev { left: 0; border-radius: 0 8px 8px 0; }
.btn-swipe.next { right: 0; border-radius: 8px 0 0 8px; }

/* ============================================================
   MODAL DE ORÇAMENTO (SISTEMA DE FORMULÁRIO)
   ============================================================ */

.modal-orcamento {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content-orcamento {
    background-color: #121212;
    padding: 30px;
    border: 1px solid #E77B2D;
    border-radius: 12px;
    width: 90%;
    max-width: 550px;
    position: relative;
}

/* NOVO: Container do Form com Flexbox */
#formOrcamento {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    text-align: left;
}

/* Isso ignora as divs "form-row" do HTML e deixa o flexbox acima mandar nos inputs */
.form-row {
    display: contents;
}

.modal-content-orcamento input, 
.modal-content-orcamento textarea {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px;
    color: #fff;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.modal-content-orcamento input:focus, 
.modal-content-orcamento textarea:focus {
    border-color: #E77B2D !important;
    box-shadow: 0 0 8px rgba(231, 123, 45, 0.3);
}

/* --- REGRAS DE LARGURA ESPECÍFICAS --- */

#nome { flex: 2 1 65%; }    /* Nome longo (65% da linha) */
#empresa { flex: 1 1 30%; } /* Empresa curta (30% da linha) */

#cnpj, #telefone { flex: 1 1 48%; } /* Ficam lado a lado */

#email, 
#equipamento, 
.date-group, 
#detalhesServico, 
#btnEnviarOrcamento {
    flex: 1 0 100%; /* Ocupam a linha inteira sozinho */
}

/* --- BOTÕES E COMPONENTES --- */
.btn-enviar-orcamento {
    background-color: #E77B2D;
    color: #fff;
    padding: 15px;
    border: none;
    font-weight: 900;
    cursor: pointer;
    border-radius: 5px;
    text-transform: uppercase;
    transition: 0.3s ease;
}

.btn-enviar-orcamento:hover {
    background-color: #fff;
    color: #E77B2D;
}

.close-orcamento {
    position: absolute;
    right: 20px; top: 15px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.btn-fazer-orcamento {
    background-color: #E77B2D;
    color: white;
    border: none;
    padding: 12px;
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 15px;
    width: 100%;
    transition: 0.3s ease;
}

.btn-fazer-orcamento:hover {
    background-color: white;
    color: #E77B2D;
}

/* --- AJUSTES FINAIS --- */
input:-webkit-autofill {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset !important;
}

.badge-flip { display: none !important; }

/* SCROLLBAR */
.card-description::-webkit-scrollbar { width: 4px; }
.card-description::-webkit-scrollbar-thumb { background: var(--barra-admin-clara); border-radius: 10px; }

/* --- RESPONSIVIDADE --- */
@media (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 700px) { .services-grid { grid-template-columns: 1fr; } }
@media (max-width: 550px) {
    .modal-orcamento {
        align-items: flex-start !important; 
        overflow-y: auto !important;      
        padding: 20px 0 !important;       
        /* REMOVA O DISPLAY: FLEX DAQUI */
    }
    /* 2. Ajusta a caixa do formulário */
    .modal-content-orcamento {
        margin: 0 auto !important;        /* Centraliza a caixa na largura */
        padding: 15px 10px !important;
        width: 92% !important;
        max-height: none !important;      /* Remove qualquer trava de altura */
        position: relative !important;
    }

    /* 3. Ajustes de espaçamento interno para não ficar gigante */
    #formOrcamento {
        gap: 8px !important;
    }

    .modal-content-orcamento input, 
    .modal-content-orcamento textarea {
        flex: 1 0 100% !important; 
        max-width: 100% !important;
        padding: 10px !important;
    }

    /* 4. Altura da área de texto */
    #detalhesServico {
        height: 90px !important;
    }

    /* 5. Garante que o botão final tenha respiro embaixo */
    .btn-enviar-orcamento {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
        padding: 15px !important;
    }
}