.tm-staff-wizard {
    --staff-navy: #0b365f;
    --staff-blue: #145f8f;
    --staff-orange: #ea580c;
    --staff-border: #dbe5ed;
    --staff-muted: #61758a;
    min-height: 100vh;
    padding: 1.5rem 0 3rem;
    background: #f2f7fb;
    color: #172033;
}

.tm-staff-wizard [hidden] {
    display: none !important;
}

.tm-staff-wizard-container {
    width: min(100% - 2rem, 1240px);
}

.tm-staff-wizard-hero {
    padding: 1.5rem 1.6rem 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(120deg, #0a3158 0%, #0f527f 60%, #167da2 100%);
    box-shadow: 0 18px 38px rgba(10, 49, 88, 0.18);
    color: #fff;
}

.tm-staff-wizard-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tm-staff-wizard-icon {
    display: grid;
    flex: 0 0 3.2rem;
    width: 3.2rem;
    height: 3.2rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.12);
}

.tm-staff-wizard-icon svg {
    width: 1.8rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tm-staff-wizard-kicker {
    display: block;
    margin-bottom: 0.15rem;
    color: #bde9f5;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tm-staff-wizard-heading h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.1;
}

.tm-staff-wizard-heading p {
    margin: 0.35rem 0 0;
    color: #dceef7;
}

.tm-staff-wizard-nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: 1.45rem;
}

.tm-staff-wizard-nav button {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 0.4rem;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d7eaf3;
    cursor: pointer;
}

.tm-staff-wizard-nav button::before {
    content: "";
    position: absolute;
    top: 1rem;
    right: 50%;
    left: -50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.32);
}

.tm-staff-wizard-nav button:first-child::before {
    display: none;
}

.tm-staff-wizard-nav button span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    background: #0b365f;
    font-size: 0.78rem;
    font-weight: 900;
}

.tm-staff-wizard-nav button strong {
    overflow: hidden;
    max-width: 100%;
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tm-staff-wizard-nav button.is-active,
.tm-staff-wizard-nav button.is-complete {
    color: #fff;
}

.tm-staff-wizard-nav button.is-active span {
    border-color: #fb923c;
    background: var(--staff-orange);
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.18);
}

.tm-staff-wizard-nav button.is-complete span {
    border-color: #86efac;
    background: #16a34a;
}

.tm-staff-wizard-nav button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.tm-staff-wizard-nav button:focus-visible,
.tm-staff-wizard-actions .button:focus-visible {
    outline: 3px solid #fdba74;
    outline-offset: 3px;
}

.tm-staff-wizard-progress {
    height: 4px;
    margin: 1rem 0;
    overflow: hidden;
    border-radius: 999px;
    background: #dce6ee;
}

.tm-staff-wizard-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--staff-orange), #fb923c);
    transition: width 0.25s ease;
}

.tm-staff-wizard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 275px;
    gap: 1.1rem;
    align-items: start;
}

.tm-staff-wizard-form {
    min-width: 0;
}

.tm-staff-wizard .tm-form-card {
    padding: 1.4rem;
    border: 1px solid var(--staff-border);
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 10px 25px rgba(13, 54, 86, 0.06);
}

.tm-staff-wizard .tm-form-card-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e8eef3;
}

.tm-staff-wizard .tm-step {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 0.65rem;
    background: #e9f3f8;
    color: var(--staff-blue);
    font-weight: 900;
}

.tm-staff-step-kicker {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--staff-orange);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.tm-staff-wizard .tm-form-card-head h2 {
    margin: 0;
    color: var(--staff-navy);
    font-size: 1.22rem;
}

.tm-staff-wizard .tm-form-card-head p {
    margin: 0.25rem 0 0;
    color: var(--staff-muted);
    font-size: 0.86rem;
}

.tm-staff-wizard .tm-form-grid {
    gap: 1rem;
}

.tm-staff-wizard .tm-form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tm-staff-wizard .tm-staff-photo-field {
    display: grid;
    gap: 8px;
}

.tm-staff-photo-label {
    color: #09264a;
    font-size: 13px;
    font-weight: 800;
}

.tm-staff-avatar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 122px;
    padding: 16px;
    border: 1px solid #d9e5ed;
    border-radius: 14px;
    background: #f8fbfd;
}

