.upnext-jobs-form-wrapper {
  margin-top: 32px;
}

.upnext-jobs-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 64px;
  direction: rtl;

}

.upnext-jobs-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  position: relative;
  z-index: 1;
  width: 1.8rem;
  height: 3.2rem;
  position: relative;
}
.upnext-jobs-step-indicator.active {
  width: 3.2rem !important;
  height: 3.2rem !important;
}
.upnext-jobs-step-indicator.active .upnext-jobs-step-number {
  background: #1565c0;
  color: #fff;
  /* margin-top: 0 !important; */
}
.upnext-jobs-step-indicator.completed .upnext-jobs-step-number {
  color: #fff !important;
  font-size: 8px;
  line-height: 1;
}
.upnext-jobs-step-indicator.active .upnext-jobs-step-label {
  color: #1565c0;
  font-weight: 600;
}

.upnext-jobs-step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.3s, color 0.3s;
  /* margin-top: 0.7rem; */
}

.upnext-jobs-step-label {
  font-size: 11px;
  color: #888;
  text-align: center;
  max-width: 80px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: absolute;
  top: 28px;
}

.upnext-jobs-step-line {
  flex: 1;
  min-width: 20px;
  transition: background 0.3s;
  /* new */
  background: rgba(175, 175, 175, 1);
  height: 1px;
  max-width: 12.3rem !important;
}
.upnext-jobs-step-line.completed {
  background-color: rgba(44, 44, 44, 1);
}

.upnext-jobs-form-step {
  display: none;
}
.upnext-jobs-form-step.active {
  display: block;
}

.upnext-jobs-form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  direction: rtl;
}

.upnext-jobs-col-4 {
  grid-column: span 4;
}

.upnext-jobs-col-8 {
  grid-column: span 8;
}

.upnext-jobs-col-12 {
  grid-column: span 12;
}

.upnext-jobs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upnext-jobs-field-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.upnext-jobs-required {
  color: #d32f2f;
}

.upnext-jobs-input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.upnext-jobs-input:focus {
  outline: none;
  border-color: #1565c0;
}
.upnext-jobs-input.error {
  border-color: #d32f2f;
}

.upnext-jobs-textarea {
  resize: vertical;
  min-height: 80px;
}

.upnext-jobs-field-error {
  font-size: 12px;
  color: #d32f2f;
  display: none;
}
.upnext-jobs-field-error:not(:empty) {
  display: block;
}

.upnext-jobs-file-upload {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.upnext-jobs-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.upnext-jobs-file-dropzone {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px dashed #4a4a4a;
  border-radius: 12px;
  background: #f3f3f3;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}
.upnext-jobs-file-dropzone:hover {
  background: #ebebeb;
}

.upnext-jobs-file-dropzone-icon {
  display: flex;
  color: #4a4a4a;
  flex-shrink: 0;
}

.upnext-jobs-file-dropzone-text {
  font-size: 15px;
  font-weight: 500;
  color: #333;
}

.upnext-jobs-file-pill {
  display: none;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #4a4a4a;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
  direction: ltr;
}
.upnext-jobs-file-pill[hidden] {
  display: none !important;
}

.upnext-jobs-file-upload.has-file .upnext-jobs-file-dropzone {
  display: none;
}
.upnext-jobs-file-upload.has-file .upnext-jobs-file-pill {
  display: flex;
}

.upnext-jobs-file-clear {
  flex-shrink: 0;
  order: 1;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  background: transparent;
  color: #888;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.upnext-jobs-file-clear:hover {
  color: #333;
}

.upnext-jobs-file-name {
  flex: 1;
  order: 2;
  min-width: 0;
  font-size: 14px;
  color: #333;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  direction: rtl;
}

.upnext-jobs-file-success {
  flex-shrink: 0;
  order: 3;
  margin-inline-start: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2e7d32;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.upnext-jobs-file-hint {
  font-size: 12px;
  color: #888;
  margin: 0;
  text-align: right;
  width: 100%;
}

.upnext-jobs-select {
  cursor: pointer;
  background-color: #fff;
}

.upnext-jobs-rating-group {
  padding: 16px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #eee;
}

.upnext-jobs-rating-header {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.upnext-jobs-rating-title {
  font-size: 16px;
  margin: 0;
  flex-shrink: 0;
}

.upnext-jobs-rating-note {
  font-size: 13px;
  color: #666;
  margin: 0;
  text-align: left;
  white-space: nowrap;
  border: 1px solid rgba(212, 212, 212, 1);
  padding: 1.4rem;
  border-radius: 8px;
  white-space: normal;
  text-align: start ;
}

.upnext-jobs-rating-scale-low,
.upnext-jobs-rating-scale-high {
  font-weight: 600;
}

.upnext-jobs-rating-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upnext-jobs-rating-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.upnext-jobs-rating-question {
  flex: 1;
  min-width: 120px;
  font-size: 14px;
}

.upnext-jobs-range-wrapper {
  position: relative;
  min-width: 220px;
  padding-bottom: 22px;
  direction: ltr;
}
.upnext-jobs-range-wrapper::before {
  content: "";
  position: absolute;
  top: calc((26px - 6px) / 2);
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to left,
    #333 0%,
    #333 var(--pct, 0%),
    #ccc var(--pct, 0%),
    #ccc 100%
  );
  pointer-events: none;
  z-index: 1;
}

.upnext-jobs-range-input {
  display: block;
  width: 100%;
  height: 26px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 3;
  transform: scaleX(-1);
}
.upnext-jobs-range-input::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border-radius: 3px;
}
.upnext-jobs-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ccc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  margin-top: calc((6px - 26px) / 2);
  position: relative;
  z-index: 4;
}
.upnext-jobs-range-input::-moz-range-track {
  height: 6px;
  background: transparent;
  border: none;
  border-radius: 3px;
}
.upnext-jobs-range-input::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ccc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.upnext-jobs-range-dots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 calc((26px - 10px) / 2);
  z-index: 2;
  direction: ltr;
}

.upnext-jobs-range-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: calc((26px - 10px) / 2);
}
.upnext-jobs-range-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  display: block;
}
.upnext-jobs-range-dot.filled::before {
  visibility: hidden;
}
.upnext-jobs-range-dot.active::before {
  display: none;
}

.upnext-jobs-dot-num {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  user-select: none;
}
.upnext-jobs-range-dot.active .upnext-jobs-dot-num {
  font-weight: 900;
  color: #333;
}

.upnext-jobs-form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  gap: 12px;
}

.upnext-jobs-btn {
  display: inline-block;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  font-family: inherit;
}
.upnext-jobs-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.upnext-jobs-btn-prev {
  background: #e0e0e0;
  color: #333;
}
.upnext-jobs-btn-prev:hover {
  background: #bdbdbd;
}

.upnext-jobs-btn-next,
.upnext-jobs-btn-submit {
  background: #1565c0;
  color: #fff;
  margin-inline-start: auto;
}
.upnext-jobs-btn-next:hover:not(:disabled),
.upnext-jobs-btn-submit:hover:not(:disabled) {
  background: #0d47a1;
}

.upnext-jobs-form-success {
  text-align: center;
  padding: 40px 20px;
}
.upnext-jobs-form-success-img {
  display: block;
  margin: 0 auto 15px;
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .upnext-jobs-col-4,
  .upnext-jobs-col-8 {
    grid-column: span 12;
  }
  .upnext-jobs-rating-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .upnext-jobs-range-wrapper {
    width: 100%;
  }
  .upnext-jobs-steps-indicator {
    gap: 0;
  }
  .upnext-jobs-step-label {
    display: none;
  }
}
