/* Fundo do modal */
 .modal {
    display: none; /* escondido por padrão */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6); /* fundo escuro translúcido */

    overflow-x: hidden;
    overflow-y: auto;
    inset: 0;
 }

/* Conteúdo do modal */
 .modal-content {

    box-sizing: border-box;
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
    position: relative;
    /*overflow: visible;*/
    z-index: 10000;
 }

@media screen and (max-width: 768px) {
 .modal-content {
    width: 90%;          /* ocupa quase toda a largura, mas não 100% */
    max-width: 400px;    /* limite para não ficar exagerado */
    margin: 20px auto;   /* auto centraliza na horizontal */
    padding: 20px;       /* ajuste interno */
    }
 }

/* feedback de envio */
 #form-status p {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
 }

 #form-status p[style*="green"] {
    background: #d4edda;
 }

 #form-status p[style*="red"] {
    background: #f8d7da;
 }

/* Botão de fechar */
 .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
 }

 .close:hover {
    color: #333;
 }

/* Formulário */
 .contact-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
 }

 .contact-form label {
    display: block;
    margin: 10px 0 5px;
    font-weight: 600;
    color: #444;
 }

 .contact-form input,
 .contact-form textarea {
    max-width: 500px;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
 }

    .contact-form input:focus,
    .contact-form textarea:focus {
        border-color: #28a745; /* verde ao focar */
        outline: none;
 }

/* Botão enviar */
 .contact-form button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
 }

 .contact-form button:hover {
    background-color: #218838;
 }

/* Animação de entrada */
 @keyframes fadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
 }

 .mensagem-sucesso {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    margin-top: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
 }

 .mensagem-erro {
    background: #f8d7da;
    color: #721c24;
    padding: 12px;
    margin-top: 15px;
    border-radius: 8px;
    text-align: center;
 }
