/* ==========================================================================
   TRABALHE CONOSCO — página de vagas (complementa css/style.css)
   ========================================================================== */
html {
    overflow-x: hidden;
}

body {
    position: relative;
    width: 100%;
}

main {
    position: relative;
    z-index: 1;
}

[hidden] {
    display: none !important;
}

.careers-header {
    text-align: center;
    padding: 9rem 0 3rem;
}

.careers-header h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 500;
}

.careers-header p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin: 1.5rem auto 0;
    max-width: 37.5rem;
    color: var(--muted);
}

.jobs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 2rem 0 5rem;
}

@media (min-width: 768px) {
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.job-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: left;
    transition: border-color 0.4s, transform 0.4s, background 0.4s;
}

.job-card:hover,
.job-card:focus-visible {
    border-color: var(--lime);
    transform: translateY(-5px);
    background: rgba(14, 17, 10, 0.85);
    outline: none;
}

.job-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.job-tag {
    background: rgba(193, 105, 61, 0.1);
    color: var(--lime);
    padding: 0.25rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(193, 105, 61, 0.3);
}

.job-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: var(--white);
    font-weight: 500;
}

.job-desc-short {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.btn-view-job {
    margin-top: auto;
    color: var(--lime);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Detalhe */
#job-detail-view {
    padding-top: 8rem;
    padding-bottom: 5rem;
}

.job-detail-content {
    max-width: 50rem;
    margin: 0 auto;
}

.back-btn {
    display: inline-block;
    border: 1px solid var(--border);
    color: var(--white);
    padding: 0.6rem 1.25rem;
    border-radius: 100px;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    transition: 0.3s;
}

.back-btn:hover,
.back-btn:focus-visible {
    border-color: var(--lime);
    color: var(--lime);
    outline: none;
}

.job-detail-title {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    font-weight: 500;
    outline: none;
}

.detail-desc {
    font-size: 1.1rem;
    line-height: 1.7;
}

.job-detail-section {
    margin-top: 2.75rem;
}

.job-detail-section h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 500;
}

.job-detail-section p {
    line-height: 1.7;
}

.job-detail-section ul {
    list-style: none;
    padding: 0;
}

.job-detail-section li {
    color: var(--muted);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.job-detail-section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--lime);
}

.process-list {
    padding-left: 1.25rem;
}

.process-list li {
    padding-left: 0.5rem;
}

.process-list strong {
    color: var(--white);
    font-weight: 600;
}

/* Formulário (herda .form-* da home) */
.application-form-box {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .application-form-box {
        padding: 3rem;
        border-radius: 2rem;
    }
}

.application-form-box h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.form-intro {
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.form-group.grid-2>div {
    min-width: 0;
}

.readonly-input {
    color: var(--lime) !important;
    border-bottom-color: var(--lime) !important;
    cursor: default;
    font-weight: 500;
}

.form-input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: #d9534f;
}

.form-select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238A8E81' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.25rem center;
}

.form-textarea {
    min-height: 8rem;
    resize: vertical;
}