.tm-staff-avatar-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tm-staff-avatar-preview {
    display: grid;
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    place-items: center;
    overflow: hidden;
    border: 1px solid #a8c2d3;
    border-radius: 50%;
    background: #eaf3f8;
    color: #0b4775;
    cursor: pointer;
}

.tm-staff-avatar-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-staff-avatar-preview span {
    font-size: 34px;
    line-height: 1;
}

.tm-staff-photo-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.tm-staff-photo-copy strong {
    color: #09264a;
    font-size: 14px;
}

.tm-staff-photo-copy p,
.tm-staff-photo-copy small,
.tm-staff-photo-file-name {
    overflow-wrap: anywhere;
    color: #63758c;
    font-size: 12px;
}

.tm-staff-photo-copy p {
    margin: 0;
}

.tm-staff-avatar-action {
    width: fit-content;
    margin-top: 4px;
    padding: 8px 12px;
    border: 1px solid #ea580c;
    border-radius: 7px;
    background: #ea580c;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.tm-staff-avatar-action:hover {
    border-color: #c2410c;
    background: #c2410c;
}

.tm-staff-avatar-input:focus-visible + .tm-staff-avatar-preview,
.tm-staff-avatar-action:focus-visible {
    outline: 3px solid rgba(234, 88, 12, 0.28);
    outline-offset: 3px;
}

.tm-staff-wizard .field label,
.tm-staff-wizard .tm-radio-stack > label:first-child {
    color: #253b50;
    font-size: 0.82rem;
    font-weight: 800;
}

.tm-staff-wizard input,
.tm-staff-wizard select,
.tm-staff-wizard textarea {
    border-color: #cddae4;
    border-radius: 0.5rem;
}

.tm-staff-wizard input:focus,
.tm-staff-wizard select:focus,
.tm-staff-wizard textarea:focus {
    border-color: #2b7ca7;
    box-shadow: 0 0 0 3px rgba(43, 124, 167, 0.13);
}

.tm-staff-wizard .is-invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.09) !important;
}

.tm-staff-field-error {
    display: block;
    margin-top: 0.35rem;
    color: #b91c1c;
    font-size: 0.76rem;
    font-weight: 700;
}

.tm-staff-wizard-message {
    padding: 0.8rem 0.95rem;
    border: 1px solid #fecaca;
    border-radius: 0.65rem;
    background: #fff1f2;
    color: #991b1b;
    font-size: 0.86rem;
    font-weight: 750;
}

.tm-staff-location-group {
    padding: 1rem;
    border: 1px solid #e1e9ef;
    border-radius: 0.65rem;
    background: #f8fbfd;
}

.tm-staff-location-group h3 {
    margin: 0 0 0.85rem;
    color: #28445d;
    font-size: 0.9rem;
}

/* Preferencias estructuradas: mismas opciones y lógica, con la respiración
   visual del patrón de selección usado por los otros wizards. */
.tm-staff-wizard .tm-staff-work-preference {
    margin-top: 0.35rem;
}

.tm-staff-wizard .tm-staff-work-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.75rem;
    margin-top: 0.65rem;
}

.tm-staff-wizard .tm-staff-work-choice-grid > label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3rem;
    margin: 0;
    padding: 0.75rem 0.875rem;
    border: 1px solid #dce7ee;
    border-radius: 0.65rem;
    background: #fbfdfe;
    color: #09264a;
    cursor: pointer;
    line-height: 1.3;
}

.tm-staff-wizard .tm-staff-work-choice-grid > label:hover {
    border-color: #9ac2dc;
    background: #f2f9fd;
}

.tm-staff-wizard .tm-staff-work-choice-grid > label:focus-within {
    border-color: #126a9b;
    box-shadow: 0 0 0 3px rgba(18, 106, 155, 0.16);
}

.tm-staff-wizard .tm-staff-work-choice-grid input[type="checkbox"] {
    flex: 0 0 auto;
}

.tm-staff-wizard .tm-check-grid {
    border-radius: 0.65rem;
    background: #f8fbfd;
}

.tm-staff-wizard .tm-reference-block {
    margin-top: 0.75rem;
    border-color: #dae5ed;
    border-radius: 0.7rem;
    background: #f8fbfd;
}

.tm-staff-wizard .tm-cv-card-orange {
    border-color: #fed7aa;
    background: #fffdf9;
}

