/**
 * Careers Page — Beacon Pain Clinic
 * Matches contact/about design tokens from base.html
 */

.careers-hero {
    background: linear-gradient(135deg, rgba(91, 163, 208, 0.12), rgba(91, 163, 208, 0.02));
    padding: 56px 0 44px;
}

.careers-hero__container,
.careers-content__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.careers-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(91, 163, 208, 0.18);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.careers-hero__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 16px;
}

.careers-hero__text {
    max-width: 640px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.careers-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.careers-hero__meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.careers-hero__meta i {
    color: var(--primary-color);
}

.careers-hero--listing .careers-hero__title {
    margin-bottom: 12px;
}

.careers-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.careers-back:hover {
    text-decoration: underline;
}

.careers-listing {
    padding: 48px 0 72px;
    background: var(--bg-white);
}

.careers-listing__header {
    max-width: 720px;
    margin-bottom: 32px;
}

.careers-listing__title {
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
}

.careers-listing__intro {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.careers-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.careers-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.careers-card:hover {
    transform: translateY(-3px);
    border-color: rgba(91, 163, 208, 0.45);
    box-shadow: 0 10px 28px rgba(91, 163, 208, 0.12);
}

.careers-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.careers-card__title {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.35;
}

.careers-card__badge {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.12);
    color: #1e8449;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.careers-card__summary {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

.careers-card__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.careers-card__meta li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.careers-card__meta i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.careers-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-top: auto;
}

.careers-empty {
    text-align: center;
    padding: 48px 24px;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    background: var(--bg-light);
}

.careers-empty i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.careers-empty h2 {
    margin: 0 0 10px;
    color: var(--text-dark);
}

.careers-empty p {
    margin: 0 auto;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.6;
}

.careers-empty a {
    color: var(--primary-dark);
}

.careers-content {
    padding: 48px 0 72px;
    background: var(--bg-white);
}

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

.careers-details h2,
.careers-details h3 {
    color: var(--text-dark);
    margin: 0 0 12px;
}

.careers-details h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.careers-details h3 {
    font-size: 1.1rem;
    margin-top: 28px;
}

.careers-details p,
.careers-details__prose p {
    color: var(--text-muted);
    line-height: 1.7;
}

.careers-details__prose p + p {
    margin-top: 14px;
}

.careers-details li {
    color: var(--text-muted);
    line-height: 1.7;
}

.careers-details ul {
    margin: 0 0 8px;
    padding-left: 1.25rem;
}

.careers-details li + li {
    margin-top: 6px;
}

.careers-form-card,
.careers-success {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: calc(var(--banner-height) + var(--navbar-height) + 24px);
}

.careers-form-card__title,
.careers-success__title {
    font-size: 1.35rem;
    color: var(--text-dark);
    margin: 0 0 8px;
}

.careers-form-card__subtitle {
    color: var(--text-muted);
    margin: 0 0 24px;
    font-size: 0.95rem;
}

.careers-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.careers-field label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.careers-field input[type="text"],
.careers-field input[type="email"],
.careers-field input[type="tel"],
.careers-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font: inherit;
    color: var(--text-dark);
    background: var(--bg-light);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.careers-field input:focus,
.careers-field textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 163, 208, 0.15);
    background: var(--bg-white);
}

.careers-field--error input,
.careers-field--error textarea,
.careers-field--error .careers-drop-zone {
    border-color: #e74c3c;
}

.careers-field__error {
    display: block;
    color: #c0392b;
    font-size: 0.85rem;
    margin-top: 6px;
}

.careers-required {
    color: #c0392b;
}

.careers-drop-zone {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 28px 20px;
    text-align: center;
    background: var(--bg-light);
    transition: border-color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.careers-drop-zone:hover,
.careers-drop-zone.drag-over {
    border-color: var(--primary-color);
    background: rgba(91, 163, 208, 0.06);
}

.careers-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.careers-drop-zone__content i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.careers-drop-zone__content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.careers-drop-zone__hint {
    margin-top: 6px !important;
    font-size: 0.85rem !important;
}

.careers-selected-file {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.careers-selected-file i {
    color: var(--primary-color);
}

.careers-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    cursor: pointer;
}

.careers-checkbox input {
    margin-top: 3px;
    flex-shrink: 0;
}

.careers-checkbox a {
    color: var(--primary-dark);
}

.careers-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.careers-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(91, 163, 208, 0.35);
}

.careers-alert {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.92rem;
}

.careers-alert--error {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.careers-success {
    text-align: center;
}

.careers-success__icon {
    font-size: 2.5rem;
    color: #27ae60;
    margin-bottom: 12px;
}

.careers-success p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.careers-honeypot {
    position: absolute;
    left: -10000px;
    opacity: 0;
    pointer-events: none;
}

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

    .careers-form-card,
    .careers-success {
        position: static;
    }
}

@media (max-width: 600px) {
    .careers-hero {
        padding: 40px 0 32px;
    }

    .careers-content {
        padding: 32px 0 48px;
    }

    .careers-form-card,
    .careers-success {
        padding: 22px 18px;
    }
}
