/* ========================================
   VAGA DE EMPREGO - ESTILOS
   ======================================== */

/* Container do Botão Voltar */
.btn-back-container {
    width: 100%;
    max-width: 600px;
    margin: 30px auto 20px;
    display: flex;
    justify-content: flex-start;
}

/* Botão Voltar */
.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #00683D;
    color: #FFFFFF;
    border: 2px solid #8CDAB0;
    border-radius: 100px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    will-change: background-color, transform;
}

.btn-back:hover {
    background-color: #008B4D;
    transform: translateX(-3px);
    box-shadow: 0 6px 20px rgba(0, 104, 61, 0.4);
}

.btn-back:active {
    transform: translateX(-1px);
}

.back-arrow {
    font-size: 1rem;
    font-weight: bold;
}

.back-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Seção do Formulário */
.form-section {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 104, 61, 0.15);
    animation: fadeInUp 0.8s ease-out;
}

/* Descrição do Formulário */
.form-description {
    font-family: 'Oswald', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: #00693D;
    text-align: center;
    margin: 0 0 10px 0;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* Formulário */
.form-candidatura {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Grupo de Formulário */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Label do Formulário */
.form-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #00693D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input de Texto */
.form-input {
    padding: 12px 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    color: #333;
    background-color: #F9F9F9;
    border: 2px solid #8CDAB0;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    background-color: #FFFFFF;
    border-color: #00693D;
    box-shadow: 0 0 0 3px rgba(0, 104, 61, 0.1);
}

.form-input::placeholder {
    color: #999;
}

/* Select */
.form-select {
    padding: 12px 16px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    color: #333;
    background-color: #F9F9F9;
    border: 2px solid #8CDAB0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.form-select:focus {
    background-color: #FFFFFF;
    border-color: #00693D;
    box-shadow: 0 0 0 3px rgba(0, 104, 61, 0.1);
}

.form-select option {
    background-color: #FFFFFF;
    color: #333;
    padding: 8px;
}

/* Informação de Arquivo */
.file-info {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

/* Container de Upload */
.file-upload-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Input de Arquivo (Oculto) */
.file-input {
    display: none;
}

/* Label de Upload */
.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 30px;
    background-color: #F0E3C2;
    border: 2px dashed #8CDAB0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.file-upload-label:hover {
    background-color: #E8D9B0;
    border-color: #00693D;
    transform: translateY(-2px);
}

.file-upload-label:active {
    transform: translateY(0);
}

/* Ícone de Arquivo */
.file-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.file-upload-label:hover .file-icon {
    transform: scale(1.1);
}

/* Texto de Upload */
.file-text {
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #00693D;
    text-align: center;
    line-height: 1.4;
}

/* Container do Nome do Arquivo */
.file-name-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

/* Nome do Arquivo */
.file-name {
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    color: #00693D;
    font-weight: 700;
    display: none;
    flex: 1;
}

.file-name.show {
    display: block;
}

/* Botao Remover Arquivo */
.btn-remove-file {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #D32F2F;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    will-change: background-color, transform;
}

.btn-remove-file:hover {
    background-color: #B71C1C;
    transform: scale(1.05);
}

.btn-remove-file:active {
    transform: scale(0.95);
}

.remove-icon {
    font-size: 0.9rem;
    font-weight: bold;
}

.remove-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* CAPTCHA */
.captcha-group {
    background-color: #F0E3C2;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #8CDAB0;
}

.captcha-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.captcha-question {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #00693D;
    margin: 0;
    padding: 12px;
    background-color: #FFFFFF;
    border-radius: 8px;
    text-align: center;
}

.captcha-input {
    max-width: 150px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Checkbox */
.checkbox-group {
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #00693D;
    flex-shrink: 0;
}

.privacy-link {
    color: #00693D;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    text-decoration: underline;
    color: #008B4D;
}

/* Botão Enviar */
.btn-enviar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 500px;
    margin: 20px auto 0;
    background-color: #00683D;
    color: #FFFFFF;
    border: 2px solid #8CDAB0;
    padding: 16px 30px;
    border-radius: 100px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 104, 61, 0.4);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
    contain: layout style paint;
}

.btn-enviar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-enviar:hover::before {
    left: 100%;
}

.btn-enviar:hover {
    background-color: #008B4D;
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 104, 61, 0.6);
}

.btn-enviar:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 5px 15px rgba(0, 104, 61, 0.5);
}

.btn-enviar .btn-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.btn-enviar:hover .btn-icon {
    transform: scale(1.1);
}

.btn-enviar .btn-text {
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mensagem de Erro */
.error-message {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    color: #D32F2F;
    font-weight: 700;
    display: none;
    margin-top: 4px;
}

.error-message.show {
    display: block;
    animation: shake 0.3s ease;
}

/* Mensagem de Sucesso */
.success-message {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    padding: 40px 30px;
    background-color: rgba(76, 175, 80, 0.1);
    border: 2px solid #4CAF50;
    border-radius: 15px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.success-message h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #4CAF50;
    margin: 0 0 12px 0;
}

.success-message p {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

/* Botão Voltar */
.btn-voltar {
    display: inline-block;
    background-color: #4CAF50;
    color: #FFFFFF;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 100px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 2px solid #4CAF50;
}

.btn-voltar:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

/* Animações */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

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

/* Responsividade */
@media (max-width: 767px) {
    .form-section {
        margin: 30px 15px;
        padding: 20px;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .form-input,
    .form-select {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .file-upload-label {
        padding: 20px;
    }

    .file-icon {
        width: 50px;
        height: 50px;
    }

    .file-text {
        font-size: 0.8rem;
    }

    .btn-enviar {
        padding: 14px 24px;
        font-size: 0.85rem;
    }

    .btn-enviar .btn-icon {
        width: 35px;
        height: 35px;
    }

    .success-message {
        margin: 30px 15px;
        padding: 30px 20px;
    }

    .success-message h3 {
        font-size: 1.1rem;
    }

    .success-message p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .form-section {
        margin: 20px 10px;
        padding: 15px;
    }

    .form-group {
        gap: 6px;
    }

    .form-label {
        font-size: 0.8rem;
    }

    .form-input,
    .form-select {
        font-size: 0.8rem;
        padding: 10px;
    }

    .file-upload-label {
        padding: 15px;
    }

    .file-icon {
        width: 45px;
        height: 45px;
    }

    .file-text {
        font-size: 0.75rem;
    }

    .btn-enviar {
        flex-direction: column;
        padding: 12px 20px;
        font-size: 0.8rem;
    }

    .btn-enviar .btn-icon {
        width: 30px;
        height: 30px;
    }

    .captcha-input {
        max-width: 120px;
        font-size: 1rem;
    }

    .checkbox-label {
        font-size: 0.8rem;
    }
}
