/* Modal Infopackage Styles - Tab-based Redesign */
/* Responsive, Mobile-friendly, with Video and Gallery support */

/* === Overlay === */
.tjobs-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tjobs-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* === Modal Panel === */
.tjobs-modal-panel {
    width: 100%;
    max-width: 600px;
    background: #ffffff;
    box-shadow: -2px 0 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tjobs-modal-overlay.is-open .tjobs-modal-panel {
    transform: translateX(0);
}

.tjobs-modal__content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    padding: 0;
}

/* === Modal Header (sticky top: close + lang + title + excerpt) === */
.tjobs-modal__header {
    flex-shrink: 0;
    padding: 24px 24px 0;
}

/* === Scrollable content area === */
.tjobs-modal__scroll-area {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 24px 24px;
}

/* === Top Bar === */
.tjobs-modal__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tjobs-modal__close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.tjobs-modal__close:hover {
    background: #e5e7eb;
    transform: scale(1.1);
    color: #111827;
}

/* === Language Switcher === */
.tjobs-modal__lang-switcher {
    display: flex;
    gap: 6px;
}

.tjobs-lang-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
}

.tjobs-lang-btn.is-active {
    background: #000000;
    color: #FEE000;
    border-color: #000000;
}

.tjobs-lang-btn:hover:not(.is-active) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* === Title & Excerpt === */
.tjobs-modal__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 12px 0;
    color: #111827;
}

.tjobs-modal__excerpt {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

/* === Tabs === */
.tjobs-modal__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

.tjobs-tab-btn {
    padding: 12px 20px;
    border: none;
    background: #ffffff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tjobs-tab-btn:hover {
    color: #000000;
    background: rgba(0, 0, 0, 0.04);
}

.tjobs-tab-btn.is-active,
.tjobs-modal__tabs .tjobs-tab-btn.is-active {
    background: #000000;
    color: #FEE000;
    border-bottom-color: #000000;
    border-radius: 6px 6px 0 0;
}

/* === Tab Content === */
.tjobs-tab-content {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Highlights === */
.tjobs-modal__highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tjobs-highlight-pill {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    color: #FEE000;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s;
}

.tjobs-highlight-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* === Intro Text === */
.tjobs-modal__intro {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 24px;
    white-space: pre-wrap;
}

/* === Section Headings === */
.tjobs-modal__section-heading {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: #111827;
}

/* === Contact === */
.tjobs-modal__contact {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #e5e7eb;
}

.tjobs-modal__contact p {
    margin: 10px 0;
    color: #374151;
    font-size: 15px;
}

.tjobs-modal__contact a {
    color: #000000;
    text-decoration: none;
    transition: color 0.2s;
}

.tjobs-modal__contact a:hover {
    color: #333333;
    text-decoration: underline;
}

/* === Video Wrapper (16:9 responsive) === */
.tjobs-modal__video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tjobs-modal__video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* === Image Gallery === */
.tjobs-modal__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.tjobs-gallery-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tjobs-gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.tjobs-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === Lightbox === */
.tjobs-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tjobs-lightbox-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.tjobs-lightbox__content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.tjobs-lightbox__image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.tjobs-lightbox__counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 20px;
}

.tjobs-lightbox__close,
.tjobs-lightbox__prev,
.tjobs-lightbox__next {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #111827;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-weight: 300;
}

.tjobs-lightbox__close {
    top: 20px;
    right: 20px;
}

.tjobs-lightbox__prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.tjobs-lightbox__next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.tjobs-lightbox__close:hover,
.tjobs-lightbox__prev:hover,
.tjobs-lightbox__next:hover {
    background: #fff;
    transform: scale(1.1);
}

.tjobs-lightbox__prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.tjobs-lightbox__next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* === Questions === */
.tjobs-modal__questions {
    margin-bottom: 24px;
}

.tjobs-question {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.tjobs-question:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tjobs-question__label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
    font-size: 15px;
    line-height: 1.4;
}

.tjobs-required {
    color: #ef4444;
    margin-left: 4px;
}

.tjobs-question__textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    transition: all 0.2s;
}

