/* Estilos para a área do candidato */

/* Estilos gerais */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.required-note {
    color: #dc3545;
    font-weight: normal;
}

/* Alertas e mensagens */
.alert {
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert .close {
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    background: none;
    border: 0;
    padding: 0;
    margin-left: 10px;
}

/* Formulário */
#cadastro-form {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden; /* Clearfix */
}

/* Additional clearfix for the form container */
#cadastro-form::after {
    content: "";
    display: table;
    clear: both;
}

fieldset {
    margin-bottom: 2rem;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 0.25rem;
    width: 100%;
    float: left;
}

legend {
    width: auto;
    padding: 0 10px;
    font-size: 1.25rem;
    background-color: #efefef;
}

.col12, .col8, .col7, .col6, .col5, .col4, .col3, .col2 {
    padding: 0.5rem;
    box-sizing: border-box;
    float: left;
    min-height: 1px;
}

.col12 { width: 100%; }
.col8 { width: 66.66%; }
.col7 { width: 58.33%; }
.col6 { width: 50%; }
.col5 { width: 41.66%; }
.col4 { width: 33.33%; }
.col3 { width: 25%; }
.col2 { width: 16.66%; }

/* Clear floats after each fieldset */
fieldset::after {
    content: "";
    display: table;
    clear: both;
}

/* Clear floats after dynamic form groups */
.dynamic-form-group::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .col8, .col7, .col6, .col5, .col4, .col3, .col2 {
        width: 100%;
        float: none;
    }

    fieldset {
        padding: 0.5rem;
    }

    .table-responsive {
        overflow-x: auto;
    }

    .btn-remover {
        float: none;
        display: block;
        width: 100%;
        margin-top: 1rem;
    }

    .profile-image img {
        max-width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    fieldset {
        padding: 0.25rem;
    }

    legend {
        font-size: 1rem;
    }

    .col12, .col8, .col7, .col6, .col5, .col4, .col3, .col2 {
        padding: 0.25rem;
    }
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    font-size: 1rem;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

button, .btn {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: background-color 0.2s;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background-color: #F37536;
    color: #fff;
}

.btn-primary:hover {
    background-color: #e06a2d;
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-remover {
    background-color: #dc3545;
    color: #fff;
    margin-top: 0.5rem;
    float: right;
}

#btn-add-educacional, 
#btn-add-curso, 
#btn-add-experiencia {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    clear: both;
    display: block;
}

/* Tabelas */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: #212529;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    text-align: left;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Imagem de perfil */
.profile-image {
    margin-bottom: 15px;
    text-align: center;
}

.profile-image img {
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #ddd;
    padding: 3px;
}

/* Campos dinâmicos */
.dynamic-form-group {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 0.25rem;
    background-color: #f9f9f9;
    width: 100%;
    float: left;
}

#container-educacional, 
#container-curso, 
#container-experiencia {
    width: 100%;
    float: left;
    margin-bottom: 1rem;
}

/* Checkbox personalizado */
.label-fix {
    display: flex;
    align-items: flex-start;
}

.label-fix input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-top: 0.25rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal.fade.in {
    display: block;
}

.modal-dialog {
    position: relative;
    width: auto;
    margin: 10px auto;
    max-width: 600px;
}

.modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.modal-body {
    position: relative;
    padding: 15px;
}

.modal-footer {
    padding: 15px;
    text-align: right;
    border-top: 1px solid #e9ecef;
}