.tm-staff-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.tm-staff-review-item {
    min-width: 0;
    padding: 0.95rem;
    border: 1px solid #dce6ed;
    border-radius: 0.65rem;
    background: #f9fcfd;
}

.tm-staff-review-item > strong {
    display: block;
    margin-bottom: 0.7rem;
    color: var(--staff-navy);
    font-size: 0.88rem;
}

.tm-staff-review-item dl {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
    gap: 0.45rem 0.75rem;
    margin: 0;
}

.tm-staff-review-item dt,
.tm-staff-review-item dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
}

.tm-staff-review-item dt {
    color: #64748b;
}

.tm-staff-review-item dd {
    color: #1e3448;
    font-weight: 750;
}

.tm-staff-wizard-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem;
    border: 1px solid var(--staff-border);
    border-radius: 0.8rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -6px 20px rgba(11, 54, 95, 0.08);
    backdrop-filter: blur(8px);
}

.tm-staff-wizard-actions > span {
    justify-self: center;
    color: var(--staff-muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.tm-staff-wizard-actions .button-orange {
    background: var(--staff-orange);
    color: #fff;
}

.tm-staff-wizard-actions .button-orange:hover {
    background: #c2410c;
}

.tm-staff-wizard-aside {
    position: sticky;
    top: 1rem;
    padding: 1.15rem;
    border: 1px solid var(--staff-border);
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 10px 25px rgba(13, 54, 86, 0.06);
}

.tm-staff-wizard-aside > strong {
    color: var(--staff-navy);
    font-size: 1rem;
}

.tm-staff-wizard-aside > span {
    display: block;
    margin-top: 0.25rem;
    color: var(--staff-muted);
    font-size: 0.78rem;
}

.tm-staff-wizard-aside > div {
    height: 5px;
    margin: 0.65rem 0 1rem;
    overflow: hidden;
    border-radius: 999px;
    background: #e3ebf0;
}

.tm-staff-wizard-aside > div i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--staff-orange);
    transition: width 0.25s ease;
}

.tm-staff-wizard-aside ol {
    display: grid;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tm-staff-wizard-aside li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
    color: #52687a;
}

.tm-staff-wizard-aside li b {
    color: #90a4b5;
}

.tm-staff-wizard-aside li span {
    font-size: 0.78rem;
    font-weight: 750;
}

.tm-staff-wizard-aside li small {
    font-size: 0.68rem;
}

.tm-staff-wizard-aside li.is-current {
    color: var(--staff-blue);
}

.tm-staff-wizard-aside li.is-complete,
.tm-staff-wizard-aside li.is-complete b {
    color: #15803d;
}

.tm-staff-wizard-aside > p {
    margin: 1rem -1.15rem -1.15rem;
    padding: 1rem 1.15rem;
    border-radius: 0 0 0.85rem 0.85rem;
    background: #edf7fb;
    color: #365b72;
    font-size: 0.76rem;
    line-height: 1.45;
}

.tm-staff-wizard-aside > p strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--staff-navy);
}

