/* ============================================
   ARQUIVO: /assets/css/orcamento.css
   ESTILOS DO MODAL DE ORÇAMENTO RÁPIDO
   ============================================ */

/* Overlay do modal (fundo escuro) */
.orcamento-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.orcamento-modal-overlay.active {
    display: flex;
}

/* Container do modal */
.orcamento-modal {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
    position: relative;
}

/* Cabeçalho do modal */
.orcamento-modal-header {
    background: linear-gradient(135deg, var(--cor-primaria, #005791) 0%, var(--cor-secundaria, #23B061) 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.orcamento-modal-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.orcamento-modal-header h2 i {
    font-size: 28px;
}

.orcamento-modal-header .btn-fechar {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.orcamento-modal-header .btn-fechar:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Corpo do modal */
.orcamento-modal-body {
    padding: 30px;
}

/* Grupo de campos */
.orcamento-campo {
    margin-bottom: 20px;
}

.orcamento-campo label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.orcamento-campo label i {
    color: var(--cor-primaria, #005791);
    margin-right: 8px;
    width: 18px;
}

.orcamento-campo input,
.orcamento-campo textarea,
.orcamento-campo select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.orcamento-campo input:focus,
.orcamento-campo textarea:focus,
.orcamento-campo select:focus {
    outline: none;
    border-color: var(--cor-primaria, #005791);
    box-shadow: 0 0 0 3px rgba(0, 87, 145, 0.1);
}

.orcamento-campo textarea {
    min-height: 100px;
    resize: vertical;
}

/* Campos em linha (2 colunas) */
.orcamento-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Upload de arquivo */
.orcamento-upload {
    border: 2px dashed var(--cor-primaria, #005791);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.orcamento-upload:hover {
    background: #e3f2fd;
    border-color: var(--cor-secundaria, #23B061);
}

.orcamento-upload i {
    font-size: 32px;
    color: var(--cor-primaria, #005791);
    margin-bottom: 10px;
}

.orcamento-upload p {
    color: #666;
    margin-bottom: 5px;
}

.orcamento-upload small {
    color: #999;
    font-size: 12px;
}

.orcamento-upload input[type="file"] {
    display: none;
}

/* Nome do arquivo selecionado */
.orcamento-arquivo-nome {
    margin-top: 10px;
    padding: 8px 12px;
    background: #e9ecef;
    border-radius: 5px;
    font-size: 13px;
    color: #333;
    display: none;
}

.orcamento-arquivo-nome.active {
    display: block;
}

/* Checkbox de consentimento */
.orcamento-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.orcamento-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    cursor: pointer;
}

.orcamento-checkbox label {
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.orcamento-checkbox a {
    color: var(--cor-primaria, #005791);
    text-decoration: none;
}

.orcamento-checkbox a:hover {
    text-decoration: underline;
}

/* ===== BOTÃO DE ENVIO (PADRÃO AZUL) ===== */
.orcamento-btn-enviar {
    width: 100%;
    background: linear-gradient(135deg, var(--cor-primaria, #005791) 0%, var(--cor-secundaria, #23B061) 100%);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 87, 145, 0.3);
}

.orcamento-btn-enviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 87, 145, 0.4);
}

.orcamento-btn-enviar:active {
    transform: translateY(-1px);
}

.orcamento-btn-enviar:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.orcamento-btn-enviar i {
    font-size: 20px;
}
/* ===== FIM BOTÃO DE ENVIO ===== */

/* Mensagens de feedback */
.orcamento-mensagem {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
}

.orcamento-mensagem.sucesso {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #23B061;
    display: flex;
}

.orcamento-mensagem.erro {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
    display: flex;
}

.orcamento-mensagem i {
    font-size: 20px;
}

/* Loading spinner */
.orcamento-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

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

/* Campo honeypot (anti-spam) */
.orcamento-honeypot {
    display: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .orcamento-modal-header h2 {
        font-size: 20px;
    }
    
    .orcamento-modal-body {
        padding: 20px;
    }
    
    .orcamento-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .orcamento-btn-enviar {
        font-size: 16px;
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .orcamento-modal {
        width: 95%;
    }
    
    .orcamento-modal-header {
        padding: 20px;
    }
    
    .orcamento-modal-header h2 i {
        font-size: 24px;
    }
    
    .orcamento-modal-header .btn-fechar {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}