.job-details-page .page-hero {
    padding-bottom: 56px;
}

.job-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    color: #6b7280;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.job-back-link:hover,
.job-back-secondary:hover {
    color: #e31c3d;
}

.job-hero-tags {
    justify-content: center;
    margin-top: 22px;
}

.job-anchor-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.job-anchor-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #111827;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.job-anchor-pill:hover {
    transform: translateY(-1px);
    border-color: #e31c3d;
    box-shadow: 0 10px 24px -18px rgba(227, 28, 61, 0.45);
}

.job-anchor-pill.is-active {
    background: linear-gradient(135deg, #e31c3d 0%, #be1631 100%);
    border-color: #e31c3d;
    color: #ffffff;
}

.job-overview-stack {
    display: grid;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.job-page-talent-mode .page-hero {
    background:
        radial-gradient(circle at top center, rgba(227, 28, 61, 0.08), transparent 48%),
        linear-gradient(180deg, #fff8f9 0%, #ffffff 68%);
}

.job-detail-card,
.job-apply-card,
.job-form-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 1.5rem;
    padding: 32px;
    box-shadow: 0 12px 34px -24px rgba(17, 24, 39, 0.22);
}

.job-body-copy {
    margin: 0;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.95;
}

.job-general-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.job-general-card {
    padding: 20px;
    border-radius: 1.25rem;
    border: 1px solid #fde2e7;
    background: linear-gradient(180deg, #fff5f6 0%, #ffffff 100%);
}

.job-general-card-title {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
}

.job-general-card-copy {
    margin: 0;
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.75;
}

.job-requirements-list {
    margin: 0;
    padding-left: 22px;
    color: #4b5563;
    display: grid;
    gap: 12px;
    line-height: 1.85;
}

.job-requirements-list li {
    padding-left: 4px;
}

.job-view-panel {
    display: none;
}

.job-view-panel.is-active {
    display: block;
}

.job-overview-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 28px;
}

.job-apply-card {
    position: sticky;
    top: 108px;
}

.job-apply-card-inline {
    position: static;
    max-width: 960px;
    margin: 0 auto 28px;
}

.job-summary-list {
    display: grid;
    gap: 14px;
    margin: 24px 0 0;
}

.job-summary-list div {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 1rem;
    background: #fafafa;
    border: 1px solid #f3f4f6;
}

.job-summary-list dt {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
}

.job-summary-list dd {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #111827;
}

.job-apply-actions {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.job-back-secondary {
    display: inline-flex;
    justify-content: center;
    color: #6b7280;
    font-weight: 600;
    text-decoration: none;
}

.job-application-section {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

.job-application-intro {
    max-width: 960px;
    margin: 0 auto 28px;
}

.job-general-intro {
    max-width: 960px;
    margin: 0 auto 24px;
    padding: 28px 30px;
    border-radius: 1.5rem;
    border: 1px solid #fde2e7;
    background: linear-gradient(135deg, #fff6f7 0%, #ffffff 100%);
    box-shadow: 0 12px 34px -26px rgba(227, 28, 61, 0.32);
}

.job-general-intro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff0f2;
    color: #e31c3d;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.job-general-intro-title {
    margin: 16px 0 10px;
    color: #111827;
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    font-weight: 900;
    line-height: 1.1;
}

.job-general-intro-copy {
    max-width: 760px;
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.85;
}

.job-application-form {
    display: grid;
    gap: 22px;
    max-width: 960px;
    margin: 0 auto;
}

.job-form-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 24px;
}

.job-form-step {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff0f2;
    color: #e31c3d;
    font-size: 0.88rem;
    font-weight: 900;
}

.job-form-step svg {
    width: 20px;
    height: 20px;
}

.job-form-title {
    margin: 0 0 6px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #111827;
}

.job-form-copy {
    margin: 0;
    color: #6b7280;
    line-height: 1.7;
}

.job-repeat-group {
    margin-bottom: 24px;
}

.job-repeat-group:last-of-type {
    margin-bottom: 20px;
}

.job-repeat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.job-subtitle {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.job-repeat-list {
    display: grid;
    gap: 14px;
}

.job-repeat-card {
    border: 1px solid #f3f4f6;
    border-radius: 1.25rem;
    padding: 22px;
    background: #fafafa;
}

.job-repeat-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.job-repeat-card-title {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #111827;
}

.job-add-btn,
.job-remove-btn {
    border: 0;
    background: transparent;
    color: #e31c3d;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
}

.job-screening-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.job-upload-box {
    position: relative;
    border: 2px dashed #e5e7eb;
    border-radius: 1rem;
    padding: 26px;
    background: #fafafa;
}

.job-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.job-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: #6b7280;
}

.job-upload-icon {
    width: 34px;
    height: 34px;
    color: #e31c3d;
}

.job-upload-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.job-upload-copy {
    font-size: 0.84rem;
}

.job-upload-file {
    display: none;
    margin-top: 14px;
    color: #e31c3d;
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

.job-form-error {
    color: #e31c3d;
    font-size: 0.875rem;
    margin-top: 6px;
    display: none;
    font-weight: 600;
}

.job-input-note {
    margin-top: 8px;
    margin-bottom: 0;
    color: #6b7280;
    font-size: 0.84rem;
    line-height: 1.6;
}

.job-honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.job-security-wrap {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.job-security-label {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 0.94rem;
    font-weight: 700;
}

.job-security-note {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.65;
}

.job-turnstile {
    min-height: 66px;
}

.job-security-status {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 0.84rem;
    line-height: 1.6;
}

.job-security-status.is-error {
    color: #e31c3d;
    font-weight: 600;
}

.job-submit-btn {
    width: 100%;
}

html[dir="rtl"] .job-details-page .job-detail-card,
html[dir="rtl"] .job-details-page .job-apply-card,
html[dir="rtl"] .job-details-page .job-form-card,
html[dir="rtl"] .job-details-page .job-body-copy,
html[dir="rtl"] .job-details-page .job-requirements-list,
html[dir="rtl"] .job-details-page .job-form-copy,
html[dir="rtl"] .job-details-page .job-general-intro-copy,
html[dir="rtl"] .job-details-page .job-general-card-copy,
html[dir="rtl"] .job-details-page .job-summary-list dd,
html[dir="rtl"] .job-details-page .job-summary-list dt {
    text-align: right !important;
}

html[dir="rtl"] .job-details-page .job-requirements-list {
    padding-right: 22px;
    padding-left: 0;
}

html[dir="rtl"] .job-details-page .job-requirements-list li {
    padding-right: 4px;
    padding-left: 0;
}

html[dir="rtl"] .job-details-page .job-repeat-card,
html[dir="rtl"] .job-details-page .job-upload-label {
    text-align: right !important;
}

html[dir="rtl"] .job-details-page .job-hero-tags,
html[dir="rtl"] .job-details-page .job-anchor-nav {
    justify-content: center !important;
}

html[dir="rtl"] .job-details-page .job-hero-tags .job-tag,
html[dir="rtl"] .job-details-page .job-anchor-nav .job-anchor-pill {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

html[dir="rtl"] .job-details-page .job-repeat-card-head,
html[dir="rtl"] .job-details-page .job-repeat-header,
html[dir="rtl"] .job-details-page .job-form-head {
    direction: rtl;
}

html[dir="rtl"] .job-details-page .form-row {
    direction: rtl;
}

html[dir="rtl"] .job-details-page .form-group label,
html[dir="rtl"] .job-details-page .form-group input,
html[dir="rtl"] .job-details-page .form-group select,
html[dir="rtl"] .job-details-page .form-group textarea,
html[dir="rtl"] .job-details-page .job-upload-file {
    text-align: right !important;
}

html[dir="rtl"] .job-details-page #apply-phone {
    direction: ltr !important;
    text-align: right !important;
    unicode-bidi: plaintext;
}

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

    .job-apply-card {
        position: static;
    }

    .job-general-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .job-detail-card,
    .job-apply-card,
    .job-form-card {
        padding: 24px;
        border-radius: 1.25rem;
    }

    .job-back-link {
        margin-bottom: 18px;
    }

    .job-form-head {
        gap: 14px;
    }

    .job-form-step {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .job-anchor-pill {
        width: 100%;
    }

    .job-general-intro {
        padding: 24px;
        border-radius: 1.25rem;
    }
}
