/* General Styles */
body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
}

.form-container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    margin-bottom: 30px;
    overflow: hidden;
}

.form-header {
    background-color: #263147;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.form-body {
    padding: 30px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section-title {
    border-bottom: 2px solid #263147;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #263147;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Step Progress Bar */
.step-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
}

.step-progress:before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e9ecef;
    z-index: 0;
}

.step-container {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: bold;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.step:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.step.active {
    background-color: #263147;
    color: white;
    border-color: #263147;
}

.step.completed {
    background-color: #198754;
    color: white;
    border-color: #198754;
}

.step-container {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    cursor: pointer;
}

.step-label {
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
    transition: color 0.3s ease;
}

.step-container:hover .step-label {
    color: #263147;
    font-weight: bold;
}

/* Tipo de Pessoa Selection */
.tipo-pessoa-card {
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.tipo-pessoa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tipo-pessoa-card.selected {
    border-color: #263147;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: #263147;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Custom Checkboxes */
.form-check.credenciamento {
    margin-bottom: 10px;
}

/* Table Styles */
.table.credenciamento th {
    background-color: #f8f9fa;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .step-label {
        font-size: 12px;
    }
    
    .step {
        width: 30px;
        height: 30px;
    }
    
    .form-header {
        font-size: 20px;
    }
}

.form-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}
.form-container:hover {
    
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.form-header {
    background-color: #263147;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}
.form-body {
    padding: 30px;
}
.form-control, .form-select {
    border: none;
    border-bottom: 2px solid #EDB556;
    border-radius: 0;
    padding: 10px 5px;
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    box-shadow: none;
    border-color: #00a0e9;
}
.form-label {
    color: #263147;
    font-weight: 600;
}
.btn-primary {
    background-color: #263147;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: #00a0e9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.input-group-text {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid #263147;
    color: #263147;    
}

.form-control{
    text-transform: uppercase;
}
.invalid-feedback {
    color: #dc3545;
}
.form-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}
.form-section-title {
    color: #263147;
    font-weight: bold;
    margin-bottom: 15px;
}

.credenciamento {
    background-color: #fff;
}

.form-check.credenciamento {
    margin-bottom: 0px;
    padding-bottom: .255rem;            
}

.form-check.credenciamento .form-check-input {
    margin-left: -1rem;
}

.form-check.credenciamento label.form-check-label {
    margin-left: 6px;
}

/* File Upload Styles */
.file-upload-container {
    margin-bottom: 10px;
}

.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    padding: 25px;
    border: 2px dashed #EDB556;
    border-radius: 3px;
    transition: 0.2s;
    background-color: #f8f9fa;
    min-height: 100px;
    cursor: pointer;
}

.file-drop-area.is-active {
    background-color: rgba(237, 181, 86, 0.05);
}

.file-msg {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
}

.file-input {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

.file-preview {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 30px;
    border: 1px dashed #dee2e6;
    border-radius: 4px;
    padding: 10px;
    background-color: #f8f9fa;
}

.file-preview:empty {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6c757d;
}

.file-preview:empty::before {
    content: "Nenhum arquivo selecionado";
    font-style: italic;
    color: #6c757d;
}

.file-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: white;
    width: 120px;
    height: 120px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.file-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.file-item img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

.file-item .file-name {
    font-size: 12px;
    margin-top: 5px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    color: #495057;
}

.file-item .file-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.file-item .file-remove:hover {
    background-color: #c82333;
}

.file-item .file-type {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 24px;
    color: #6c757d;
    margin-bottom: 5px;
}

.file-item .file-type.pdf {
    color: #dc3545;
}

.file-item .file-type.image {
    color: #28a745;
}

.file-item .file-type.doc {
    color: #007bff;
}

.file-item .file-type.other {
    color: #6c757d;
}