.tjobs-question__textarea:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

.tjobs-question__input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s;
}

.tjobs-question__input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* === Yes/No Pills === */
.tjobs-question__pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tjobs-pill-button {
    flex: none;
    min-width: 100px;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #FEE000;
    color: #000000;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    min-height: 42px;
}

.tjobs-pill-button:hover {
    background: #000000;
    color: #FEE000;
    border-color: #000000;
}

.tjobs-pill-button.is-selected {
    border-color: #000000;
    background: #000000;
    color: #FEE000;
}

/* === Scale === */
.tjobs-question__scale {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tjobs-scale-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
}

.tjobs-scale-option input[type="radio"] {
    display: none;
}

.tjobs-scale-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #FEE000;
    color: #000000;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    min-height: 42px;
    min-width: 42px;
    font-size: 16px;
}

.tjobs-scale-option:hover span {
    background: #000000;
    color: #FEE000;
    border-color: #000000;
}

.tjobs-scale-option input[type="radio"]:checked + span {
    border-color: #000000;
    background: #000000;
    color: #FEE000;
}

/* === CTA Button === */
.tjobs-modal__cta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    padding-bottom: 8px;
}

.tjobs-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    background: #FEE000 !important;
    color: #000000 !important;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(254, 224, 0, 0.4);
    min-height: 56px;
}

.tjobs-cta-button:hover {
    background: #000000 !important;
    color: #FEE000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    text-decoration: none !important;
}

.tjobs-cta-button:active {
    transform: translateY(0);
}

/* === Loading Spinner === */
.tjobs-modal__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
}

.tjobs-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #000000;
    border-radius: 50%;
    animation: tjobs-spin 0.8s linear infinite;
}

@keyframes tjobs-spin {
    to {
        transform: rotate(360deg);
    }
}

.tjobs-modal__loading p {
    margin-top: 20px;
    color: #6b7280;
    font-size: 15px;
}

/* === Error === */
.tjobs-modal__error {
    padding: 80px 20px;
    text-align: center;
}

.tjobs-modal__error p {
    color: #ef4444;
    margin-bottom: 20px;
    font-size: 16px;
}

.tjobs-modal__retry {
    padding: 12px 24px;
    background: #000000;
    color: #FEE000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.tjobs-modal__retry:hover {
    background: #333333;
}

/* === Info Badge for Job List === */
.tjobs-info-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 3px 10px;
    background: #FEE000;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    vertical-align: middle;
}

/* === Mobile Responsive === */
@media (max-width: 600px) {
    .tjobs-modal-panel {
        max-width: 100%;
        height: 100dvh; /* Dynamic viewport height */
    }

    .tjobs-modal__header {
        padding: 16px 16px 0;
    }

    .tjobs-modal__scroll-area {
        padding: 0 16px 16px;
    }

    .tjobs-modal__title {
        font-size: 24px;
    }

    .tjobs-modal__tabs {
        gap: 4px;
        padding-bottom: 0;
    }

    .tjobs-tab-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .tjobs-modal__highlights {
        gap: 8px;
    }

    .tjobs-highlight-pill {
        padding: 8px 14px;
        font-size: 13px;
    }

    .tjobs-modal__gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }

    .tjobs-question__scale {
        flex-wrap: wrap;
    }

    .tjobs-scale-option {
        flex: 0 0 calc(20% - 8px);
        min-width: 48px;
    }

    .tjobs-question__pills {
        flex-direction: column;
    }

    .tjobs-cta-button {
        font-size: 16px;
        padding: 14px 20px;
    }

    .tjobs-lightbox__prev,
    .tjobs-lightbox__next {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .tjobs-lightbox__prev {
        left: 10px;
    }

    .tjobs-lightbox__next {
        right: 10px;
    }

    .tjobs-lightbox__close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }
}

