body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
}

.form-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 1000px;
}

.form-container h3,
.form-container h1 {
    text-align: center;
    color: #333;
    font-weight: 300;
}

.form-container label {
    display: block;
    margin: 15px 0 5px;
    color: #333;
    font-size: 16px;
    font-weight: bold;
}

.form-container input,
.form-container select,
.form-container button {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

.form-container button {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-container button:hover {
    background-color: #218838;
}

.company-info {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 15px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Sobreposição semitransparente */
    display: none;
    /* Inicialmente escondido */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.loading-content p {
    font-size: 16px;
    color: #333;
    margin-top: 20px;
}

/* Estilo do spinner */
.loader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    width: 40px;
    /* Aumentado para ser mais visível */
    height: 40px;
    /* Aumentado para ser mais visível */
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.contact {
    position: relative;
    /* Adicionado para garantir que o botão "X" fique relativo ao bloco de contato */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.contact h4 {
    width: 100%;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.contact .field-container {
    flex: 1 1 48%;
}

/* Estilo do botão "X" isolado */
.contact .remove-contact {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5f5f;
    border: none;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 25px;
    /* Ajusta a altura da linha para centralizar o "X" */
    padding: 0;
    font-size: 14px;
}

.contact .remove-contact:hover {
    background-color: #e60000;
}

.contact label {
    margin-bottom: 5px;
    font-size: 12px;
}


.checkbox-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

.checkbox-container .field-container {
    flex: 1;
    text-align: center;
}

/* Custom checkbox */
.custom-checkbox {
    position: relative;
    display: inline-block;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

/* Estilo do quadrado vazio do checkbox */
.custom-checkbox label {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 2px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Estilo adicional para mudança de borda ao estar marcado */
.custom-checkbox input[type="checkbox"]:checked+label {
    border-color: #28a745;
}


/* Estilo quando o checkbox está marcado: adiciona o ícone de checkmark */
.custom-checkbox input[type="checkbox"]:checked+label:after {
    content: '✓';
    font-size: 16px;
    color: #28a745;
    /* Cor verde para o checkmark */
}



.custom-checkbox label:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.error-message {
    color: red;
    font-size: 12px;
}

.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
}

.file-upload input[type="file"] {
    width: 100%;
    height: 40px;
    opacity: 0;
    cursor: pointer;
}

.file-upload label {
    position: absolute;
    top: 0;
    left: 0;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.file-list {
    margin-top: 10px;
    list-style: none;
    padding: 0;
}

.file-list li {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-list button {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 16px;
    max-width: 67px;
}

.file-list button:hover {
    background: #f0f0f0;
}

.input-row {
    display: flex;
    gap: 10px;
}

.input-row .input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}




/* Responsividade para telas menores, como celulares */
@media (max-width: 768px) {
    .contact {
        flex-wrap: wrap;
        gap: 10px;
    }

    .contact .field-container {
        flex: 1 1 100%;
        /* Cada input ocupará 100% da largura disponível em telas pequenas */
        min-width: unset;
        /* Remove o valor mínimo de largura */
    }

    .checkbox-container {
        flex-wrap: wrap;
    }

    .checkbox-container .field-container {
        flex: 1 1 100%;
        /* Checkboxes também ocuparão 100% em telas pequenas */
        text-align: left;
        padding: 5px 0;
    }

    .form-container {
        width: 100%;
        /* O formulário ocupará toda a largura da tela em dispositivos móveis */
        max-width: 100%;
        /* Remover a limitação de largura máxima em dispositivos móveis */
        padding: 10px;
        /* Reduzir o padding nas laterais */
    }

    .file-upload label {
        font-size: 14px;
        padding: 10px;
    }
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    display: flex;
    align-items: center;
    background-color: #333;
    color: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.toast .close-btn {
    margin-left: auto;
    background-color: transparent;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    /* Inicialmente escondido */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.popup-content h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #28a745;
}

.popup-content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.popup-content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup-content a i {
    margin-right: 8px;
}

.popup-content a:hover {
    background-color: #0056b3;
}

.popup-content button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}

.popup-content button:hover {
    background-color: #218838;
}