body {
    font-family: Arial, sans-serif;
    background: #f0f4f8;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h1,
h2 {
    text-align: center;
    color: #2a3f54;
}

.form-group {
    margin-bottom: 15px;
}

input[type="text"],
input[type="tel"],
input[type="date"],
select {
    background-color: #f0f0f0;
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 16px;
}

button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #2a3f54;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
}

button:hover {
    background: #1f2b3a;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

#relatorio {
    margin-top: 30px;
    padding: 20px;
    background: #eef4f8;
    border-radius: 10px;
    white-space: pre-wrap;
}

/* ======================
   MODAL DE CONFIRMAÇÃO
======================= */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-top: 0;
    color: #2a3f54;
}

.modal-content pre {
    text-align: left;
    background: #eef4f8;
    padding: 15px;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.modal-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

#btnConfirmar {
    background: #2a3f54;
    color: #fff;
}

#btnConfirmar:hover {
    background: #1f2b3a;
}

#btnFechar {
    background: #c0392b;
    color: #fff;
}

#btnFechar:hover {
    background: #922b21;
}

/* ======================
   RESPONSIVIDADE
======================= */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    input[type="date"],
    select {
        width: 100%;
        box-sizing: border-box;
    }

    .form-group {
        display: flex;
        flex-direction: column;
    }
}
