body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    background: #ffffff;
    font-size: 14px;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: none;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgb(255, 255, 255);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.title-container {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.title-container h1 {
    margin-bottom: 0;
    display: inline-block;
}

.search-buttons {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-buttons button {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.search-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.search-buttons button[type="submit"] {
    min-width: 260px;
}

.help-button {
    background-color: #4CAF50;
    color: white;
    padding: 0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.help-button:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.help-button i {
    margin: 0;
    font-size: 18px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 8px;
}

.input-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1em;
}

input {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    outline: none;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

.results {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 1000;
}

.results .modal-content {
    background: #ffffff;
    margin: 4% auto;
    padding: 16px;
    border-radius: 10px;
    max-width: 320px;
    position: relative;
    box-shadow: 0 18px 38px rgba(67, 176, 71, 0.18), 0 6px 16px rgba(67, 176, 71, 0.12);
    border: 1px solid rgba(67, 176, 71, 0.15);
    animation: modalFadeIn 0.3s ease-out;
}

.results .modal-content h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.results .modal-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 2px;
}

.results-grid {
    margin-top: 20px;
}

.results-info {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding: 10px;
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-item:last-child {
    margin-bottom: 0;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.1);
}

.result-item i {
    color: #4caf50;
    font-size: 1.6rem;
    background: rgba(76, 175, 80, 0.1);
    padding: 10px;
    border-radius: 10px;
    min-width: 40px;
    text-align: center;
}

.result-item strong {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-right: 8px;
    display: block;
    margin-bottom: 3px;
}

.result-item span {
    color: #6c757d;
    font-size: 0.95rem;
    font-weight: 500;
}

.results .pdf-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.results .pdf-buttons button {
    flex: 1;
    min-width: 80px;
    max-width: 150px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.2);
}

.results .pdf-buttons button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.results .close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    width: 35px;
    height: 35px;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
        margin: 10px auto;
    }
    
    .search-form {
        gap: 15px;
    }
    
    input {
        padding: 10px;
        font-size: 14px;
    }
    
    .search-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-buttons button {
        width: 100%;
        max-width: none;
        padding: 12px;
    }
    
    .search-buttons button[type="submit"] {
        min-width: 100%;
    }
    
    .help-button {
        width: 40px;
        height: 40px;
    }
    
    
    
    .modal-content {
        padding: 20px;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .logo-image {
        max-width: 200px;
    }
    
    .help-box {
        width: 280px;
        right: -10px;
    }
    
    .help-box::before {
        right: 15px;
    }
    
    .help-container {
        position: static;
    }
    
    .modal {
        padding: 10px;
    }
    
    .help-overlay {
        padding: 15px;
    }
    
    .download-btn {
        padding: 10px;
        font-size: 14px;
    }
    
    .results .modal-content {
        margin: 10px;
        padding: 20px;
        width: calc(100% - 20px);
    }
    
    .results .pdf-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .results .pdf-buttons button {
        width: 100%;
    }
    
    .contato-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contato-item {
        padding: 15px;
    }
    
    .pdf-modal {
        padding: 10px;
    }
    
    .pdf-modal iframe {
        height: 400px;
    }
}

.download-links {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-links h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3em;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    margin: 0;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.download-btn:hover {
    background-color: #45a049;
}

.download-btn i {
    margin-right: 5px;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

.logo a {
    display: inline-block;
    text-decoration: none;
}

.logo-image {
    max-width: 180px;
    height: auto;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.logo-image:hover {
    transform: scale(1.05);
}

.footer {
    text-align: center;
    margin-top: 40px;
    padding: 0;
    background-color: #ffffff;
    width: 100%;
}

.footer-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: none;
}

    

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 16px 16px 14px 16px;
    border: 1px solid rgba(67, 176, 71, 0.15);
    width: 90%;
    max-width: 420px;
    border-radius: 10px;
    position: relative;
    box-sizing: border-box;
    box-shadow: 0 18px 38px rgba(67, 176, 71, 0.18), 0 6px 16px rgba(67, 176, 71, 0.12);
    font-size: 0.9rem;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

    

.modal-content h2 i {
    margin-right: 10px;
    color: #4CAF50;
}

button i {
    margin-right: 5px;
}

input.error {
    border-color: #ff0000;
}

.error-message {
    color: #ff0000;
    font-size: 14px;
    margin-top: 5px;
}

.form-error {
    color: #ff0000;
    font-size: 14px;
    margin: 10px 0;
    text-align: center;
    width: 100%;
    font-weight: 500;
}

.form-error:not(:empty) {
    display: block;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 2px;
}

.help-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-box {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background-color: #333;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    width: 250px;
    margin-bottom: 10px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.help-box.active {
    display: block;
}

.help-box::before {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
}

.no-results {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.help-overlay {
    display: none;
}

@media screen and (min-width: 601px) {
    .help-overlay {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    .search-form {
        gap: 15px;
    }
    
    input {
        font-size: 16px;
        padding: 10px;
    }
    
    .search-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .help-button {
        width: 100%;
        height: 40px;
    }
    
    .modal-content {
        width: 90%;
        margin: 20px auto;
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5em;
    }
    
    .logo-image {
        max-width: 120px;
    }
    
    .help-box {
        width: 90%;
        left: 5%;
    }
    
    .help-box::before {
        display: none;
    }
    
    .help-container {
        position: static;
    }
    
    .modal {
        padding: 10px;
    }
    
    .help-overlay {
        padding: 10px;
    }
    
    .download-btn {
        display: block;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }
}

.pdf-modal {
    max-width: 90%;
    width: 800px;
    height: 80vh;
    padding: 20px;
}

.pdf-modal iframe {
    margin-top: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.view-pdf-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.view-pdf-btn:hover {
    background-color: #45a049;
}

.pdf-link-container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

@media screen and (max-width: 600px) {
    .pdf-link-container {
        flex-direction: column;
        width: 100%;
    }

    .download-btn, .view-pdf-btn {
        width: 100%;
        justify-content: center;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.results .search-buttons {
    margin: 20px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.results .search-buttons button {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.results .search-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

@media screen and (max-width: 600px) {
    .results .search-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .results .search-buttons button {
        width: 100%;
        max-width: none;
    }
}

.pdf-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 15px 0;
}

.pdf-buttons button {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pdf-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

@media screen and (max-width: 600px) {
    .pdf-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .pdf-buttons button {
        width: 100%;
        max-width: none;
    }
}

    

#visualizarBtn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 3px 10px rgba(0, 123, 255, 0.2);
}

#visualizarBtn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.botao-custom {
    padding: 6px 18px;
    font-size: 15px;
    border-radius: 20px;
    background: #fff;
    color: #2cb34a;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px #0001;
    margin-bottom: 10px;
    transition: background 0.2s;
}
.botao-custom:hover {
    background: #e6ffe6;
}