/* === Tablet === */
@media (min-width: 601px) and (max-width: 900px) {
    .tjobs-modal-panel {
        max-width: 500px;
    }
}

/* === Desktop: side-by-side question label + buttons === */
@media (min-width: 768px) {
    .tjobs-question {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
    }

    .tjobs-question__label {
        margin-bottom: 0;
        flex: 1;
    }

    .tjobs-question__pills,
    .tjobs-question__scale {
        flex-shrink: 0;
    }
}

/* === Question Feedback Banner (individual) === */
.tjobs-question__feedback {
    margin-top: 12px;
}

.tjobs-feedback-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    animation: tjobsFeedbackFadeIn 0.3s ease-out;
}

.tjobs-feedback-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tjobs-feedback-text {
    flex: 1;
}

.tjobs-feedback-text strong {
    display: block;
    color: #92400e;
    font-size: 14px;
    margin-bottom: 4px;
}

.tjobs-feedback-text p {
    color: #78350f;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

@keyframes tjobsFeedbackFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Overall Result Banner (3/5 logic) === */
.tjobs-result-banner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    border-radius: 14px;
    margin-top: 28px;
    margin-bottom: 8px;
    animation: tjobsResultFadeIn 0.4s ease-out;
}

.tjobs-result-banner--good {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #10b981;
}

.tjobs-result-banner--guidance {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
}

.tjobs-result-banner__icon {
    font-size: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tjobs-result-banner__body {
    flex: 1;
}

.tjobs-result-banner--good .tjobs-result-banner__heading {
    color: #065f46;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.tjobs-result-banner--good .tjobs-result-banner__text {
    color: #047857;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.tjobs-result-banner--guidance .tjobs-result-banner__heading {
    color: #92400e;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.tjobs-result-banner--guidance .tjobs-result-banner__text {
    color: #78350f;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

@keyframes tjobsResultFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Specific per-question feedback, nested inside the result banner body === */
.tjobs-result-banner__feedback-list {
    margin: 10px 0 0 0;
    padding: 0 0 0 1.2em;
    list-style: disc;
}

.tjobs-result-banner--guidance .tjobs-result-banner__feedback-list li {
    color: #78350f;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 6px;
}

.tjobs-result-banner__feedback-list li:last-child {
    margin-bottom: 0;
}

/* === Info Sections (Lisätiedot tab) === */
.tjobs-modal__info-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.tjobs-modal__info-section:last-child {
    margin-bottom: 0;
}

.tjobs-modal__info-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
}

.tjobs-modal__info-section-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.tjobs-modal__info-section-content {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    white-space: pre-wrap;
}

/* === Job Description (laura:description from RSS) === */
.tjobs-modal__job-description {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tjobs-modal__job-description p {
    margin: 0 0 12px 0;
}

.tjobs-modal__job-description p:last-child {
    margin-bottom: 0;
}

.tjobs-modal__job-description ul,
.tjobs-modal__job-description ol {
    margin: 8px 0 12px 0;
    padding-left: 1.5em;
}

.tjobs-modal__job-description li {
    margin-bottom: 4px;
    line-height: 1.6;
}

.tjobs-modal__job-description strong {
    color: #111827;
}

/* === Wizard / Progress bar === */

/* Compact progress area (sticky top, below header) */
.tjobs-wizard-progress {
    flex-shrink: 0;
    padding: 10px 24px 14px;
    border-bottom: 1px solid #f3f4f6;
}

/* Progress bar ARIA container */
.tjobs-progress {
    /* contains stepper + label row */
}

/* ── Stepper (dots + labels + connecting line) ── */
.tjobs-stepper {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    position: relative;
}

/* Gray track behind dots */
.tjobs-stepper::before {
    content: '';
    position: absolute;
    top: 7px; /* half of 14px dot */
    left: 7px;
    right: 7px;
    height: 3px;
    background: #e5e5e5;
    border-radius: 2px;
    z-index: 0;
}

/* Yellow fill (animated via --tjobs-progress CSS variable) */
.tjobs-stepper::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 7px;
    height: 3px;
    background: #FEE000;
    border-radius: 2px;
    width: var(--tjobs-progress, 0%);
    transition: width .35s ease;
    z-index: 1;
}

/* Each step: dot + label stacked vertically */
.tjobs-stepper-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Dot button – forced circle, no browser defaults */
.tjobs-step-dot {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    padding: 0;
    background: #e5e5e5;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d4d4d4;
    cursor: pointer;
    display: block;
    flex-shrink: 0;
    transition: background .2s, width .2s, height .2s, box-shadow .2s;
}

.tjobs-step-dot:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(254, 224, 0, 0.7);
}