@media (max-width: 980px) {
    .tm-staff-wizard-layout {
        grid-template-columns: 1fr;
    }

    .tm-staff-wizard-aside {
        position: static;
        grid-row: 1;
    }

    .tm-staff-wizard-aside ol {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tm-staff-wizard-aside li {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .tm-staff-wizard-aside li small {
        display: none;
    }
}

@media (max-width: 720px) {
    .tm-staff-wizard {
        padding-top: 0.75rem;
    }

    .tm-staff-wizard-container {
        width: min(100% - 1rem, 1240px);
    }

    .tm-staff-wizard-hero {
        padding: 1.1rem 0.9rem;
        border-radius: 0.8rem;
    }

    .tm-staff-wizard-heading {
        align-items: flex-start;
    }

    .tm-staff-wizard-icon {
        flex-basis: 2.55rem;
        width: 2.55rem;
        height: 2.55rem;
    }

    .tm-staff-wizard-heading h1 {
        font-size: 1.35rem;
    }

    .tm-staff-wizard-heading p {
        font-size: 0.78rem;
    }

    .tm-staff-wizard-nav {
        gap: 0.2rem;
        margin-top: 1rem;
    }

    .tm-staff-wizard-nav button strong {
        display: none;
    }

    .tm-staff-wizard-nav button span {
        width: 1.75rem;
        height: 1.75rem;
    }

    .tm-staff-wizard-nav button::before {
        top: 0.86rem;
    }

    .tm-staff-wizard .tm-form-card {
        padding: 1rem;
    }

    .tm-staff-wizard .tm-form-grid,
    .tm-staff-wizard .tm-form-grid.three,
    .tm-staff-review-grid,
    .tm-staff-review-item dl,
    .tm-staff-wizard-aside ol {
        grid-template-columns: 1fr;
    }

    .tm-staff-wizard-actions {
        grid-template-columns: 1fr 1fr;
    }

    .tm-staff-wizard-actions > span {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .tm-staff-wizard-actions .button {
        width: 100%;
    }

    .tm-staff-wizard-actions [data-staff-wizard-next],
    .tm-staff-wizard-actions [data-staff-wizard-submit] {
        grid-column: 2;
    }
}

/* Paridad visual con el sistema aprobado Aqua / Maritime / Portuario. */
.tm-staff-wizard {
    padding: 0;
    background: linear-gradient(180deg, #f4f8fb 0, #eef5f9 100%);
    color: #09264a;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tm-staff-wizard-container {
    width: 100%;
    max-width: 1440px;
    padding: 34px 34px 56px;
}

.tm-staff-wizard-hero {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(600px, 1.35fr);
    gap: 40px;
    align-items: end;
    padding: 28px 32px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(120deg, #062b52 0%, #0b4775 72%, #126a9b 100%);
    box-shadow: 0 14px 34px rgba(6, 43, 82, 0.18);
}

.tm-staff-wizard-heading h1 {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    letter-spacing: -0.035em;
}

.tm-staff-wizard-heading p {
    color: #dcecf5;
    font-size: 1rem;
}

.tm-staff-wizard-nav {
    margin-top: 0;
}

.tm-staff-wizard-nav button::before {
    top: 17px;
}

.tm-staff-wizard-nav button span {
    width: 36px;
    height: 36px;
    margin-bottom: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.tm-staff-wizard-nav button strong {
    font-size: 0.75rem;
}

.tm-staff-wizard-progress {
    margin: 24px 0;
    background: #e1e8ef;
}

.tm-staff-wizard-progress span {
    background: linear-gradient(90deg, #062b52, #126a9b);
}

.tm-staff-wizard-layout {
    grid-template-columns: minmax(0, 2.25fr) minmax(300px, 0.75fr);
    gap: 22px;
}

.tm-staff-wizard .tm-form-card {
    margin-bottom: 18px;
    padding: 22px;
    border-color: #d9e2eb;
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(6, 43, 82, 0.07);
}

.tm-staff-wizard-form > [data-staff-wizard-step] {
    border-top: 4px solid #0b4775;
}

.tm-staff-wizard .tm-form-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom-color: #e3ebf1;
}

.tm-staff-wizard .tm-step {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #edf6fb;
    color: #0b5f92;
}

.tm-staff-wizard .tm-form-card-head h2 {
    color: #062b52;
    font-size: 19px;
    line-height: 1.25;
}

.tm-staff-wizard .tm-form-card-head p {
    margin-top: 4px;
    color: #63758c;
    font-size: 13px;
}

.tm-staff-wizard .tm-form-grid {
    gap: 14px;
}

.tm-staff-wizard .field label,
.tm-staff-wizard .tm-radio-stack > label:first-child {
    color: #09264a;
    font-size: 13px;
}

.tm-staff-wizard input,
.tm-staff-wizard select,
.tm-staff-wizard textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-color: #bdcdd9;
    border-radius: 8px;
    color: #09264a;
}

.tm-staff-wizard input[type="checkbox"],
.tm-staff-wizard input[type="radio"] {
    width: 17px;
    min-height: 17px;
    padding: 0;
    accent-color: #126a9b;
}

.tm-staff-location-group,
.tm-staff-wizard .tm-check-grid,
.tm-staff-wizard .tm-reference-block {
    border-color: #dce7ee;
    border-radius: 12px;
    background: #fbfdfe;
}

.tm-staff-wizard-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(transparent, #f7f9fb 28%);
    box-shadow: none;
    backdrop-filter: none;
}

.tm-staff-wizard-actions > span {
    display: none;
}

.tm-staff-wizard-actions .button {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 7px;
}

.tm-staff-wizard-actions [data-staff-wizard-back] {
    margin-right: auto;
    border-color: transparent;
    background: transparent;
    color: #062b52;
}

.tm-staff-wizard-actions .button-orange {
    border-color: #ee5a13;
    background: #ee5a13;
    box-shadow: 0 7px 16px rgba(238, 90, 19, 0.2);
}

.tm-staff-wizard-actions .button-orange:hover,
.tm-staff-wizard-actions .button-orange:focus-visible {
    border-color: #cf4405;
    background: #cf4405;
    outline: 3px solid rgba(238, 90, 19, 0.22);
    outline-offset: 2px;
}

.tm-staff-wizard-aside {
    top: 18px;
    padding: 22px;
    border-color: #d9e2eb;
    border-radius: 14px;
    box-shadow: 0 7px 22px rgba(6, 43, 82, 0.07);
}

.tm-staff-wizard-aside > div {
    height: 8px;
    margin: 10px 0 16px;
}

.tm-staff-wizard-aside > p {
    margin: 18px -22px -22px;
    padding: 16px 22px;
    border-left: 4px solid #126a9b;
    border-radius: 0 0 14px 14px;
    background: #edf6fb;
}

/* El layout legacy de formularios usa selectores más específicos. Estas
   reglas se limitan al wizard Staff para que prevalezca el patrón vigente. */
.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-container {
    width: 100%;
    max-width: 1440px;
}

.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-form-card {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #d9e2eb;
    border-top: 4px solid #0b4775;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(6, 43, 82, 0.07);
}

.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-form-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e3ebf1;
}

.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-step {
    display: grid;
}

.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-form-grid {
    gap: 14px;
}

.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-form-card label {
    color: #09264a;
    font-size: 13px;
    font-weight: 800;
}

.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-form-card input,
.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-form-card select,
.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-form-card textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border-color: #bdcdd9;
    border-radius: 8px;
    color: #09264a;
    font-size: 13px;
}

.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-form-card textarea {
    min-height: 92px;
}

.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-form-card input[type="checkbox"],
.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-form-card input[type="radio"] {
    width: 17px;
    min-height: 17px;
    padding: 0;
    border-radius: 0;
}

.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-form-card input.tm-staff-avatar-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-form-card .tm-staff-avatar-action {
    color: #fff;
}

@media (max-width: 1100px) {
    .tm-staff-wizard-container {
        padding: 28px 22px;
    }

    .tm-staff-wizard-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tm-staff-wizard-layout {
        grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
    }
}

@media (max-width: 820px) {
    .tm-staff-wizard-layout {
        display: flex;
        flex-direction: column;
    }

    .tm-staff-wizard-form,
    .tm-staff-wizard-aside {
        width: 100%;
    }

    .tm-staff-wizard-aside {
        position: static;
        order: -1;
    }
}

@media (max-width: 520px) {
    .tm-staff-wizard-container {
        padding: 20px 12px 34px;
    }

    .tm-staff-wizard-hero {
        gap: 18px;
        padding: 20px 16px;
        border-radius: 14px;
    }

    .tm-staff-wizard-heading h1 {
        font-size: 1.55rem;
    }

    .tm-staff-wizard-nav button span {
        width: 30px;
        height: 30px;
    }

    .tm-staff-wizard-nav button::before {
        top: 14px;
    }

    .tm-standalone-form .tm-staff-wizard .tm-staff-wizard-form .tm-form-card {
        padding: 16px;
        border-radius: 11px;
    }

    .tm-staff-wizard-actions {
        display: flex;
        align-items: center;
    }

    .tm-staff-wizard-actions .button {
        width: auto;
        min-height: 42px;
        padding: 9px 14px;
    }

    .tm-staff-avatar {
        align-items: flex-start;
        gap: 12px;
        min-height: 0;
        padding: 14px;
    }

    .tm-staff-avatar-preview {
        flex-basis: 72px;
        width: 72px;
        height: 72px;
    }

    .tm-staff-avatar-preview span {
        font-size: 29px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tm-staff-wizard *,
    .tm-staff-wizard *::before,
    .tm-staff-wizard *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
