/* === PÁGINAS DE DETALHE (Serviços / Vagas) === */
.single-service,
.single-job {
    padding: 6rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.single-service h1,
.single-job h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #0a1f33;
}

.single-service .content,
.single-job .content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #333;
}

.single-service img,
.single-job img {
    display: block;
    margin: 2rem auto;
    border-radius: 12px;
    max-width: 100%;
}

.single-job .btn-primary {
    display: inline-block;
    margin-top: 2rem;
    background: #1a73e8;
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}

.single-job .btn-primary:hover {
    background: #155db8;
}

/* ============================= */
/* FORMULÁRIO DE CANDIDATURA     */
/* ============================= */

/* Mantém o formulário escondido inicialmente */
#form-candidatar.hidden {
    display: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Quando remover a classe hidden */
#form-candidatar {
    display: flex;
    /* flex para manter o layout do form */
    flex-direction: column;
    gap: 1rem;
    opacity: 1;
    max-height: 2000px;
    /* valor grande suficiente para conter todo o form */
}

#form-candidatar {
    max-width: 700px;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s ease;
}

#form-candidatar h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #0052cc;
}

#form-candidatar label {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #071a2f;
}

#form-candidatar input[type="text"],
#form-candidatar input[type="file"],
#form-candidatar input[type="email"],
#form-candidatar input[type="tel"],
#form-candidatar textarea {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    width: 100%;
}

#form-candidatar input:focus,
#form-candidatar textarea:focus {
    border-color: #0052cc;
    outline: none;
}

#form-candidatar button[type="submit"] {
    background-color: #0052cc;
    color: #fff;
    padding: 0.8rem 1.4rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

#form-candidatar button[type="submit"]:hover {
    background-color: #003e99;
}

#form-candidatar input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

#form-candidatar .hidden {
    display: none;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert.success {
    background: #e6f4ea;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert.error {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Responsivo */
@media (max-width: 600px) {
    #form-candidatar {
        padding: 1.5rem;
    }
}