.tjobs-step-dot:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Done state */
.tjobs-stepper-item.is-done .tjobs-step-dot {
    background: #000000;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #000000;
}

/* Active state – slightly larger with glow */
.tjobs-stepper-item.is-active .tjobs-step-dot {
    background: #FEE000;
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(255, 213, 0, 0.5);
}

/* Step label (shown for ALL steps) */
.tjobs-step-label {
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.2;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
    display: block;
}

.tjobs-stepper-item.is-done .tjobs-step-label {
    color: #374151;
}

.tjobs-stepper-item.is-active .tjobs-step-label {
    color: #111827;
    font-weight: 600;
}

/* Small step counter (right-aligned) */
.tjobs-progress-label {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.tjobs-wizard-step-counter {
    font-size: 11px;
    color: #9ca3af;
}

/* === Wizard sticky footer (prev / next / apply) === */
.tjobs-wizard-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #fff;
    border-top: 1px solid #eee;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.tjobs-wizard-nav__prev,
.tjobs-wizard-nav__next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background .15s, color .15s, border-color .15s, transform .1s;
}

.tjobs-wizard-nav__prev:active,
.tjobs-wizard-nav__next:active {
    transform: scale(0.97);
}

/* Edellinen */
.tjobs-wizard-nav__prev {
    background: #f1f5f9;
    color: #374151;
    border-color: #e2e8f0;
}

.tjobs-wizard-nav__prev:hover:not(:disabled) {
    background: #e2e8f0;
}

.tjobs-wizard-nav__prev:disabled {
    opacity: 0.4;
    cursor: default;
}

/* Seuraava */
.tjobs-wizard-nav__next {
    background: #000;
    color: #FEE000;
    border-color: #000;
    margin-left: auto;
}

.tjobs-wizard-nav__next:hover {
    background: #1a1a1a;
}

/* Apply-tila: keltainen */
.tjobs-wizard-nav__next.is-apply {
    background: #FEE000 !important;
    color: #000 !important;
    border-color: #FEE000 !important;
    box-shadow: 0 4px 12px rgba(254, 224, 0, 0.45);
    min-width: 200px;
    justify-content: center;
}

.tjobs-wizard-nav__next.is-apply:hover {
    background: #000 !important;
    color: #FEE000 !important;
    border-color: #000 !important;
}

/* === Mobile: compact stepper === */
@media (max-width: 480px) {
    .tjobs-wizard-progress {
        padding: 8px 16px 10px;
    }
    .tjobs-step-dot {
        width: 10px;
        height: 10px;
    }
    .tjobs-stepper-item.is-active .tjobs-step-dot {
        width: 14px;
        height: 14px;
    }
    .tjobs-stepper::before,
    .tjobs-stepper::after {
        top: 5px; /* half of 10px dot */
    }
    .tjobs-step-label {
        font-size: 9px;
    }
    .tjobs-wizard-footer {
        padding: 10px 16px;
    }
    .tjobs-wizard-nav__prev,
    .tjobs-wizard-nav__next {
        padding: 10px 14px;
        font-size: 13px;
    }
}