body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #000000, #434343);
    font-size: 16px;
    color: #333;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

/* Proteção contra cópia */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Permitir seleção apenas em campos de input */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Aviso de direitos autorais */
body::before {
    content: "© 2024 MunckMS - Todos os direitos reservados";
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.container {
    width: 80%;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    padding: 20px 15px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.2);
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.logo {
    display: block;
    margin: 0 auto 20px;
    max-width: 200px;
}

h1, h2, h3 {
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #000000;
}

textarea {
    height: 100px;
    resize: vertical;
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: #000000;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    background-color: #434343;
    transform: scale(1.05);
}

button i {
    margin-right: 8px;
}

#proposta {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
}

#proposta img {
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

#proposta h1 {
    font-size: 18px;
    margin: 20px 0;
}

#proposta div {
    margin-bottom: 15px;
}

#proposta p {
    margin: 5px 0;
}

#proposta ul {
    margin: 10px 0;
    padding-left: 0;
}

#proposta li {
    margin-bottom: 8px;
}

#proposta .valor-total {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    margin: 15px 0;
}

.hidden {
    display: none;
}

.botoes-acao {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 20px;
}

.botoes-acao button {
    width: 48%;
    margin-bottom: 10px;
}

/* Estilos para melhorar a legibilidade da proposta gerada */
#proposta h2 {
    color: #000000;
    border-bottom: 2px solid #000000;
    padding-bottom: 10px;
}

#proposta p {
    margin-bottom: 10px;
}

#proposta strong {
    color: #333;
}

#proposta ul {
    padding-left: 20px;
}

#proposta li {
    margin-bottom: 5px;
}

/* Responsividade */
@media (max-width: 600px) {
    .container {
        width: 95%;
    }

    .botoes-acao {
        flex-direction: column;
    }

    .botoes-acao button {
        width: 100%;
        margin-bottom: 10px;
    }

    button {
        font-size: 16px;
    }
}

/* Estilo para feedback visual ao copiar */
.copiado {
    background-color: #4CAF50;
    transition: background-color 0.5s ease;
}

/* Estilos do Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #000;
}

.modal h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.modal .form-group {
    margin-bottom: 15px;
}

.modal label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.modal input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.modal input:focus {
    border-color: #000000;
    outline: none;
}

.modal .info-text {
    margin: 15px 0;
    color: #666;
    font-size: 0.9em;
    font-style: italic;
}

.modal .btn-enviar {
    width: 100%;
    padding: 12px;
    background-color: #000000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal .btn-enviar:hover {
    background-color: #333;
}

.modal .btn-enviar i {
    margin-right: 8px;
}

/* Estilos para a impressão e geração de PDF */
@media print {
    body {
        background: none;
    }
    .container {
        box-shadow: none;
        border: none;
    }
    .botoes-acao {
        display: none;
    }
}

/* Estilos específicos para o elemento clonado na geração do PDF */
#proposta {
    background-color: white !important;
    width: 210mm !important;
    min-height: 297mm !important;
    padding: 20mm !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#proposta img {
    display: block !important;
    margin: 0 auto !important;
    max-width: 150px !important;
    height: auto !important;
}

#proposta * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
}
