/**
 * Careers page (Template Name: Careers).
 *
 * Two-column layout: vacancy listing alongside a sticky application form panel
 * that reuses the shared .enq-* field styling from home.css.
 */

.careers-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 48px;
    align-items: start;
}

.careers-vacancies h3 {
    margin: 28px 0 8px;
}

.careers-vacancies h3:first-child {
    margin-top: 0;
}

.careers-vacancies p {
    margin: 0 0 12px;
    line-height: 1.65;
}

.careers-vacancies img {
    max-width: 100%;
    height: auto;
    margin: 8px 0 20px;
}

.careers-vacancies a {
    color: var(--gold-text);
}

/* Hide the redundant in-content "Apply" heading (form has its own). */
.careers-vacancies h3:last-of-type:empty {
    display: none;
}

/* Application form panel — reuses .enq-form / .enq-field from home.css. */
.careers-apply.enq-form {
    position: sticky;
    top: 100px;
    background: var(--cream);
    padding: 34px 32px;
    border: 1px solid var(--line);
}

.careers-apply__title {
    margin: 0 0 8px;
}

.careers-apply__intro {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.6;
}

.careers-fields select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: var(--body);
    font-size: .95rem;
    color: var(--ink);
}

.careers-fields select:focus {
    outline: none;
    border-color: var(--gold-deep);
}

.careers-fields input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px dashed var(--line);
    background: #fff;
    font-family: var(--body);
    font-size: .9rem;
    color: var(--ink);
}

.careers-fields input[type="file"]:focus {
    outline: none;
    border-color: var(--gold-deep);
}

.enq-hint {
    display: block;
    margin-top: 6px;
    font-size: .78rem;
    color: var(--muted);
}

@media (max-width: 900px) {
    .careers-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .careers-apply.enq-form {
        position: static;
    }
}
