/* Estilos para o formulário Técnica Tintas */
:root {
    --primary-color: #ff6600; /* Laranja principal do site */
    --secondary-color: #333333;
    --light-gray: #f5f5f5;
    --border-color: #ddd;
    --error-color: #dc3545;
    --success-color: #28a745;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 15px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header img {
    max-width: 200px;
    height: auto;
}

.form-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.form-title {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

.form-subtitle {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

/* Estilos para o seletor de tipo de pessoa */
.person-type-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.person-type-option {
    padding: 15px 30px;
    margin: 0 10px;
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    width: 200px;
}

.person-type-option.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-control.is-invalid {
    border-color: var(--error-color);
}

.invalid-feedback {
    color: var(--error-color);
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.form-control.is-invalid + .invalid-feedback {
    display: block;
}

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.form-select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #e55c00;
}

.privacy-policy {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.privacy-policy a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-policy a:hover {
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
    
    .person-type-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .person-type-option {
        width: 80%;
        margin: 5px 0;
    }
}

/* Estilos para mostrar/ocultar formulários */
#formPessoaJuridica, #formPessoaFisica {
    display: none;
}

#formPessoaJuridica.active, #formPessoaFisica.active {
    display: block;
}

/* Estilos para a tabela de sócios */
.socios-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.socios-table th {
    background-color: #f5f5f5;
    padding: 10px;
    text-align: left;
    border: 1px solid var(--border-color);
}

.socios-table td {
    padding: 10px;
    border: 1px solid var(--border-color);
}

.socios-table input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 12px;
}

.add-socio-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 20px;
}

.remove-socio-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 12px;
    cursor: pointer;
}
/* Estilos para mensagens de sucesso e carregamento */

/* Overlay de carregamento */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.loading-spinner {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Mensagens de sucesso e erro */
.mensagem-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

.mensagem-container {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
}

.mensagem-container.sucesso {
    border-top: 5px solid #28a745;
}

.mensagem-container.erro {
    border-top: 5px solid #dc3545;
}

.mensagem-icone {
    margin-bottom: 20px;
}

.mensagem-container.sucesso .mensagem-icone {
    color: #28a745;
}

.mensagem-container.erro .mensagem-icone {
    color: #dc3545;
}

.mensagem-container h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.mensagem-texto {
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.btn-fechar {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-fechar:hover {
    background-color: #e55c00;
}
.upload-thumbnail {
    max-width: 200px;
}
